Skip to content

Commit 8b57cf3

Browse files
Version Packages (next) (#51)
* Version Packages (next) * chore: improve changelog Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: dominikg <dominik.goepel@gmx.de>
1 parent 0f7e256 commit 8b57cf3

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

.changeset/pre.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,27 @@
1717
"playground-ts-type-import": "0.0.0",
1818
"playground-configfile-custom": "1.0.0",
1919
"playground-configfile-esm": "1.0.0",
20-
"playground-svelte-preprocess": "0.0.0"
20+
"playground-svelte-preprocess": "0.0.0",
21+
"playground-package-json-svelte-field": "1.0.0",
22+
"playground-test-dependency-svelte-field": "1.0.0"
2123
},
2224
"changesets": [
2325
"blue-schools-bake",
2426
"brave-boxes-drive",
27+
"calm-buses-cheat",
2528
"dry-cameras-press",
2629
"eight-taxis-wash",
2730
"flat-books-kick",
2831
"fresh-penguins-heal",
32+
"gorgeous-monkeys-brake",
33+
"happy-toys-boil",
2934
"lemon-toes-relax",
3035
"light-bottles-warn",
3136
"little-plums-grab",
3237
"long-foxes-agree",
3338
"nasty-baboons-joke",
34-
"sharp-laws-leave"
39+
"selfish-experts-rest",
40+
"sharp-laws-leave",
41+
"wise-impalas-glow"
3542
]
3643
}

packages/vite-plugin-svelte/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# @sveltejs/vite-plugin-svelte
22

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
20+
21+
```diff
22+
- const svelte = require('@sveltejs/vite-plugin-svelte');
23+
+ const { svelte } = require('@sveltejs/vite-plugin-svelte');
24+
```
25+
26+
### Minor Changes
27+
28+
- [#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
37+
338
## 1.0.0-next.10
439

540
### Minor Changes

packages/vite-plugin-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sveltejs/vite-plugin-svelte",
3-
"version": "1.0.0-next.10",
3+
"version": "1.0.0-next.11",
44
"license": "MIT",
55
"author": "dominikg",
66
"files": [

0 commit comments

Comments
 (0)