Skip to content

Commit

Permalink
fix(module-tools): import order in global.js of plugin node polyfill (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Sep 3, 2024
1 parent 539d72b commit 77bd2a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/khaki-ravens-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/plugin-module-node-polyfill': patch
---

fix: node polyfill globals.js should use correct import order
fix: node polyfill 插件需要使用正确的引入顺序
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
"packages/server/server/tests/fixtures/mock/cjs/config/mock/**/*",
"tests/integration/ssr/fixtures/preload/**/*",
"tests/integration/swc/fixtures/transform-fail/src/App.jsx",
"tests/integration/module/plugins/vue/**/*"
"tests/integration/module/plugins/vue/**/*",
"packages/module/plugin-module-node-polyfill/src/globals.js"
]
}
}
2 changes: 1 addition & 1 deletion packages/module/plugin-module-node-polyfill/src/globals.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Buffer from 'buffer';
import console from 'console-browserify';
import processBrowser from 'process/browser';
import console from 'console-browserify';

const buffer = {
Buffer,
Expand Down

0 comments on commit 77bd2a2

Please sign in to comment.