This project is a SvelteKit template configured for legacy browser support (IE11) using @vitejs/plugin-legacy.
npm install
# or
pnpm install
Start the development server:
npm run dev
Note: The development server uses Vite's modern ESM serving and does NOT emulate legacy browsers. To test legacy support, you must build and preview.
To generate the production build, which includes both modern chunks and legacy chunks (transpiled for IE11):
npm run build
This command will:
@vitejs/plugin-legacy.You will see output indicating legacy chunks are being generated.
To serve the built application (production mode) and verify legacy loading:
npm run preview
Open the exposed URL (e.g., http://localhost:4173) in your legacy browser (e.g., IE11 virtual machine) to verify it loads correctly.