diff --git a/packages/create-vite-app/template/index.html b/packages/create-vite-app/template/index.html index e0d1c8408..b6932173c 100644 --- a/packages/create-vite-app/template/index.html +++ b/packages/create-vite-app/template/index.html @@ -1,13 +1,16 @@ - + -
- - - -- Click on the Vite and React logos to learn more + Built with Automerge, Vite, React, and TypeScript
> ) diff --git a/packages/create-vite-app/template/src/index.css b/packages/create-vite-app/template/src/index.css index 6119ad9a8..2c3fac689 100644 --- a/packages/create-vite-app/template/src/index.css +++ b/packages/create-vite-app/template/src/index.css @@ -11,6 +11,7 @@ text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + -webkit-text-size-adjust: 100%; } a { diff --git a/packages/create-vite-app/template/vite.config.ts b/packages/create-vite-app/template/vite.config.ts index 5ca59062c..1d3f901f0 100644 --- a/packages/create-vite-app/template/vite.config.ts +++ b/packages/create-vite-app/template/vite.config.ts @@ -3,7 +3,18 @@ import react from "@vitejs/plugin-react" import wasm from "vite-plugin-wasm" import topLevelAwait from "vite-plugin-top-level-await" -// https://vitejs.dev/config/ export default defineConfig({ - plugins: [wasm(), topLevelAwait(), react()], + // customize this to your repo name for github pages deploy + base: "/", + + build: { + target: "esnext", + }, + + plugins: [wasm(), react()], + + worker: { + format: "es", + plugins: () => [wasm()], + }, })