Simpify by using webpack to create a commonjs package

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-11-09 11:23:47 -05:00
1 parent 1d763c1972
commit 9718837784
10 files changed
+18 -139

No files matched your search

+4 -7
View File
@@ -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: {