Skip to content

@sveltejs/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jun 13:39
· 677 commits to main since this release
8b57cf3

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