fix(build): add main & browser back for compatibility

This commit is contained in:
Christopher Willis-Ford 2024-03-14 09:57:59 -07:00
parent 70552ee9e0
commit 7381425748

View file

@ -10,6 +10,8 @@
"url": "https://github.com/scratchfoundation/scratch-vm.git", "url": "https://github.com/scratchfoundation/scratch-vm.git",
"sha": "aa445c3256b8f97a6da49dfb5a8cb7039dcf03fa" "sha": "aa445c3256b8f97a6da49dfb5a8cb7039dcf03fa"
}, },
"main": "./dist/node/scratch-vm.js",
"browser": "./dist/web/scratch-vm.js",
"exports": { "exports": {
"webpack": "./src/index.js", "webpack": "./src/index.js",
"browser": "./dist/web/scratch-vm.js", "browser": "./dist/web/scratch-vm.js",