fied require problem in webpacked app

This commit is contained in:
Jan Prochazka
2020-11-26 15:42:50 +01:00
parent d7ceb297e9
commit 3533683a32
5 changed files with 28 additions and 400 deletions

View File

@@ -14,9 +14,9 @@ var config = {
libraryTarget: 'commonjs2',
},
optimization: {
minimize: false,
},
// optimization: {
// minimize: false,
// },
// module: {
// rules: [
@@ -29,7 +29,7 @@ var config = {
plugins: [
new webpack.IgnorePlugin({
checkResource(resource) {
const lazyImports = ['pg-native', 'uws'];
const lazyImports = ['uws'];
if (!lazyImports.includes(resource)) {
return false;
}