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.
Files changed (2) hide show
  1. package/dist/build.js +2 -0
  2. 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, // 不要每次清空输出目录
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {