Skip to content

Commit 609b525

Browse files
committed
fix(build): separate node, browser, and webpack exports
1 parent 6cb967a commit 609b525

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
"url": "https://github.com/scratchfoundation/scratch-vm.git",
1111
"sha": "e7962b101d669f70146dc9cc455a7925523fb8d2"
1212
},
13-
"main": "./dist/node/scratch-vm.js",
14-
"browser": "./src/index.js",
13+
"exports": {
14+
"browser": "./dist/web/scratch-vm.js",
15+
"node": "./dist/node/scratch-vm.js",
16+
"webpack": "./src/index.js"
17+
},
1518
"scripts": {
1619
"build": "npm run docs && webpack --progress",
1720
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",

0 commit comments

Comments
 (0)