+5
-2
build.mjs
+5
-2
build.mjs
···
153
153
entryPoints: [entry],
154
154
outfile,
155
155
156
-
format: "cjs",
156
+
format: "iife",
157
+
globalName: "module.exports",
158
+
157
159
platform: ["web-preload", "browser"].includes(name) ? "browser" : "node",
158
160
159
161
treeShaking: true,
···
256
258
entryPoints,
257
259
outdir,
258
260
259
-
format: "cjs",
261
+
format: "iife",
262
+
globalName: "module.exports",
260
263
platform: "node",
261
264
262
265
treeShaking: true,