From 70ab03ad73ac6561bcbbe6f63df10e0b9615d41f Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sat, 16 May 2020 08:23:10 +0200 Subject: [PATCH] fixed mysql in bundled app --- packages/api/webpack.config.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/api/webpack.config.js b/packages/api/webpack.config.js index 30df2a6b7..e03a71b59 100644 --- a/packages/api/webpack.config.js +++ b/packages/api/webpack.config.js @@ -10,23 +10,25 @@ var config = { target: 'node', output: { path: path.resolve(__dirname, 'dist'), - filename: 'bundle.js' + filename: 'bundle.js', }, -// module: { -// rules: [ -// { -// test: /\.js$/, -// exclude: /node_modules/ -// }, -// ], -// }, + + optimization: { + minimize: false + }, + + // module: { + // rules: [ + // { + // test: /\.js$/, + // exclude: /node_modules/ + // }, + // ], + // }, plugins: [ new webpack.IgnorePlugin({ checkResource(resource) { - const lazyImports = [ - 'pg-native', - 'uws' - ]; + const lazyImports = ['pg-native', 'uws']; if (!lazyImports.includes(resource)) { return false; }