fix vertx

This commit is contained in:
Martin Aeschlimann 2021-07-08 22:22:24 +02:00
parent 7ebe6a6054
commit c069d044c3
No known key found for this signature in database
GPG key ID: 2609A01E695523E3
2 changed files with 10 additions and 8 deletions

View file

@ -20,10 +20,11 @@ const config = withDefaults({
filename: 'jsonClientMain.js',
path: path.join(__dirname, 'client', 'dist', 'node')
},
plugins: [
...withDefaults.getNodePlugins(__dirname),
new webpack.IgnorePlugin({ contextRegExp: /vertx/})
]
resolve: {
fallback: {
vertx: false // indirectly required by request-light
}
}
});

View file

@ -20,10 +20,11 @@ const config = withDefaults({
filename: 'jsonServerMain.js',
path: path.join(__dirname, 'dist', 'node'),
},
plugins: [
...withDefaults.getNodePlugins(__dirname), // add plugin, don't replace inherited
new webpack.IgnorePlugin({ contextRegExp: /vertx/})
]
resolve: {
fallback: {
vertx: false // indirectly required by request-light
}
}
});
module.exports = config;