Skip to content

Commit

Permalink
Added ESM build to @xstate/svelte to fix some bundling issues (#3209)
Browse files Browse the repository at this point in the history
* Add ESM build to @xstate/svelte package, fixes #2642

* tweaks

Co-authored-by: Mateusz Burzyński <[email protected]>
  • Loading branch information
Eugeny Schibrikov and Andarist authored Apr 27, 2022
1 parent c4f73ca commit 8520e20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-dots-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@xstate/svelte': patch
---

Added ESM build to fix some bundling issues, more information can be found [here](https://github.com/statelyai/xstate/issues/2642)
10 changes: 7 additions & 3 deletions packages/xstate-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@
"homepage": "https://github.com/statelyai/xstate/tree/main/packages/xstate-svelte#readme",
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"directories": {
"lib": "lib",
"es": "es",
"test": "test"
},
"files": [
"lib/**/*.js",
"lib/**/*.d.ts"
"lib/**/*.d.ts",
"es/**/*.js",
"es/**/*.d.ts"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/statelyai/xstate.git"
},
"scripts": {
"clean": "rm -rf dist lib tsconfig.tsbuildinfo",
"build": "tsc",
"clean": "rm -rf dist lib es tsconfig.tsbuildinfo",
"build": "tsc && tsc --outDir es --module esnext",
"test": "jest",
"prepare": "npm run build",
"svelte-check": "svelte-check"
Expand Down

0 comments on commit 8520e20

Please sign in to comment.