diff --git a/js/package.json b/js/package.json index 60e00f8a2..2c1e4e65d 100644 --- a/js/package.json +++ b/js/package.json @@ -101,6 +101,7 @@ "css-loader": "0.26.1", "ejs-loader": "0.3.0", "ejsify": "1.0.0", + "empty-module": "0.0.2", "enzyme": "2.7.1", "eslint": "3.16.1", "eslint-config-semistandard": "7.0.0", diff --git a/js/webpack/app.js b/js/webpack/app.js index 6b12a51d3..d6ee0f285 100644 --- a/js/webpack/app.js +++ b/js/webpack/app.js @@ -139,7 +139,8 @@ module.exports = { resolve: { alias: { '~': path.resolve(__dirname, '../src'), - 'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum') + 'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum'), + 'vertx': 'empty-module' }, modules: [ path.join(__dirname, '../node_modules') diff --git a/js/webpack/libraries.js b/js/webpack/libraries.js index 75ee90533..936612553 100644 --- a/js/webpack/libraries.js +++ b/js/webpack/libraries.js @@ -42,7 +42,9 @@ module.exports = { resolve: { alias: { '~': path.resolve(__dirname, '../src'), - 'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum') + 'keythereum': 'empty-module', + 'secp256k1': 'empty-module', + 'vertx': 'empty-module' } }, diff --git a/js/webpack/npm.js b/js/webpack/npm.js index 013d68957..342cbd375 100644 --- a/js/webpack/npm.js +++ b/js/webpack/npm.js @@ -76,8 +76,9 @@ module.exports = { resolve: { alias: { '~': path.resolve(__dirname, '../src'), - 'secp256k1': path.resolve(__dirname, '../node_modules/secp256k1/js'), - 'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum') + 'keythereum': 'empty-module', + 'secp256k1': 'empty-module', + 'vertx': 'empty-module' }, modules: [ path.resolve('./src'),