-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ESM build to
@xstate/svelte
to fix some bundling issues (#3209)
* Add ESM build to @xstate/svelte package, fixes #2642 * tweaks Co-authored-by: Mateusz Burzyński <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|