Skip to content

Commit 6fbb36d

Browse files
authored
fix: improve setup of default export and remove svelte/ssr (#8516)
1 parent 418f4c2 commit 6fbb36d

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Unreleased (4.0)
44

5-
* **breaking** Minimum supported Node version is now Node 14
6-
* **breaking** Minimum supported webpack version is now webpack 5
7-
* **breaking** Minimum supported TypeScript version is now TypeScript 5 (it will likely work with lower versions, but we make no guarantees about that)
5+
* **breaking** Minimum supported Node version is now Node 14 ((#8482)[https://github.com/sveltejs/svelte/pull/8482])
6+
* **breaking** Minimum supported webpack version is now webpack 5 ((#8515)[https://github.com/sveltejs/svelte/pull/8515])
7+
* **breaking** Bundlers must specify the `browser` condition when building a frontend bundle for the browser ((#8516)[https://github.com/sveltejs/svelte/pull/8516])
8+
* **breaking** Minimum supported vite-plugin-svelte version is now 2.1.1. SvelteKit users can upgrade to 1.15.9 or newer to ensure a compatible version ((#8516)[https://github.com/sveltejs/svelte/pull/8516])
9+
* **breaking** Minimum supported TypeScript version is now TypeScript 5 (it will likely work with lower versions, but we make no guarantees about that) ((#8488)[https://github.com/sveltejs/svelte/pull/8488])
810
* **breaking** Stricter types for `createEventDispatcher` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224))
911
* **breaking** Stricter types for `Action` and `ActionReturn` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224))
1012
* **breaking** Stricter types for `onMount` - now throws a type error when returning a function asynchronously to catch potential mistakes around callback functions (see PR for migration instructions) ([#8136](https://github.com/sveltejs/svelte/pull/8136))

package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@
2828
"import": "./index.mjs",
2929
"require": "./index.js"
3030
},
31-
"node": {
32-
"import": "./ssr.mjs",
33-
"require": "./ssr.js"
34-
},
35-
"import": "./index.mjs",
36-
"require": "./index.js"
31+
"import": "./ssr.mjs",
32+
"require": "./ssr.js"
3733
},
3834
"./compiler": {
3935
"types": "./types/compiler/index.d.ts",
@@ -78,11 +74,6 @@
7874
},
7975
"./elements": {
8076
"types": "./elements/index.d.ts"
81-
},
82-
"./ssr": {
83-
"types": "./types/runtime/index.d.ts",
84-
"import": "./ssr.mjs",
85-
"require": "./ssr.js"
8677
}
8778
},
8879
"engines": {

0 commit comments

Comments
 (0)