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:
parent
38c1978dc9
commit
a459b6fb6d
@ -36,7 +36,7 @@ const webpackLensMain = (): webpack.Configuration => {
|
||||
extensions: [".json", ".js", ".ts"],
|
||||
},
|
||||
externals: [
|
||||
nodeExternals(),
|
||||
nodeExternals({ modulesFromFile: true }),
|
||||
],
|
||||
module: {
|
||||
parser: {
|
||||
|
||||
@ -46,7 +46,7 @@ export function webpackLensRenderer(): webpack.Configuration {
|
||||
],
|
||||
},
|
||||
externals: [
|
||||
nodeExternals(),
|
||||
nodeExternals({ modulesFromFile: true }),
|
||||
],
|
||||
optimization: {
|
||||
minimize: false,
|
||||
|
||||
@ -27,7 +27,7 @@ const main: webpack.Configuration = ({
|
||||
extensions: [".json", ".js", ".ts"],
|
||||
},
|
||||
externals: [
|
||||
nodeExternals(),
|
||||
nodeExternals({ modulesFromFile: true }),
|
||||
],
|
||||
module: {
|
||||
parser: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user