Skip to content

Commit

Permalink
fix: fix cjs bundle (#5116)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Mar 1, 2025
1 parent 41d0302 commit ea31dea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,13 @@ const libConfig = {
},
};

const cjsExternalException = ['lodash-es'];
const cjsExternal = externalDeps.concat(externalPeerDeps).filter((value) => !cjsExternalException.includes(value));

/** @type {import('rollup').RollupOptions} */
const cjsConfig = {
input: inputList,
external: externalDeps.concat(externalPeerDeps),
external: cjsExternal,
plugins: [multiInput({ relative: 'packages/components/' })].concat(getPlugins()),
output: {
banner,
Expand Down

0 comments on commit ea31dea

Please # to comment.