weapp-vite 6.7.2 → 6.7.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/auto-routes.mjs +2 -2
- package/dist/{chunk-7JSOF7N2.mjs → chunk-BEN5LCG4.mjs} +1 -1
- package/dist/{chunk-FVM35BZA.mjs → chunk-O2O4C4LW.mjs} +23 -9
- package/dist/{chunk-W5TTICYZ.mjs → chunk-S2D6SRQW.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{file-X4XT4UCA.mjs → file-5JL4CYT6.mjs} +1 -1
- package/dist/{getInstance-FVRAZQTP.mjs → getInstance-KJI2GBVQ.mjs} +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +5 -5
package/dist/auto-routes.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
templateExtensions,
|
|
15
15
|
touch,
|
|
16
16
|
vueExtensions
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-S2D6SRQW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
configureLogger,
|
|
20
20
|
default as default2
|
|
@@ -29869,7 +29869,10 @@ function css(ctx) {
|
|
|
29869
29869
|
init_esm_shims();
|
|
29870
29870
|
import { isObject as isObject9 } from "@weapp-core/shared";
|
|
29871
29871
|
var debug3 = createDebugger("weapp-vite:preflight");
|
|
29872
|
-
var removePlugins = [
|
|
29872
|
+
var removePlugins = [
|
|
29873
|
+
"vite:build-import-analysis",
|
|
29874
|
+
"native:import-analysis-build"
|
|
29875
|
+
];
|
|
29873
29876
|
function createPluginPruner() {
|
|
29874
29877
|
return {
|
|
29875
29878
|
name: "weapp-vite:preflight",
|
|
@@ -34502,6 +34505,11 @@ function mergeMiniprogram(options, ...configs) {
|
|
|
34502
34505
|
external,
|
|
34503
34506
|
plugins: oxcRolldownPlugin ? [oxcRolldownPlugin] : void 0
|
|
34504
34507
|
};
|
|
34508
|
+
const miniprogramDefines = {
|
|
34509
|
+
...getDefineImportMetaEnv(),
|
|
34510
|
+
// Vite 动态导入预加载 helper 依赖该标记,miniprogram 构建需稳定替换为 false。
|
|
34511
|
+
__VITE_IS_MODERN__: "false"
|
|
34512
|
+
};
|
|
34505
34513
|
if (isDev) {
|
|
34506
34514
|
const watchInclude = [
|
|
34507
34515
|
path70.join(cwd, srcRoot, "**")
|
|
@@ -34522,10 +34530,9 @@ function mergeMiniprogram(options, ...configs) {
|
|
|
34522
34530
|
{
|
|
34523
34531
|
root: cwd,
|
|
34524
34532
|
mode: "development",
|
|
34525
|
-
define:
|
|
34526
|
-
...getDefineImportMetaEnv()
|
|
34527
|
-
},
|
|
34533
|
+
define: miniprogramDefines,
|
|
34528
34534
|
build: {
|
|
34535
|
+
modulePreload: false,
|
|
34529
34536
|
watch: {
|
|
34530
34537
|
exclude: [
|
|
34531
34538
|
...defaultExcluded,
|
|
@@ -34543,6 +34550,10 @@ function mergeMiniprogram(options, ...configs) {
|
|
|
34543
34550
|
}
|
|
34544
34551
|
}
|
|
34545
34552
|
);
|
|
34553
|
+
inline.define = {
|
|
34554
|
+
...inline.define ?? {},
|
|
34555
|
+
__VITE_IS_MODERN__: "false"
|
|
34556
|
+
};
|
|
34546
34557
|
stripRollupOptions(inline);
|
|
34547
34558
|
arrangePlugins(inline, ctx, subPackageMeta);
|
|
34548
34559
|
injectBuiltinAliases(inline);
|
|
@@ -34554,10 +34565,9 @@ function mergeMiniprogram(options, ...configs) {
|
|
|
34554
34565
|
{
|
|
34555
34566
|
root: cwd,
|
|
34556
34567
|
mode: "production",
|
|
34557
|
-
define:
|
|
34558
|
-
...getDefineImportMetaEnv()
|
|
34559
|
-
},
|
|
34568
|
+
define: miniprogramDefines,
|
|
34560
34569
|
build: {
|
|
34570
|
+
modulePreload: false,
|
|
34561
34571
|
emptyOutDir: false,
|
|
34562
34572
|
// @ts-ignore
|
|
34563
34573
|
rolldownOptions: {
|
|
@@ -34566,6 +34576,10 @@ function mergeMiniprogram(options, ...configs) {
|
|
|
34566
34576
|
}
|
|
34567
34577
|
}
|
|
34568
34578
|
);
|
|
34579
|
+
inlineConfig.define = {
|
|
34580
|
+
...inlineConfig.define ?? {},
|
|
34581
|
+
__VITE_IS_MODERN__: "false"
|
|
34582
|
+
};
|
|
34569
34583
|
stripRollupOptions(inlineConfig);
|
|
34570
34584
|
arrangePlugins(inlineConfig, ctx, subPackageMeta);
|
|
34571
34585
|
inlineConfig.logLevel = "info";
|
|
@@ -37394,7 +37408,7 @@ function createScanService(ctx) {
|
|
|
37394
37408
|
vueAppPath = await findVueEntry(appBasename);
|
|
37395
37409
|
}
|
|
37396
37410
|
if (!appConfigFile && vueAppPath) {
|
|
37397
|
-
const { extractConfigFromVue: extractConfigFromVue2 } = await import("./file-
|
|
37411
|
+
const { extractConfigFromVue: extractConfigFromVue2 } = await import("./file-5JL4CYT6.mjs");
|
|
37398
37412
|
configFromVue = await extractConfigFromVue2(vueAppPath);
|
|
37399
37413
|
if (configFromVue) {
|
|
37400
37414
|
appConfigFile = vueAppPath;
|
|
@@ -145,7 +145,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
145
145
|
}
|
|
146
146
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
147
147
|
try {
|
|
148
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
148
|
+
const { getCompilerContext } = await import("./getInstance-KJI2GBVQ.mjs");
|
|
149
149
|
const service = getCompilerContext().autoRoutesService;
|
|
150
150
|
await service?.ensureFresh?.();
|
|
151
151
|
const reference = service?.getReference?.();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BEN5LCG4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_MP_PLATFORM,
|
|
6
6
|
SHARED_CHUNK_VIRTUAL_PREFIX,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
normalizeMiniPlatform,
|
|
13
13
|
resolveMiniPlatform,
|
|
14
14
|
resolveWeappConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-O2O4C4LW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S2D6SRQW.mjs";
|
|
19
19
|
import {
|
|
20
20
|
resolveWeappMcpConfig,
|
|
21
21
|
startWeappViteMcpServer
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getCompilerContext,
|
|
5
5
|
resetCompilerContext,
|
|
6
6
|
setActiveCompilerContextKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-O2O4C4LW.mjs";
|
|
8
|
+
import "./chunk-S2D6SRQW.mjs";
|
|
9
9
|
import "./chunk-3STNMT72.mjs";
|
|
10
10
|
import "./chunk-QBSVUTNO.mjs";
|
|
11
11
|
export {
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-2Q4QRCG5.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createCompilerContext
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BEN5LCG4.mjs";
|
|
5
|
+
import "./chunk-O2O4C4LW.mjs";
|
|
6
|
+
import "./chunk-S2D6SRQW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
defineConfig
|
|
9
9
|
} from "./chunk-O4WHKAL4.mjs";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.7.
|
|
4
|
+
"version": "6.7.3",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
"vue": "^3.5.29",
|
|
113
113
|
"vue-tsc": "^3.2.5",
|
|
114
114
|
"@weapp-core/init": "6.0.1",
|
|
115
|
-
"@weapp-core/schematics": "6.0.2",
|
|
116
115
|
"@weapp-core/logger": "3.1.0",
|
|
117
|
-
"@weapp-
|
|
116
|
+
"@weapp-core/schematics": "6.0.2",
|
|
118
117
|
"@weapp-core/shared": "3.0.1",
|
|
119
118
|
"@weapp-vite/mcp": "1.1.0",
|
|
119
|
+
"@weapp-vite/volar": "2.0.4",
|
|
120
120
|
"@weapp-vite/web": "1.3.0",
|
|
121
|
-
"@wevu/api": "0.1.1",
|
|
122
121
|
"rolldown-require": "2.0.6",
|
|
122
|
+
"@wevu/api": "0.1.1",
|
|
123
123
|
"vite-plugin-performance": "2.0.1",
|
|
124
124
|
"weapp-ide-cli": "5.1.0",
|
|
125
|
-
"wevu": "6.7.
|
|
125
|
+
"wevu": "6.7.3"
|
|
126
126
|
},
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public",
|