diff --git a/templates/react-example/package.json b/templates/react-example/package.json index 4a5c75f..fc4dd1c 100644 --- a/templates/react-example/package.json +++ b/templates/react-example/package.json @@ -37,7 +37,6 @@ "prettier": "^3.6.2", "prettier-plugin-tailwindcss": "^0.6.14", "tailwindcss": "^4.1.13", - "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0" + "vite": "^7.1.4" } } diff --git a/templates/react-example/vite.config.js b/templates/react-example/vite.config.js index 28ee2fe..2469fdc 100644 --- a/templates/react-example/vite.config.js +++ b/templates/react-example/vite.config.js @@ -1,10 +1,9 @@ import juno from "@junobuild/vite-plugin"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; -import { nodePolyfills } from "vite-plugin-node-polyfills"; import tailwindcss from "@tailwindcss/vite"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), nodePolyfills(), juno(), tailwindcss()], + plugins: [react(), juno(), tailwindcss()], }); diff --git a/templates/react-starter/package.json b/templates/react-starter/package.json index 1b1a832..a160e57 100644 --- a/templates/react-starter/package.json +++ b/templates/react-starter/package.json @@ -36,7 +36,6 @@ "prettier": "^3.6.2", "prettier-plugin-tailwindcss": "^0.6.14", "tailwindcss": "^4.1.13", - "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0" + "vite": "^7.1.4" } } diff --git a/templates/react-starter/vite.config.js b/templates/react-starter/vite.config.js index 0fce6c0..3332198 100644 --- a/templates/react-starter/vite.config.js +++ b/templates/react-starter/vite.config.js @@ -2,9 +2,8 @@ import juno from "@junobuild/vite-plugin"; import tailwindcss from "@tailwindcss/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; -import { nodePolyfills } from "vite-plugin-node-polyfills"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), nodePolyfills(), juno(), tailwindcss()], + plugins: [react(), juno(), tailwindcss()], }); diff --git a/templates/react-ts-example/package.json b/templates/react-ts-example/package.json index dd3c37b..4f50f31 100644 --- a/templates/react-ts-example/package.json +++ b/templates/react-ts-example/package.json @@ -39,7 +39,6 @@ "tailwindcss": "^4.1.13", "typescript": "^5.9.2", "typescript-eslint": "^8.42.0", - "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0" + "vite": "^7.1.4" } } diff --git a/templates/react-ts-example/vite.config.ts b/templates/react-ts-example/vite.config.ts index 28ee2fe..2469fdc 100644 --- a/templates/react-ts-example/vite.config.ts +++ b/templates/react-ts-example/vite.config.ts @@ -1,10 +1,9 @@ import juno from "@junobuild/vite-plugin"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; -import { nodePolyfills } from "vite-plugin-node-polyfills"; import tailwindcss from "@tailwindcss/vite"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), nodePolyfills(), juno(), tailwindcss()], + plugins: [react(), juno(), tailwindcss()], }); diff --git a/templates/react-ts-starter/package.json b/templates/react-ts-starter/package.json index ad041f5..c85a2c4 100644 --- a/templates/react-ts-starter/package.json +++ b/templates/react-ts-starter/package.json @@ -37,7 +37,6 @@ "tailwindcss": "^4.1.13", "typescript": "^5.9.2", "typescript-eslint": "^8.42.0", - "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0" + "vite": "^7.1.4" } } diff --git a/templates/react-ts-starter/vite.config.ts b/templates/react-ts-starter/vite.config.ts index 28ee2fe..2469fdc 100644 --- a/templates/react-ts-starter/vite.config.ts +++ b/templates/react-ts-starter/vite.config.ts @@ -1,10 +1,9 @@ import juno from "@junobuild/vite-plugin"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; -import { nodePolyfills } from "vite-plugin-node-polyfills"; import tailwindcss from "@tailwindcss/vite"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), nodePolyfills(), juno(), tailwindcss()], + plugins: [react(), juno(), tailwindcss()], }); diff --git a/templates/sveltekit-example/vite.config.ts b/templates/sveltekit-example/vite.config.ts index 1712fed..65f2b72 100644 --- a/templates/sveltekit-example/vite.config.ts +++ b/templates/sveltekit-example/vite.config.ts @@ -5,21 +5,6 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [sveltekit(), juno(), tailwindcss()], - optimizeDeps: { - esbuildOptions: { - define: { - global: 'globalThis' - }, - plugins: [ - { - name: 'fix-node-globals-polyfill', - setup(build) { - build.onResolve({ filter: /_virtual-process-polyfill_\.js/ }, ({ path }) => ({ path })); - } - } - ] - } - }, worker: { plugins: () => [sveltekit()], format: 'es' diff --git a/templates/sveltekit-starter/vite.config.ts b/templates/sveltekit-starter/vite.config.ts index 1712fed..65f2b72 100644 --- a/templates/sveltekit-starter/vite.config.ts +++ b/templates/sveltekit-starter/vite.config.ts @@ -5,21 +5,6 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [sveltekit(), juno(), tailwindcss()], - optimizeDeps: { - esbuildOptions: { - define: { - global: 'globalThis' - }, - plugins: [ - { - name: 'fix-node-globals-polyfill', - setup(build) { - build.onResolve({ filter: /_virtual-process-polyfill_\.js/ }, ({ path }) => ({ path })); - } - } - ] - } - }, worker: { plugins: () => [sveltekit()], format: 'es' diff --git a/templates/vanilla-js-example/package.json b/templates/vanilla-js-example/package.json index 475182f..fc79a98 100644 --- a/templates/vanilla-js-example/package.json +++ b/templates/vanilla-js-example/package.json @@ -19,8 +19,7 @@ "prettier": "^3.6.2", "prettier-plugin-tailwindcss": "^0.6.14", "tailwindcss": "^4.1.13", - "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0" + "vite": "^7.1.4" }, "dependencies": { "@junobuild/core": "^2.1.0", diff --git a/templates/vanilla-js-example/vite.config.js b/templates/vanilla-js-example/vite.config.js index ea00612..9547b94 100644 --- a/templates/vanilla-js-example/vite.config.js +++ b/templates/vanilla-js-example/vite.config.js @@ -1,9 +1,8 @@ import juno from "@junobuild/vite-plugin"; import { defineConfig } from "vite"; -import { nodePolyfills } from "vite-plugin-node-polyfills"; import tailwindcss from "@tailwindcss/vite"; /** @type {import('vite').UserConfig} */ export default defineConfig({ - plugins: [nodePolyfills(), juno(), tailwindcss()], + plugins: [juno(), tailwindcss()], }); diff --git a/templates/vue-example/package.json b/templates/vue-example/package.json index da607d1..470fa2f 100644 --- a/templates/vue-example/package.json +++ b/templates/vue-example/package.json @@ -48,7 +48,6 @@ "tailwindcss": "^4.1.13", "typescript": "~5.9.2", "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0", "vite-plugin-vue-devtools": "^8.0.1", "vitest": "^3.2.4", "vue-tsc": "^3.0.6" diff --git a/templates/vue-example/vite.config.ts b/templates/vue-example/vite.config.ts index e93c9bd..e534c0b 100644 --- a/templates/vue-example/vite.config.ts +++ b/templates/vue-example/vite.config.ts @@ -3,12 +3,11 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import juno from '@junobuild/vite-plugin' -import { nodePolyfills } from 'vite-plugin-node-polyfills' import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ - plugins: [vue(), vueJsx(), nodePolyfills(), juno(), tailwindcss()], + plugins: [vue(), vueJsx(), juno(), tailwindcss()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), diff --git a/templates/vue-starter/package.json b/templates/vue-starter/package.json index 890ade1..f7dd690 100644 --- a/templates/vue-starter/package.json +++ b/templates/vue-starter/package.json @@ -47,7 +47,6 @@ "tailwindcss": "^4.1.13", "typescript": "~5.9.2", "vite": "^7.1.4", - "vite-plugin-node-polyfills": "^0.24.0", "vite-plugin-vue-devtools": "^8.0.1", "vitest": "^3.2.4", "vue-tsc": "^3.0.6" diff --git a/templates/vue-starter/vite.config.ts b/templates/vue-starter/vite.config.ts index e93c9bd..e534c0b 100644 --- a/templates/vue-starter/vite.config.ts +++ b/templates/vue-starter/vite.config.ts @@ -3,12 +3,11 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import juno from '@junobuild/vite-plugin' -import { nodePolyfills } from 'vite-plugin-node-polyfills' import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ - plugins: [vue(), vueJsx(), nodePolyfills(), juno(), tailwindcss()], + plugins: [vue(), vueJsx(), juno(), tailwindcss()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)),