Split packages
Closed this issue · 1 comments
amatotsuji commented
Now, clu-clu is one package.
Import statements of a product used clu-clu is following...
import { notEmpty } from 'clu-clu/lib/cjs/utilities/extentions';
import { CryptoRequest } from 'clu-clu/lib/cjs/drivers/cryptoDriver';
But this should be following...
import { notEmpty } from 'clu-clu/lutilities';
import { CryptoRequest } from 'clu-clu/drivers/crypto';
This is my idea.
I want more smart idea.
I guess that a product code using clu-clu must not be changed if the product move cjs of clu-clu to esm of clu-clu.
(Now clu-clu does not support esm. In the future, clu-clu can support esm.)
And resolving this issue allow a product to import a part of clu-clu.
Now the product must import all modules of clu-clu on package.json.
amatotsuji commented