Problem
@zenuml/core is declared as a peer dependency in package.json, but its dist files are being included in the published npm tarball:
cloud-icons-eHuugVSv.js (~1.6 MB)
zenuml.esm.js (~2.3 MB)
- sourcemaps
These appear under dist/node_modules/.pnpm/@zenuml_core@3.46.8/... in the published package, inflating it from ~100 KB to 9.3 MB unpacked (2.1 MB compressed).
Expected behavior
Peer dependencies should not be bundled into the package output. Consumers are expected to provide @zenuml/core themselves.
Impact
- Unnecessarily large npm package size
- Duplicate
@zenuml/core code in consumer bundles
- Slower install times for downstream users
Likely cause
The Vite build config may be missing an external declaration for @zenuml/core, or the package's files field in package.json is too broad and includes node_modules artifacts.
Related: mermaid-js/zenuml-core#347 (cloud icons chunking fix reduced the dist file count, but the root issue here is that the peer dep shouldn't be bundled at all)
Problem
@zenuml/coreis declared as a peer dependency inpackage.json, but its dist files are being included in the published npm tarball:cloud-icons-eHuugVSv.js(~1.6 MB)zenuml.esm.js(~2.3 MB)These appear under
dist/node_modules/.pnpm/@zenuml_core@3.46.8/...in the published package, inflating it from ~100 KB to 9.3 MB unpacked (2.1 MB compressed).Expected behavior
Peer dependencies should not be bundled into the package output. Consumers are expected to provide
@zenuml/corethemselves.Impact
@zenuml/corecode in consumer bundlesLikely cause
The Vite build config may be missing an
externaldeclaration for@zenuml/core, or the package'sfilesfield inpackage.jsonis too broad and includesnode_modulesartifacts.Related: mermaid-js/zenuml-core#347 (cloud icons chunking fix reduced the dist file count, but the root issue here is that the peer dep shouldn't be bundled at all)