Skip to content

Commit c40105c

Browse files
authored
Merge pull request #81 from mzgoddard/dependents-no-boiler
Use src/index for browser entry point
2 parents 33fba91 + d5d6ab9 commit c40105c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"description": "audio engine for scratch 3.0",
55
"main": "dist.js",
6+
"browser": "./src/index.js",
67
"scripts": {
78
"test": "npm run lint && npm run build",
89
"build": "webpack --bail",
@@ -20,18 +21,19 @@
2021
"url": "https://github.com/LLK/scratch-audio/issues"
2122
},
2223
"homepage": "https://github.com/LLK/scratch-audio#readme",
23-
"devDependencies": {
24+
"dependencies": {
2425
"audio-context": "1.0.1",
26+
"minilog": "^3.0.1",
27+
"startaudiocontext": "1.2.1"
28+
},
29+
"devDependencies": {
2530
"babel-core": "^6.24.1",
2631
"babel-eslint": "^7.2.2",
2732
"babel-loader": "^7.1.4",
2833
"babel-preset-env": "^1.6.1",
2934
"eslint": "^3.19.0",
3035
"eslint-config-scratch": "^3.1.0",
3136
"json": "^9.0.6",
32-
"minilog": "^3.0.1",
33-
"soundfont-player": "0.10.5",
34-
"startaudiocontext": "1.2.1",
3537
"travis-after-all": "^1.4.4",
3638
"webpack": "^4.8.0",
3739
"webpack-cli": "^2.0.15"

webpack.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ module.exports = {
2121
presets: [['env', {targets: {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}}]]
2222
}
2323
}]
24+
},
25+
externals: {
26+
'audio-context': true,
27+
'minilog': true,
28+
'startaudiocontext': true
2429
}
2530
};

0 commit comments

Comments
 (0)