diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | 225db4a7805befe009fe055fc2ef5daedd6c04f9 (patch) | |
| tree | a5b0d073daabaadceb2f5c1b18640d785b5a9c71 /examples/with-script-in-browser/vite.config.mts | |
| parent | 8ff10d2bf233608b027f8503cb9c7100c9ee3f16 (diff) | |
refactor: examples/
Diffstat (limited to 'examples/with-script-in-browser/vite.config.mts')
| -rw-r--r-- | examples/with-script-in-browser/vite.config.mts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/with-script-in-browser/vite.config.mts b/examples/with-script-in-browser/vite.config.mts new file mode 100644 index 0000000..3ff0ac6 --- /dev/null +++ b/examples/with-script-in-browser/vite.config.mts @@ -0,0 +1,19 @@ +import { defineConfig } from "vite"; + +// https://vitejs.dev/config/ +export default defineConfig({ + server: { + port: 3001, + // open the browser + open: true, + }, + publicDir: "public", + optimizeDeps: { + esbuildOptions: { + // Bumping to 2022 due to "Arbitrary module namespace identifier names" not being + // supported in Vite's default browser target https://github.com/vitejs/vite/issues/13556 + target: "es2022", + treeShaking: true, + }, + }, +}); |
