You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lumos has more than 15 scoped child packages @ckb-lumos/* in it, although Lumos provides an entry package @ckb-lumos/lumos to integrate them into one, however, it still doesn't meet its target of just importing one entry package, because not all exported modules in child packages are included.
We need to improve the @ckb-lumos/lumos to make the entry package more convenient for developers, so they don't need to import too many @ckb-lumos/*
The text was updated successfully, but these errors were encountered:
In the beginning, the first idea was to change @ckb-lumos/lumos's exports by migrating its export mode via the esmodule way. After a simple survey, I found that developers are more likely to use a default tsconfig.json without modifying its moduleResolution. Therefore, switching to esmodule directly isn't a feasible solution for the problem.
An option to consider is modifying @ckb-lumos/lumos's build script to generate compiled .js files in its root instead of in the lib directory, also exporting modules that are not exported but commonly used. So we can use it like this
Wait, the @ckb-lumos/lumos is a bit too long, maybe we can change it to ckb-lumos, which I noticed is currently unregistered on npm. So we can just import lumos like this
Lumos has more than 15 scoped child packages
@ckb-lumos/*
in it, although Lumos provides an entry package@ckb-lumos/lumos
to integrate them into one, however, it still doesn't meet its target of just importing one entry package, because not all exported modules in child packages are included.We need to improve the
@ckb-lumos/lumos
to make the entry package more convenient for developers, so they don't need to import too many@ckb-lumos/*
The text was updated successfully, but these errors were encountered: