move node-fetch to separate package

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Sebastian Malton committed 2023-01-25 08:51:13 -05:00
1 parent b2c440354c
commit 0ed06a3ac8
23 files changed
+1116 -28

No files matched your search

-31
View File
@@ -1,31 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import path from "path";
export default {
entry: "./node_modules/node-fetch/src/index.js",
output: {
path: path.resolve(__dirname, "..", "build", "webpack"),
filename: "node-fetch.bundle.js",
library: {
name: "NodeFetch",
type: "commonjs",
},
clean: true,
asyncChunks: false, // This is required so that only one file is created
},
mode: "production",
target: "electron-renderer",
optimization: {
concatenateModules: true,
minimize: true,
},
externalsPresets: {
node: true,
},
resolve: {
extensions: [".js"],
},
};
-1
View File
@@ -65,7 +65,6 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
},
externals: [
{
"node-fetch": "commonjs node-fetch",
"win-ca": "commonjs win-ca",
},
...additionalExternals,