github sveltejs/vite-plugin-svelte @sveltejs/vite-plugin-svelte@1.0.0-next.16

latest releases: @sveltejs/vite-plugin-svelte@6.2.1, @sveltejs/vite-plugin-svelte@6.2.0, @sveltejs/vite-plugin-svelte@6.1.4...
pre-release4 years ago

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)

Don't miss a new vite-plugin-svelte release

NewReleases is sending notifications on new releases.