ms-vite-plugin 0.1.2 → 0.1.3

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 -1
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -71,6 +71,7 @@ async function findEntryFiles(src, baseDir) {
71
71
  }
72
72
  /**
73
73
  * 插件:将 main 函数调用替换为 return main();
74
+ * 用于支持后续的 promise 调用
74
75
  * @returns 返回 Vite 插件实例
75
76
  */
76
77
  function returnMain() {
@@ -112,12 +113,12 @@ const buildAll = async (isDev = true, workspacePath) => {
112
113
  plugins: isDev
113
114
  ? [returnMain()]
114
115
  : [
115
- returnMain(),
116
116
  (0, vite_plugin_bundle_obfuscator_1.default)({
117
117
  autoExcludeNodeModules: true,
118
118
  threadPool: true,
119
119
  options: obfuscatorConfig,
120
120
  }),
121
+ returnMain(),
121
122
  ],
122
123
  });
123
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {