Add "browser" field to package.json

This informs webpack (say, in `scratch-gui`) about the web-targeted
build output so that it can resolve dependencies correctly. This fixes
build problems that became evident after merging .
This commit is contained in:
Christopher Willis-Ford 2017-11-27 19:15:05 -08:00
parent 6dffc0e512
commit 12acdefb5a

View file

@ -10,6 +10,7 @@
"url": "git+ssh://git@github.com/LLK/scratch-vm.git"
},
"main": "./dist/node/scratch-vm.js",
"browser": "./dist/web/scratch-vm.js",
"scripts": {
"build": "webpack --progress --colors --bail",
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",