pkg: minor.

This commit is contained in:
Christopher Jeffrey 2018-06-11 20:03:24 -07:00
parent f826174f9c
commit 1ca3738699
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
4 changed files with 11 additions and 7 deletions

View File

@ -54,6 +54,7 @@
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babelify": "^8.0.0",
"browserify": "^16.2.2",
@ -85,10 +86,10 @@
"test-file": "mocha --reporter spec",
"test-file-browser": "NODE_BACKEND=js mocha --reporter spec",
"test-ci": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec test/*.js",
"webpack": "webpack --config webpack.browser.js",
"webpack-browser": "webpack --config webpack.browser.js",
"webpack-compat": "webpack --config webpack.compat.js",
"webpack-app": "webpack --config webpack.app.js"
"webpack": "webpack --mode production --config webpack.browser.js",
"webpack-browser": "webpack --mode production --config webpack.browser.js",
"webpack-compat": "webpack --mode production --config webpack.compat.js",
"webpack-app": "webpack --mode production --config webpack.app.js"
},
"browser": {
"./lib/hd/nfkd": "./lib/hd/nfkd-compat.js",

View File

@ -18,7 +18,8 @@ module.exports = {
},
resolve: {
modules: ['node_modules'],
extensions: ['-browser.js', '.js', '.json']
extensions: ['-browser.js', '.js', '.json'],
alias: require('bcrypto/compat')
},
plugins: [
new webpack.DefinePlugin({

View File

@ -20,7 +20,8 @@ module.exports = {
},
resolve: {
modules: ['node_modules'],
extensions: ['-browser.js', '.js', '.json']
extensions: ['-browser.js', '.js', '.json'],
alias: require('bcrypto/compat')
},
plugins: [
new webpack.DefinePlugin({

View File

@ -20,7 +20,8 @@ module.exports = {
},
resolve: {
modules: ['node_modules'],
extensions: ['-compat.js', '-browser.js', '.js', '.json']
extensions: ['-compat.js', '-browser.js', '.js', '.json'],
alias: require('bcrypto/compat')
},
module: {
rules: [{