Skip to content

Commit

Permalink
Merge branch 'main' into update-rspack-0-3-8
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Oct 24, 2023
2 parents dc0b70e + 83ae977 commit 6cd7e24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-dots-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/plugin-module-node-polyfill': patch
---

fix: no bundle globals.js
14 changes: 13 additions & 1 deletion packages/module/plugin-module-node-polyfill/modern.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
const { tscLikeBuildConfig } = require('@scripts/build');

module.exports = {
buildConfig: tscLikeBuildConfig,
buildConfig: tscLikeBuildConfig.map(config => {
return {
...config,
input: ['src', '!src/globals.js'],
copy: {
patterns: [
{
from: 'globals.js',
},
],
},
};
}),
};

0 comments on commit 6cd7e24

Please sign in to comment.