jsonMain message bundle load failure. Fixes #71144

This commit is contained in:
Martin Aeschlimann 2019-03-27 14:14:32 +01:00
parent f6c35e01d5
commit 00c352d6e7
2 changed files with 14 additions and 11 deletions

View file

@ -11,7 +11,7 @@ const withDefaults = require('../shared.webpack.config');
const path = require('path');
var webpack = require('webpack');
module.exports = withDefaults({
const config = withDefaults({
context: path.join(__dirname, 'client'),
entry: {
extension: './src/jsonMain.ts',
@ -19,9 +19,10 @@ module.exports = withDefaults({
output: {
filename: 'jsonMain.js',
path: path.join(__dirname, 'client', 'dist')
},
plugins: [
new webpack.IgnorePlugin(/vertx/) // request-light dependency
]
}
});
// add plugin, don't replace inherited
config.plugins.push(new webpack.IgnorePlugin(/vertx/)); // request-light dependency
module.exports = config;

View file

@ -11,7 +11,7 @@ const withDefaults = require('../../shared.webpack.config');
const path = require('path');
var webpack = require('webpack');
module.exports = withDefaults({
const config = withDefaults({
context: path.join(__dirname),
entry: {
extension: './src/jsonServerMain.ts',
@ -19,8 +19,10 @@ module.exports = withDefaults({
output: {
filename: 'jsonServerMain.js',
path: path.join(__dirname, 'dist')
},
plugins: [
new webpack.IgnorePlugin(/vertx/) // request-light dependendeny
]
}
});
// add plugin, don't replace inherited
config.plugins.push(new webpack.IgnorePlugin(/vertx/)); // request-light dependency
module.exports = config;