Skip to content

Commit 5fa2ab8

Browse files
committed
fix(app): Revert vite-plugin-node-polyfills to 0.17.0 for production build issue
1 parent f556a4b commit 5fa2ab8

File tree

4 files changed

+38
-36
lines changed

4 files changed

+38
-36
lines changed

.pnp.cjs

Lines changed: 20 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openneuro-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"stream-browserify": "^3.0.0",
7373
"typescript": "5.6.3",
7474
"vite": "^7.1.7",
75-
"vite-plugin-node-polyfills": "^0.24.0",
75+
"vite-plugin-node-polyfills": "0.17.0",
7676
"vitest": "3.2.4"
7777
},
7878
"publishConfig": {

packages/openneuro-app/vite.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ export default defineConfig({
3232
build: {
3333
sourcemap: true,
3434
rollupOptions: {
35-
external: [
36-
"/crn/config.js",
37-
"vite-plugin-node-polyfills/shims/global",
38-
"vite-plugin-node-polyfills/shims/process",
39-
"vite-plugin-node-polyfills/shims/buffer",
40-
],
35+
external: ["/crn/config.js"],
4136
},
4237
},
4338
optimizeDeps: {

yarn.lock

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@ __metadata:
31063106
typescript: "npm:5.6.3"
31073107
universal-cookie: "npm:^4.0.4"
31083108
vite: "npm:^7.1.7"
3109-
vite-plugin-node-polyfills: "npm:^0.24.0"
3109+
vite-plugin-node-polyfills: "npm:0.17.0"
31103110
vitest: "npm:3.2.4"
31113111
languageName: unknown
31123112
linkType: soft
@@ -7241,14 +7241,7 @@ __metadata:
72417241
languageName: node
72427242
linkType: hard
72437243

7244-
"buffer-xor@npm:^1.0.3":
7245-
version: 1.0.3
7246-
resolution: "buffer-xor@npm:1.0.3"
7247-
checksum: 10/4a63d48b5117c7eda896d81cd3582d9707329b07c97a14b0ece2edc6e64220ea7ea17c94b295e8c2cb7b9f8291e2b079f9096be8ac14be238420a43e06ec66e2
7248-
languageName: node
7249-
linkType: hard
7250-
7251-
"buffer@npm:*, buffer@npm:^6.0.3":
7244+
"buffer-polyfill@npm:buffer@^6.0.3, buffer@npm:*, buffer@npm:^6.0.3":
72527245
version: 6.0.3
72537246
resolution: "buffer@npm:6.0.3"
72547247
dependencies:
@@ -7258,6 +7251,13 @@ __metadata:
72587251
languageName: node
72597252
linkType: hard
72607253

7254+
"buffer-xor@npm:^1.0.3":
7255+
version: 1.0.3
7256+
resolution: "buffer-xor@npm:1.0.3"
7257+
checksum: 10/4a63d48b5117c7eda896d81cd3582d9707329b07c97a14b0ece2edc6e64220ea7ea17c94b295e8c2cb7b9f8291e2b079f9096be8ac14be238420a43e06ec66e2
7258+
languageName: node
7259+
linkType: hard
7260+
72617261
"buffer@npm:^5.7.1":
72627262
version: 5.7.1
72637263
resolution: "buffer@npm:5.7.1"
@@ -21876,15 +21876,17 @@ __metadata:
2187621876
languageName: node
2187721877
linkType: hard
2187821878

21879-
"vite-plugin-node-polyfills@npm:^0.24.0":
21880-
version: 0.24.0
21881-
resolution: "vite-plugin-node-polyfills@npm:0.24.0"
21879+
"vite-plugin-node-polyfills@npm:0.17.0":
21880+
version: 0.17.0
21881+
resolution: "vite-plugin-node-polyfills@npm:0.17.0"
2188221882
dependencies:
2188321883
"@rollup/plugin-inject": "npm:^5.0.5"
21884+
buffer-polyfill: "npm:buffer@^6.0.3"
2188421885
node-stdlib-browser: "npm:^1.2.0"
21886+
process: "npm:^0.11.10"
2188521887
peerDependencies:
21886-
vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
21887-
checksum: 10/9c85b94bd74728c1d93c337b4032ba4bec56054caddb0205475abc8c281b047649bb5e1dcdd77206b0b13c707e49d379551df4fb18843e41ace03f62e5a06380
21888+
vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0
21889+
checksum: 10/2e0f7c611a17c3d76ff2c72145351410254f2899444a0a13d2f54e75678d374d7d27b1385e289859e9e36be60998bb8c309c518e5fcb4f198f5169e0504579ae
2188821890
languageName: node
2188921891
linkType: hard
2189021892

0 commit comments

Comments
 (0)