·
677 commits
to main
since this release
Major Changes
-
#54
0f7e256
feat: convert to es module with cjs fallback, use named export instead of defaultIf you are using vite-plugin-svelte with require, you should switch to esm and import the named export "svelte".
An example can be found in the usage section of the readmeFor existing esm configs update your import to use the new named export.
- import svelte from '@sveltejs/vite-plugin-svelte'; + import { svelte } from '@sveltejs/vite-plugin-svelte';
continuing with cjs/require is discouraged but if you must use it, update your require statement to use the named export
- const svelte = require('@sveltejs/vite-plugin-svelte'); + const { svelte } = require('@sveltejs/vite-plugin-svelte');
Minor Changes
- #45
673cf61
Feature: log svelte compiler warnings to console. use options.onwarn to customize logging