10 KiB
@sveltejs/vite-plugin-svelte
1.0.0-next.15
Major Changes
-
change default value of compilerOptions.hydratable to false (#122)
This is done to align with svelte compiler defaults and improve output in non-ssr scenarios.
Add
{compilerOptions: {hydratable: true}}
to vite-plugin-svelte config if you need hydration (eg. for ssr)
Minor Changes
- add config option
experimental.dynamicCompileOptions
for finegrained control over compileOptions (#122)
Patch Changes
1.0.0-next.14
Patch Changes
- replace querystring with URLSearchParams (#107)
- import svelte types instead of duplicating them (#105)
- update svelte-hmr to 0.14.7 to fix issue with svelte 3.40 (#112)
- turn diff-match-patch into an optional peer dependency to reduce footprint (#110)
1.0.0-next.13
Minor Changes
-
Add
experimental
section to options and moveuseVitePreprocess
there (#99)Experimental options are not ready for production use and breaking changes to them can occur in any release
If you already had
useVitePreprocess
enabled, update you config:- svelte({useVitePreprocess: true}) + svelte({experimental: {useVitePreprocess: true}})
-
Add option to ignore svelte preprocessors of other vite plugins (#98)
- ignore them all:
ignorePluginPreprocessors: true
- ignore by name:
ignorePluginPreprocessors: ['<name of plugin>',...]
- ignore them all:
-
Move plugin preprocessor definition to api namespace (#98)
Plugins that provide
myplugin.sveltePreprocess
, should move it tomyplugin.api.sveltePreprocess
, as suggested by rollup
-
Experimental: Generate sourcemaps for preprocessors that lack them (#101)
enable option
experimental.generateMissingPreprocessorSourcemaps
to use it
Patch Changes
-
removed redundant
disableCssHmr
option (#99)You can use
emitCss: false
oremitCss: !!isProduction
instead
- reduce log output with log.once function to filter repetetive messages (#101)
1.0.0-next.12
Minor Changes
-
Resolve svelte to svelte/ssr when building for ssr (fixes #74) (#75) (
f6f56fe
) -
Restart dev server when svelte config file changes (#72) (
5100376
) -
Allow svelte imports to be added to optimizeDeps.include and don't exclude svelte from optimizeDeps then (#68) (
9583900
) -
Vite config can be updated based on values in svelte config (see #60) (#64) (
c3f65fd
)
Patch Changes
-
do not transform imports tagged with ?url or ?raw (fixes #87) (#88) (
d1d2638
) -
update svelte-hmr to ^0.14.5 to fix hmr reordering issue introduced by a change in svelte 3.38.3 (#92) (
cdfd821
) -
Refactored e2e-tests to use package.json scripts
-
Updated dependencies
1.0.0-next.11
Major Changes
-
convert to es module with cjs fallback, use named export instead of default (#54) (
0f7e256
)If 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 readme
For 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
Patch Changes
1.0.0-next.10
Minor Changes
- Allow
emitCss: false
for production builds and customizable compilerOptions.css and hydratable (fixes #9) (#41) (cb7f03d
)
1.0.0-next.9
Patch Changes
1.0.0-next.8
Minor Changes
Patch Changes
1.0.0-next.7
Minor Changes
1.0.0-next.6
Minor Changes
- 1be46f1: improved css hmr
- a0f5a65: Allow other vite plugins to define preprocessors
Patch Changes
- 8d9ef96: fix: do not preserve types unless useVitePreprocess option is true
- 6f4a253: disable svelte-hmr overlay by default
- 18647aa: improve virtual css module path (fixes #14)
1.0.0-next.5
Patch Changes
- 61439ae: initial release