mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Move node-fetch to separate package (#7009)
* move node-fetch to separate package Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix node-fetch package runtime error Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix test:unit nx dependency Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix test:unit nx dependency Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * Add prepare step for node-fetch Signed-off-by: Sebastian Malton <sebastian@malton.name> * Update lock Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove dead comment Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove unnecessary fetchModuleInjectable Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Signed-off-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
591d9f30f3
commit
7e8ae3fded
30 files changed
+1196
-3281
No files matched your search
@@ -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"],
|
||||
},
|
||||
};
|
||||
@@ -65,7 +65,6 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
|
||||
},
|
||||
externals: [
|
||||
{
|
||||
"node-fetch": "commonjs node-fetch",
|
||||
"win-ca": "commonjs win-ca",
|
||||
},
|
||||
...additionalExternals,
|
||||
|
||||
Reference in new issue
Block a user