duplicated type declaration files after packaging #3851
Closed
shellRaining
started this conversation in
General
Replies: 1 comment 3 replies
-
Rollup cannot build all files at once so I had to split it into two build passes: one for the main lib and one for the plugins. Plugins import some of the same things as the main lib but rollup doesn’t know about that so it makes two copies. Maybe there’s a way to somehow unify the build config and do it all in one pass. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the directory structure after being bundled with Rollup. It can be observed that there are many duplicate type declaration files, such as
dist/base-plugin.d.ts
,dist/plugins/base-plugin.d.ts
, and there exists a duplicated plugins fold indist/plugins
, I'm not very clear about the purpose of this packaging, may I ask why config like this?And when I clone this repo and run build script, there occur a error,
not found glob
, I checkpackage.json
and not found a package named glob, I guess there maybe miss uploading this module.Beta Was this translation helpful? Give feedback.
All reactions