ms-vite-plugin 0.1.0 → 0.1.1

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 -2
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -71,7 +71,7 @@ async function findEntryFiles(src, baseDir) {
71
71
  }
72
72
  const buildAll = async (isDev = true, workspacePath) => {
73
73
  const obfuscatorConfig = await fsExtra.readJSON(path.join(workspacePath, "obfuscator.json"));
74
- const outputDir = path.join(workspacePath, "msbundle");
74
+ const outputDir = path.join(workspacePath, isDev ? "dist" : "msbundle");
75
75
  const baseDir = path.join(workspacePath, "scripts");
76
76
  const entryFiles = await findEntryFiles(baseDir, baseDir);
77
77
  await fsExtra.remove(outputDir);
@@ -88,7 +88,7 @@ const buildAll = async (isDev = true, workspacePath) => {
88
88
  name: "KuaiJS", // IIFE 格式必需的全局变量名
89
89
  },
90
90
  outDir: isDev ? "dist/scripts" : "msbundle/scripts",
91
- emptyOutDir: isDev, // 不要每次清空输出目录
91
+ emptyOutDir: false, // 不要每次清空输出目录
92
92
  sourcemap: isDev,
93
93
  minify: !isDev, // 开发环境不压缩变量名
94
94
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {