Skip to content

Commit 2b97b9c

Browse files
chore: remove vite-plugin-node-polyfills in templates (#194)
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 1ad8256 commit 2b97b9c

16 files changed

Lines changed: 12 additions & 56 deletions

File tree

templates/react-example/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"prettier": "^3.6.2",
3838
"prettier-plugin-tailwindcss": "^0.6.14",
3939
"tailwindcss": "^4.1.13",
40-
"vite": "^7.1.4",
41-
"vite-plugin-node-polyfills": "^0.24.0"
40+
"vite": "^7.1.4"
4241
}
4342
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import juno from "@junobuild/vite-plugin";
22
import react from "@vitejs/plugin-react";
33
import { defineConfig } from "vite";
4-
import { nodePolyfills } from "vite-plugin-node-polyfills";
54
import tailwindcss from "@tailwindcss/vite";
65

76
// https://vitejs.dev/config/
87
export default defineConfig({
9-
plugins: [react(), nodePolyfills(), juno(), tailwindcss()],
8+
plugins: [react(), juno(), tailwindcss()],
109
});

templates/react-starter/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"prettier": "^3.6.2",
3737
"prettier-plugin-tailwindcss": "^0.6.14",
3838
"tailwindcss": "^4.1.13",
39-
"vite": "^7.1.4",
40-
"vite-plugin-node-polyfills": "^0.24.0"
39+
"vite": "^7.1.4"
4140
}
4241
}

templates/react-starter/vite.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import juno from "@junobuild/vite-plugin";
22
import tailwindcss from "@tailwindcss/vite";
33
import react from "@vitejs/plugin-react";
44
import { defineConfig } from "vite";
5-
import { nodePolyfills } from "vite-plugin-node-polyfills";
65

76
// https://vitejs.dev/config/
87
export default defineConfig({
9-
plugins: [react(), nodePolyfills(), juno(), tailwindcss()],
8+
plugins: [react(), juno(), tailwindcss()],
109
});

templates/react-ts-example/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"tailwindcss": "^4.1.13",
4040
"typescript": "^5.9.2",
4141
"typescript-eslint": "^8.42.0",
42-
"vite": "^7.1.4",
43-
"vite-plugin-node-polyfills": "^0.24.0"
42+
"vite": "^7.1.4"
4443
}
4544
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import juno from "@junobuild/vite-plugin";
22
import react from "@vitejs/plugin-react";
33
import { defineConfig } from "vite";
4-
import { nodePolyfills } from "vite-plugin-node-polyfills";
54
import tailwindcss from "@tailwindcss/vite";
65

76
// https://vitejs.dev/config/
87
export default defineConfig({
9-
plugins: [react(), nodePolyfills(), juno(), tailwindcss()],
8+
plugins: [react(), juno(), tailwindcss()],
109
});

templates/react-ts-starter/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"tailwindcss": "^4.1.13",
3838
"typescript": "^5.9.2",
3939
"typescript-eslint": "^8.42.0",
40-
"vite": "^7.1.4",
41-
"vite-plugin-node-polyfills": "^0.24.0"
40+
"vite": "^7.1.4"
4241
}
4342
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import juno from "@junobuild/vite-plugin";
22
import react from "@vitejs/plugin-react";
33
import { defineConfig } from "vite";
4-
import { nodePolyfills } from "vite-plugin-node-polyfills";
54
import tailwindcss from "@tailwindcss/vite";
65

76
// https://vitejs.dev/config/
87
export default defineConfig({
9-
plugins: [react(), nodePolyfills(), juno(), tailwindcss()],
8+
plugins: [react(), juno(), tailwindcss()],
109
});

templates/sveltekit-example/vite.config.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@ import tailwindcss from '@tailwindcss/vite';
55

66
export default defineConfig({
77
plugins: [sveltekit(), juno(), tailwindcss()],
8-
optimizeDeps: {
9-
esbuildOptions: {
10-
define: {
11-
global: 'globalThis'
12-
},
13-
plugins: [
14-
{
15-
name: 'fix-node-globals-polyfill',
16-
setup(build) {
17-
build.onResolve({ filter: /_virtual-process-polyfill_\.js/ }, ({ path }) => ({ path }));
18-
}
19-
}
20-
]
21-
}
22-
},
238
worker: {
249
plugins: () => [sveltekit()],
2510
format: 'es'

templates/sveltekit-starter/vite.config.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@ import tailwindcss from '@tailwindcss/vite';
55

66
export default defineConfig({
77
plugins: [sveltekit(), juno(), tailwindcss()],
8-
optimizeDeps: {
9-
esbuildOptions: {
10-
define: {
11-
global: 'globalThis'
12-
},
13-
plugins: [
14-
{
15-
name: 'fix-node-globals-polyfill',
16-
setup(build) {
17-
build.onResolve({ filter: /_virtual-process-polyfill_\.js/ }, ({ path }) => ({ path }));
18-
}
19-
}
20-
]
21-
}
22-
},
238
worker: {
249
plugins: () => [sveltekit()],
2510
format: 'es'

0 commit comments

Comments
 (0)