Skip to content

Commit 1a0b35f

Browse files
authored
Merge pull request #38 from mzgoddard/dependents-no-boiler
Use src/index as browser entry point
2 parents 000dad7 + b7e7d6d commit 1a0b35f

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/LLK/scratch-storage.git"
1010
},
1111
"main": "./dist/node/scratch-storage.js",
12-
"browser": "./dist/web/scratch-storage.js",
12+
"browser": "./src/index.js",
1313
"scripts": {
1414
"build": "webpack --progress --colors --bail",
1515
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
@@ -23,31 +23,32 @@
2323
"watch": "webpack --progress --colors --watch",
2424
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2525
},
26+
"dependencies": {
27+
"arraybuffer-loader": "^1.0.3",
28+
"base64-js": "1.2.1",
29+
"js-md5": "0.6.1",
30+
"localforage": "1.5.0",
31+
"nets": "3.2.0",
32+
"text-encoding": "0.6.4"
33+
},
2634
"devDependencies": {
2735
"@commitlint/cli": "6.1.0",
2836
"@commitlint/config-conventional": "6.1.0",
2937
"@commitlint/travis-cli": "6.1.0",
30-
"arraybuffer-loader": "^1.0.3",
3138
"babel-core": "6.22.1",
3239
"babel-eslint": "7.1.1",
3340
"babel-loader": "^7.1.4",
3441
"babel-polyfill": "6.22.0",
3542
"babel-preset-env": "^1.6.1",
36-
"base64-js": "1.2.1",
3743
"cz-conventional-changelog": "^2.0.0",
38-
"debug": "2.6.0",
3944
"eslint": "3.14.1",
4045
"eslint-config-scratch": "3.1.0",
4146
"eslint-plugin-react": "6.9.0",
4247
"file-loader": "1.1.11",
4348
"husky": "0.14.3",
44-
"js-md5": "0.6.1",
4549
"json": "^9.0.4",
46-
"localforage": "1.5.0",
47-
"nets": "3.2.0",
4850
"semantic-release": "^6.3.2",
4951
"tap": "8.0.1",
50-
"text-encoding": "0.6.4",
5152
"travis-after-all": "^1.4.4",
5253
"uglifyjs-webpack-plugin": "^1.2.5",
5354
"webpack": "^4.8.0",

webpack.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ module.exports = [
5656
libraryTarget: 'commonjs2',
5757
path: path.resolve('dist', 'node'),
5858
filename: '[name].js'
59+
},
60+
externals: {
61+
'base64-js': true,
62+
'js-md5': true,
63+
'localforage': true,
64+
'nets': true,
65+
'text-encoding': true
5966
}
6067
})
6168
];

0 commit comments

Comments
 (0)