fix: improve setup of default export and remove `svelte/ssr` (#8516)

pull/8566/head
Ben McCann 2 years ago committed by GitHub
parent 418f4c2381
commit 6fbb36d1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,9 +2,11 @@
## Unreleased (4.0)
* **breaking** Minimum supported Node version is now Node 14
* **breaking** Minimum supported webpack version is now webpack 5
* **breaking** Minimum supported TypeScript version is now TypeScript 5 (it will likely work with lower versions, but we make no guarantees about that)
* **breaking** Minimum supported Node version is now Node 14 ((#8482)[https://github.com/sveltejs/svelte/pull/8482])
* **breaking** Minimum supported webpack version is now webpack 5 ((#8515)[https://github.com/sveltejs/svelte/pull/8515])
* **breaking** Bundlers must specify the `browser` condition when building a frontend bundle for the browser ((#8516)[https://github.com/sveltejs/svelte/pull/8516])
* **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])
* **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])
* **breaking** Stricter types for `createEventDispatcher` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224))
* **breaking** Stricter types for `Action` and `ActionReturn` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224))
* **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))

@ -28,12 +28,8 @@
"import": "./index.mjs",
"require": "./index.js"
},
"node": {
"import": "./ssr.mjs",
"require": "./ssr.js"
},
"import": "./index.mjs",
"require": "./index.js"
"import": "./ssr.mjs",
"require": "./ssr.js"
},
"./compiler": {
"types": "./types/compiler/index.d.ts",
@ -78,11 +74,6 @@
},
"./elements": {
"types": "./elements/index.d.ts"
},
"./ssr": {
"types": "./types/runtime/index.d.ts",
"import": "./ssr.mjs",
"require": "./ssr.js"
}
},
"engines": {

Loading…
Cancel
Save