Skip to content

Releases: sveltejs/vite-plugin-svelte

@sveltejs/vite-plugin-svelte@1.0.0-next.12

09 Jul 21:01
379ecf6
Compare
Choose a tag to compare

Minor Changes

  • Resolve svelte to svelte/ssr when building for ssr (fixes #74) (#75) (f6f56fe)

  • Support svg extension (#78) (2eb09cf)

  • 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

  • customize changelog format (#90) (b5a58cd)

  • relax svelte peer dependency to 3.34.0 (#70) (377d464)

  • 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)

  • fix kit-node tests (#55) (09b63d3)

  • output sourcemap in hmr helper preprocessor (#71) (97ee68c)

  • reduced debug output (#83) (eb048ff)

  • Refactored e2e-tests to use package.json scripts

  • Updated dependencies

@sveltejs/vite-plugin-svelte@1.0.0-next.11

11 Jun 13:39
8b57cf3
Compare
Choose a tag to compare

Major Changes

  • #54 0f7e256 feat: convert to es module with cjs fallback, use named export instead of default

    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

  • #45 673cf61 Feature: log svelte compiler warnings to console. use options.onwarn to customize logging

Patch Changes

  • #44 24ae093 update to esbuild 0.12 and vite 2.3.7

  • #44 24ae093 update engines.node to "^12.20 || ^14.13.1 || >= 16"

  • #45 673cf61 enable logging for compiler warnings

@sveltejs/vite-plugin-svelte@1.0.0-next.10

10 May 21:41
93ca647
Compare
Choose a tag to compare

Minor Changes

  • #41 cb7f03d Feature: Allow emitCss: false for production builds and customizable compilerOptions.css and hydratable - fixes #9

@sveltejs/vite-plugin-svelte@1.0.0-next.9

29 Apr 22:00
76c653e
Compare
Choose a tag to compare

Patch Changes

  • #38 5aef91c fix: ensure esm config loading works on windows

@sveltejs/vite-plugin-svelte@1.0.0-next.8

27 Apr 21:33
50b76f8
Compare
Choose a tag to compare

Minor Changes

  • #35 4018ce6 Feature: Support esm in svelte.config.js and svelte.config.mjs

  • #35 4018ce6 Feature: add configFile option

Patch Changes

  • #34 e5d4749 fix: watch preprocessor dependencies and trigger hmr on change

@sveltejs/vite-plugin-svelte@1.0.0-next.7

15 Apr 23:07
a2acab9
Compare
Choose a tag to compare

Minor Changes

@sveltejs/vite-plugin-svelte@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)