1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix build by not bundling libraries for application in node environment (main) as Electron does that

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2023-02-06 11:22:04 +02:00
parent 38c1978dc9
commit a459b6fb6d
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ const webpackLensMain = (): webpack.Configuration => {
extensions: [".json", ".js", ".ts"], extensions: [".json", ".js", ".ts"],
}, },
externals: [ externals: [
nodeExternals(), nodeExternals({ modulesFromFile: true }),
], ],
module: { module: {
parser: { parser: {

View File

@ -46,7 +46,7 @@ export function webpackLensRenderer(): webpack.Configuration {
], ],
}, },
externals: [ externals: [
nodeExternals(), nodeExternals({ modulesFromFile: true }),
], ],
optimization: { optimization: {
minimize: false, minimize: false,

View File

@ -27,7 +27,7 @@ const main: webpack.Configuration = ({
extensions: [".json", ".js", ".ts"], extensions: [".json", ".js", ".ts"],
}, },
externals: [ externals: [
nodeExternals(), nodeExternals({ modulesFromFile: true }),
], ],
module: { module: {
parser: { parser: {