Skip to content

Releases: sveltejs/vite-plugin-svelte

@sveltejs/[email protected]

05 Sep 15:28
f0ac3bc
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Only optimize nested cjs dependencies (#163)

@sveltejs/[email protected]

01 Sep 20:24
649b9b0
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Add option disableDependencyReinclusion to offer users a way out of automatic optimization for hybrid packages (#161)

Patch Changes

  • Improve automatic dependency pre-bundling by not reincluding dependencies that are already present in optimizeDeps.exclude (#159)

@sveltejs/[email protected]

01 Sep 14:19
a3c0634
Compare
Choose a tag to compare
Pre-release

Major Changes

  • Enable optimization for nested dependencies of excluded svelte dependencies (#157)

    Vite 2.5.3 and above is needed to support this feature.

Minor Changes

  • Improve dev warning message for components including only unscoped styles (fixes #153) (#154)

@sveltejs/[email protected]

20 Aug 20:07
2e6f709
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • add automatically excluded svelte dependencies to ssr.noExternal (#147)

@sveltejs/[email protected]

20 Aug 18:07
a453fb8
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • automatically exclude svelte dependencies in vite.optimizeDeps (#145)

Patch Changes

  • use createRequire to load svelte.config.cjs in esm projects (fixes #141) (#142)

@sveltejs/[email protected]

12 Aug 20:51
b195fc3
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • don't add svelte/ssr to vite.optimizeDeps.include (fixes #138) (#139)

@sveltejs/[email protected]

12 Aug 17:40
6196351
Compare
Choose a tag to compare
Pre-release

Major Changes

  • automatically include svelte in vite config optimizeDeps.include (#137)

    Previously, svelte was automatically excluded. We include it now by default to improve deduplication.

    As a result, svelte is pre-bundled by vite during dev, which it logs when starting the devserver

    Pre-bundling dependencies:
      svelte/animate
      svelte/easing
      svelte/internal
      svelte/motion
      svelte/store
      (...and 2 more)
    (this will be run only when your dependencies or config have changed)

    And it's also visible in the browsers network tab, where requests for svelte imports now start with node_modules/.vite/ during dev.

    Check out the vite pre-bundling documentation for more information.

    To get the old behavior back, add the following to your vite config

    {
    	['svelte'];
    }

Patch Changes

  • prepare for a change in vite 2.5.0 that would lead to errors in preprocessor dependency handling (fixes #130) (#131)

@sveltejs/[email protected]

29 Jul 12:44
165f725
Compare
Choose a tag to compare
Pre-release

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

  • resolve vite.root option correctly (fixes #113) (#115)

@sveltejs/[email protected]

22 Jul 14:10
Compare
Choose a tag to compare
Pre-release

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)

@sveltejs/[email protected]

19 Jul 14:17
57a592c
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Add experimental section to options and move useVitePreprocess 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>',...]
  • Move plugin preprocessor definition to api namespace (#98)

    Plugins that provide myplugin.sveltePreprocess, should move it to myplugin.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 or emitCss: !!isProduction instead

  • further improvements to changelog (see #93) (#94)

  • reduce log output with log.once function to filter repetetive messages (#101)

  • remove transitive peer dependency on rollup (fixes #57) (#103)