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.
- package/dist/build.js +2 -1
- 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
|
}
|