ms-vite-plugin 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.js +2 -0
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -83,7 +83,9 @@ const buildAll = async (isDev = true, workspacePath) => {
|
|
|
83
83
|
entry: {
|
|
84
84
|
[path.basename(entry, path.extname(entry))]: `./scripts/${entry}`,
|
|
85
85
|
},
|
|
86
|
+
fileName: entry,
|
|
86
87
|
formats: ["iife"],
|
|
88
|
+
name: "MagicScript", // IIFE 格式必需的全局变量名
|
|
87
89
|
},
|
|
88
90
|
outDir: "msbundle/scripts",
|
|
89
91
|
emptyOutDir: false, // 不要每次清空输出目录
|