mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simpify by using webpack to create a commonjs package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
1d763c1972
commit
9718837784
10 files changed
+18
-139
No files matched your search
@@ -7,18 +7,15 @@ import path from "path";
|
||||
export default {
|
||||
entry: "./node_modules/node-fetch/src/index.js",
|
||||
output: {
|
||||
library: {
|
||||
type: "module",
|
||||
},
|
||||
path: path.resolve(__dirname, "..", "build", "webpack"),
|
||||
filename: "node-fetch.bundle.js",
|
||||
module: true,
|
||||
library: {
|
||||
name: "NodeFetch",
|
||||
type: "commonjs",
|
||||
},
|
||||
clean: true,
|
||||
asyncChunks: false, // This is required so that only one file is created
|
||||
},
|
||||
experiments: {
|
||||
outputModule: true,
|
||||
},
|
||||
mode: "production",
|
||||
target: "electron-renderer",
|
||||
optimization: {
|
||||
|
||||
Reference in new issue
Block a user