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

fix node-fetch require error on prod build

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-08-09 17:23:41 +03:00
parent 4c632dcd25
commit 9f2c22d2c2

View File

@ -86,11 +86,9 @@ configs.push((): webpack.Configuration => {
filename: "preload.js"
},
resolve: {
extensions: [".json", ".js", ".ts"]
extensions: [".json", ".js", ".ts"],
mainFields: ["main"]
},
externals: [
nodeExternals()
],
module: {
rules: [
{