You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vite-plugin-svelte/CHANGELOG.md
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,40 @@
1
1
# @sveltejs/vite-plugin-svelte
2
2
3
+
## 1.0.0-next.11
4
+
5
+
### Major Changes
6
+
7
+
-[#54](https://github.com/sveltejs/vite-plugin-svelte/pull/54)[`0f7e256`](https://github.com/sveltejs/vite-plugin-svelte/commit/0f7e256a9ebb0ee9ac6075146d27bf4f11ecdab3) feat: convert to es module with cjs fallback, use named export instead of default
8
+
9
+
If you are using vite-plugin-svelte with require, you should switch to esm and import the named export "svelte".
10
+
An example can be found in the usage section of the [readme](README.md)
11
+
12
+
For existing esm configs update your import to use the new named export.
13
+
14
+
```diff
15
+
- import svelte from '@sveltejs/vite-plugin-svelte';
16
+
+ import { svelte } from '@sveltejs/vite-plugin-svelte';
17
+
```
18
+
19
+
continuing with cjs/require is discouraged but if you must use it, update your require statement to use the named export
-[#45](https://github.com/sveltejs/vite-plugin-svelte/pull/45)[`673cf61`](https://github.com/sveltejs/vite-plugin-svelte/commit/673cf61b3800e7a64be2b73a7273909da95729d2) Feature: log svelte compiler warnings to console. use options.onwarn to customize logging
29
+
30
+
### Patch Changes
31
+
32
+
-[#44](https://github.com/sveltejs/vite-plugin-svelte/pull/44)[`24ae093`](https://github.com/sveltejs/vite-plugin-svelte/commit/24ae0934301cb50506bf39cdccc07ad3eac546fd) update to esbuild 0.12 and vite 2.3.7
33
+
34
+
*[#44](https://github.com/sveltejs/vite-plugin-svelte/pull/44)[`24ae093`](https://github.com/sveltejs/vite-plugin-svelte/commit/24ae0934301cb50506bf39cdccc07ad3eac546fd) update engines.node to "^12.20 || ^14.13.1 || >= 16"
35
+
36
+
-[#45](https://github.com/sveltejs/vite-plugin-svelte/pull/45)[`673cf61`](https://github.com/sveltejs/vite-plugin-svelte/commit/673cf61b3800e7a64be2b73a7273909da95729d2) enable logging for compiler warnings
0 commit comments