Skip to content

Releases: sveltejs/vite-plugin-svelte

@sveltejs/vite-plugin-svelte@4.0.0-next.1

14 May 22:58
60fa8b4
Compare
Choose a tag to compare

Major Changes

  • only prebundle files with default filenames (.svelte for components, .svelte.(js|ts) for modules) (#901)

Minor Changes

  • allow infix notation for svelte modules (#901)

    Previously, only suffix notation .svelte.js was allowed, now you can also use .svelte.test.js or .svelte.stories.js.
    This helps when writing testcases or other auxillary code where you may want to use runes too.

Patch Changes

  • prebundle with dev: true by default (#901)

  • fix: ensure svelte modules correctly run in DEV mode (#906)

  • Updated dependencies []:

    • @sveltejs/vite-plugin-svelte-inspector@3.0.0-next.1

@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.1

14 May 22:58
60fa8b4
Compare
Choose a tag to compare

@sveltejs/vite-plugin-svelte@4.0.0-next.0

09 May 19:25
5f8c4e4
Compare
Choose a tag to compare

Major Changes

  • remove support for Svelte 4 (#892)

  • disable script preprocessing in vitePreprocess() by default because Svelte 5 supports lang=ts out of the box (#892)

  • replaced svelte-hmr with Svelte 5 compiler hmr integration (#892)

Patch Changes

  • fix: make defaultHandler a required argument for onwarn in plugin options (#895)

  • Remove log about experimental status of Svelte 5. Note that breaking changes can still occur while vite-plugin-svelte 4 is in prerelease mode (#894)

  • Updated dependencies [49324dbf747a46ae75b405a29fc7feac2db966dd]:

    • @sveltejs/vite-plugin-svelte-inspector@3.0.0-next.0

@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.0

09 May 19:25
5f8c4e4
Compare
Choose a tag to compare

@sveltejs/vite-plugin-svelte@3.1.0

10 Apr 19:46
acb1f88
Compare
Choose a tag to compare

Minor Changes

  • feat(svelte5): enable hmr option in dev (#836)

Patch Changes

@sveltejs/vite-plugin-svelte-inspector@2.1.0

10 Apr 19:46
acb1f88
Compare
Choose a tag to compare

Minor Changes

  • Implements escapeKeys to close the inspector via hotkey (default keys are Backspace and Escape). (#880)

Patch Changes

@sveltejs/vite-plugin-svelte@3.0.2

27 Jan 16:07
e04c9a8
Compare
Choose a tag to compare

Patch Changes

  • fix(compile): correctly determine script lang in files where a comment precedes the script tag (#844)

@sveltejs/vite-plugin-svelte@2.5.3

22 Nov 13:50
3c37482
Compare
Choose a tag to compare

Patch Changes

  • fix: handle closing tags in attributes when detecting script language (#796)

@sveltejs/vite-plugin-svelte@3.0.1

21 Nov 14:28
63fafd4
Compare
Choose a tag to compare

Patch Changes

  • fix: improve checking of script and style in .svelte code to work with new generic= attribute (#799)

  • Fix optional parameter types (#797)

  • Update log level for HMR updates where the output is functionally equivalent to the previous version to "debug" (#806)

@sveltejs/vite-plugin-svelte@3.0.0

16 Nov 11:05
cf1ef58
Compare
Choose a tag to compare

Major Changes

  • breaking: update minimum supported node version to node18 (#744)

  • breaking: update supported vite version to vite 5 (#743)

  • breaking: remove support for svelte 3 (#746)

  • Preprocess style tags by default with vitePreprocess (#756)

  • breaking: remove package.json export (#751)

  • breaking(types): emit types with dts-buddy to include type map (#751)

  • breaking(debug): remove 'vite:' and add suffixes to debug namespace (#749)

  • breaking(types): rename SvelteOptions to SvelteConfig (#751)

  • breaking: prefer svelte exports condition over package.json svelte field (#747)

Minor Changes

  • feat(preprocess): add warnings in case preprocess dependencies contain anomalies (#767)

  • Add experimental support for svelte5 (#787)

Patch Changes

  • fix(types): use correct type Options for svelte function arg (#751)

  • Improve compile error messages (#757)

  • feat(compile): promote experimental.dynamicCompileOptions to stable (#765)

  • update peer dependencies to use final releases (#794)

  • Updated dependencies [d5b952f, bd5d43e, 10ec2a4, 62afd80, 1be1c08]:

    • @sveltejs/vite-plugin-svelte-inspector@2.0.0