Skip to content

Commit

Permalink
add export map (#5566)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau authored Nov 9, 2020
1 parent 7949d8e commit 41d16c0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

* Fix `$$props` and `$$restProps` when compiling to a custom element ([#5482](https://github.com/sveltejs/svelte/issues/5482))
* Include an export map in `package.json` ([#5556](https://github.com/sveltejs/svelte/issues/5556))
* Fix function calls in `<slot>` props that use contextual values ([#5565](https://github.com/sveltejs/svelte/issues/5565))
* Fix handling aborted transitions in `{:else}` blocks ([#5573](https://github.com/sveltejs/svelte/issues/5573))
* Add `Element` and `Node` to known globals ([#5586](https://github.com/sveltejs/svelte/issues/5586))
Expand Down
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,40 @@
"svelte",
"README.md"
],
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js"
},
"./compiler": {
"import": "./compiler.mjs",
"require": "./compiler.js"
},
"./animate": {
"import": "./animate/index.mjs",
"require": "./animate/index.js"
},
"./easing": {
"import": "./easing/index.mjs",
"require": "./easing/index.js"
},
"./internal": {
"import": "./internal/index.mjs",
"require": "./internal/index.js"
},
"./motion": {
"import": "./motion/index.mjs",
"require": "./motion/index.js"
},
"./store": {
"import": "./store/index.mjs",
"require": "./store/index.js"
},
"./transition": {
"import": "./transition/index.mjs",
"require": "./transition/index.js"
}
},
"engines": {
"node": ">= 8"
},
Expand Down

0 comments on commit 41d16c0

Please sign in to comment.