We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b4417 commit 791a0c8Copy full SHA for 791a0c8
1 file changed
src/main.ts
@@ -105,3 +105,25 @@ export function createPlugins(
105
106
return plugins;
107
}
108
+
109
+export function createConfig(
110
+ input: string | Array<string> = "src/main.ts",
111
+ output_dir: string = "dist",
112
+ output_format = "cjs",
113
+ externals: Array<string> = ["atom", "electron"],
114
+ plugins = createPlugins()
115
+) {
116
+ return {
117
+ input: input,
118
+ output: [
119
+ {
120
+ dir: output_dir,
121
+ format: output_format,
122
+ sourcemap: true,
123
+ },
124
+ ],
125
+ // loaded externally
126
+ external: externals,
127
+ plugins: plugins,
128
+ };
129
+}
0 commit comments