Skip to content

Commit

Permalink
fix: fix cjs bundle (#3392)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Feb 28, 2025
1 parent b15b142 commit bfc06a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ const esmConfig = {
},
};

const cjsExternalException = ['lodash-es'];
const cjsExternal = externalDeps.concat(externalPeerDeps).filter((value) => !cjsExternalException.includes(value));
// commonjs 导出规范,不带 css 样式
const cjsConfig = {
input: inputList,
external: externalDeps.concat(externalPeerDeps),
external: cjsExternal,
plugins: [multiInput()].concat(getPlugins()),
output: {
banner,
Expand Down

0 comments on commit bfc06a6

Please sign in to comment.