weapp-tailwindcss 5.1.1 → 5.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/README.en.md +2 -0
- package/README.md +2 -0
- package/dist/bundlers/gulp/index.d.ts +3 -3
- package/dist/bundlers/rspack/index.d.ts +20 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -1
- package/dist/bundlers/vite/css-memory.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +12 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -0
- package/dist/bundlers/vite/serve-js-transform.d.ts +11 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +4 -1
- package/dist/cli.js +8 -8
- package/dist/cli.mjs +8 -8
- package/dist/{context-DlpKD7aN.mjs → context-B07Vf584.mjs} +34 -34
- package/dist/{context-B6hVF7dr.js → context-D75pwtBW.js} +43 -43
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro/postcss.js +2 -2
- package/dist/css-macro.js +3 -3
- package/dist/{defaults-CmFBmxsr.js → defaults-DQhgnnn-.js} +1 -1
- package/dist/defaults.js +1 -1
- package/dist/framework/index.d.ts +7 -2
- package/dist/framework.js +39 -8
- package/dist/framework.mjs +33 -6
- package/dist/generator/options.d.ts +3 -1
- package/dist/{generator-6oMJtTDO.js → generator-CV_0irKO.js} +4 -2
- package/dist/{generator-CjzBK7h-.mjs → generator-DNs6ekoC.mjs} +3 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/{gulp-BtGq6LP9.js → gulp-B_u8NjQL.js} +9 -9
- package/dist/{gulp-DNU10Vtc.mjs → gulp-aQMZ0M7c.mjs} +4 -4
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-B0KuWDjV.mjs → hmr-timing-DLYQTCDb.mjs} +40 -31
- package/dist/{hmr-timing-CegXR9O4.js → hmr-timing-DOoHun3i.js} +42 -33
- package/dist/index.js +9 -4
- package/dist/index.mjs +7 -6
- package/dist/postcss-html-transform.js +2 -2
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/presets/shared.d.ts +4 -0
- package/dist/presets.js +32 -16
- package/dist/presets.mjs +28 -14
- package/dist/reset.js +2 -2
- package/dist/rspack.d.ts +3 -0
- package/dist/rspack.js +68 -0
- package/dist/rspack.mjs +62 -0
- package/dist/{source-candidate-scan-signature-BKYb9jxa.js → source-candidate-scan-signature-DzwebZrf.js} +6 -6
- package/dist/{source-candidate-scan-signature-B5af2Ahe.mjs → source-candidate-scan-signature-pS87mdHZ.mjs} +3 -3
- package/dist/{tailwindcss-dbrbY4cd.js → tailwindcss-BSCvrs1p.js} +8 -8
- package/dist/{tailwindcss-B5mRo0-M.mjs → tailwindcss-BwV3_Ryc.mjs} +3 -3
- package/dist/{transform-fRBeuuK-.mjs → transform-Clj7R818.mjs} +19 -19
- package/dist/{transform-vLwZpiTE.js → transform-fin-OTVD.js} +47 -47
- package/dist/{utils-BCa37Wqj.js → utils-D3h8j7Mk.js} +2 -2
- package/dist/{v4-engine-C3qSwQ-e.mjs → v4-engine-BklH3CpJ.mjs} +5 -5
- package/dist/{v4-engine-ON_oSLfO.js → v4-engine-CKbS27-o.js} +10 -10
- package/dist/{vite-CWRooooa.mjs → vite-5Wn0PIzJ.mjs} +244 -45
- package/dist/{vite-w-RkgaTY.js → vite-CkVMSDDp.js} +249 -50
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +71 -34
- package/dist/weapp-tw-runtime-classset-loader.js +2 -2
- package/dist/{webpack-8PaV1gG3.mjs → webpack-DEag6ueE.mjs} +66 -18
- package/dist/{webpack-CGgBOx9l.js → webpack-hvSFaicc.js} +71 -23
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +10 -5
- /package/dist/{chunk-emK7D4bc.js → rolldown-runtime-emK7D4bc.js} +0 -0
package/dist/presets.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
3
|
+
const require_framework = require("./framework.js");
|
|
4
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
5
|
+
require("./utils-D3h8j7Mk.js");
|
|
6
|
+
const require_tailwindcss = require("./tailwindcss-BSCvrs1p.js");
|
|
6
7
|
require("./logger-TlKT3xmR.js");
|
|
7
8
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
9
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
9
10
|
let node_process = require("node:process");
|
|
10
|
-
node_process =
|
|
11
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
11
12
|
let local_pkg = require("local-pkg");
|
|
12
13
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
13
14
|
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
@@ -17,6 +18,20 @@ function normalizeCssEntries(entries) {
|
|
|
17
18
|
const normalized = Array.isArray(entries) ? entries : [entries];
|
|
18
19
|
return normalized.length > 0 ? normalized : void 0;
|
|
19
20
|
}
|
|
21
|
+
function shouldEnableWebCompatFromEnv() {
|
|
22
|
+
const { uniPlatform, uniUtsPlatform } = require_framework.resolveUniPlatformsFromEnv();
|
|
23
|
+
return uniPlatform.isWeb || uniUtsPlatform.isWeb || require_framework.resolveTaroPlatform().isWeb;
|
|
24
|
+
}
|
|
25
|
+
function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompatFromEnv()) {
|
|
26
|
+
if (!enabled) return options;
|
|
27
|
+
return {
|
|
28
|
+
...options,
|
|
29
|
+
generator: (0, _weapp_tailwindcss_shared.defuOverrideArray)(options.generator ?? {}, {
|
|
30
|
+
target: "web",
|
|
31
|
+
webCompat: true
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
}
|
|
20
35
|
function createBasePreset(options = {}) {
|
|
21
36
|
const { base, cssEntries, resolve, rawOptions, ...userOptions } = options;
|
|
22
37
|
const baseDir = require_tailwindcss.resolveTailwindcssBasedir(base);
|
|
@@ -42,16 +57,16 @@ function createBasePreset(options = {}) {
|
|
|
42
57
|
//#endregion
|
|
43
58
|
//#region src/presets/hbuilderx.ts
|
|
44
59
|
function hbuilderx(options = {}) {
|
|
45
|
-
return createBasePreset({ ...options });
|
|
60
|
+
return createBasePreset(withWebCompatGeneratorDefaults({ ...options }));
|
|
46
61
|
}
|
|
47
62
|
//#endregion
|
|
48
63
|
//#region src/presets/uni-app.ts
|
|
49
64
|
function uniApp(options = {}) {
|
|
50
65
|
const uniPlatform = node_process.default.env["UNI_PLATFORM"];
|
|
51
|
-
return createBasePreset({
|
|
52
|
-
disabled: uniPlatform === "
|
|
66
|
+
return createBasePreset(withWebCompatGeneratorDefaults({
|
|
67
|
+
disabled: uniPlatform === "app" || uniPlatform === "app-plus" ? true : void 0,
|
|
53
68
|
...options
|
|
54
|
-
});
|
|
69
|
+
}));
|
|
55
70
|
}
|
|
56
71
|
//#endregion
|
|
57
72
|
//#region src/tailwindcss/index.ts
|
|
@@ -64,7 +79,7 @@ function resolveTailwindResolveOptions(base, resolve) {
|
|
|
64
79
|
const currentPaths = Array.isArray(resolve?.paths) ? resolve.paths : [];
|
|
65
80
|
return {
|
|
66
81
|
...resolve ?? {},
|
|
67
|
-
paths: [
|
|
82
|
+
paths: [.../* @__PURE__ */ new Set([
|
|
68
83
|
node_path.default.join(base, "node_modules"),
|
|
69
84
|
base,
|
|
70
85
|
...currentPaths
|
|
@@ -84,10 +99,9 @@ function resolveInstalledTailwindDefaults(resolve) {
|
|
|
84
99
|
}
|
|
85
100
|
function uniAppX(options) {
|
|
86
101
|
_weapp_tailwindcss_logger.logger.info(`UNI_PLATFORM: ${node_process.default.env["UNI_PLATFORM"]}`);
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const isApp = utsPlatform.isApp || uniPlatform.isApp;
|
|
102
|
+
const { uniPlatform, uniUtsPlatform } = require_framework.resolveUniPlatformsFromEnv();
|
|
103
|
+
_weapp_tailwindcss_logger.logger.info(`UNI_UTS_PLATFORM: ${uniUtsPlatform.raw ?? "undefined"}`);
|
|
104
|
+
const isApp = uniUtsPlatform.isApp || uniPlatform.isApp;
|
|
91
105
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
92
106
|
const resolvedResolve = resolveTailwindResolveOptions(options.base, options.resolve);
|
|
93
107
|
const installedTailwindDefaults = resolveInstalledTailwindDefaults(resolvedResolve);
|
|
@@ -100,7 +114,7 @@ function uniAppX(options) {
|
|
|
100
114
|
if (typeof options.uniAppX === "boolean") resolvedUniAppX.enabled = options.uniAppX;
|
|
101
115
|
return (0, _weapp_tailwindcss_shared.defuOverrideArray)(options.rawOptions ?? {}, {
|
|
102
116
|
uniAppX: resolvedUniAppX,
|
|
103
|
-
...options.generator !== void 0 ? { generator: options.generator } : {},
|
|
117
|
+
...withWebCompatGeneratorDefaults(options.generator !== void 0 ? { generator: options.generator } : {}),
|
|
104
118
|
rem2rpx: options.rem2rpx,
|
|
105
119
|
unitsToPx: options.unitsToPx,
|
|
106
120
|
unitConversion: options.unitConversion,
|
|
@@ -135,5 +149,7 @@ function uniAppX(options) {
|
|
|
135
149
|
exports.createBasePreset = createBasePreset;
|
|
136
150
|
exports.hbuilderx = hbuilderx;
|
|
137
151
|
exports.normalizeCssEntries = normalizeCssEntries;
|
|
152
|
+
exports.shouldEnableWebCompatFromEnv = shouldEnableWebCompatFromEnv;
|
|
138
153
|
exports.uniApp = uniApp;
|
|
139
154
|
exports.uniAppX = uniAppX;
|
|
155
|
+
exports.withWebCompatGeneratorDefaults = withWebCompatGeneratorDefaults;
|
package/dist/presets.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { resolveTaroPlatform, resolveUniPlatformsFromEnv } from "./framework.mjs";
|
|
2
|
+
import { st as omitUndefined } from "./v4-engine-BklH3CpJ.mjs";
|
|
3
|
+
import { n as defuOverrideArray } from "./utils-DodxWHGz.mjs";
|
|
4
|
+
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-BwV3_Ryc.mjs";
|
|
4
5
|
import { t as logger } from "./logger-BNzxZbZj.mjs";
|
|
5
6
|
import path from "node:path";
|
|
6
7
|
import process from "node:process";
|
|
@@ -11,6 +12,20 @@ function normalizeCssEntries(entries) {
|
|
|
11
12
|
const normalized = Array.isArray(entries) ? entries : [entries];
|
|
12
13
|
return normalized.length > 0 ? normalized : void 0;
|
|
13
14
|
}
|
|
15
|
+
function shouldEnableWebCompatFromEnv() {
|
|
16
|
+
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
17
|
+
return uniPlatform.isWeb || uniUtsPlatform.isWeb || resolveTaroPlatform().isWeb;
|
|
18
|
+
}
|
|
19
|
+
function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompatFromEnv()) {
|
|
20
|
+
if (!enabled) return options;
|
|
21
|
+
return {
|
|
22
|
+
...options,
|
|
23
|
+
generator: defuOverrideArray(options.generator ?? {}, {
|
|
24
|
+
target: "web",
|
|
25
|
+
webCompat: true
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
}
|
|
14
29
|
function createBasePreset(options = {}) {
|
|
15
30
|
const { base, cssEntries, resolve, rawOptions, ...userOptions } = options;
|
|
16
31
|
const baseDir = resolveTailwindcssBasedir(base);
|
|
@@ -36,16 +51,16 @@ function createBasePreset(options = {}) {
|
|
|
36
51
|
//#endregion
|
|
37
52
|
//#region src/presets/hbuilderx.ts
|
|
38
53
|
function hbuilderx(options = {}) {
|
|
39
|
-
return createBasePreset({ ...options });
|
|
54
|
+
return createBasePreset(withWebCompatGeneratorDefaults({ ...options }));
|
|
40
55
|
}
|
|
41
56
|
//#endregion
|
|
42
57
|
//#region src/presets/uni-app.ts
|
|
43
58
|
function uniApp(options = {}) {
|
|
44
59
|
const uniPlatform = process.env["UNI_PLATFORM"];
|
|
45
|
-
return createBasePreset({
|
|
46
|
-
disabled: uniPlatform === "
|
|
60
|
+
return createBasePreset(withWebCompatGeneratorDefaults({
|
|
61
|
+
disabled: uniPlatform === "app" || uniPlatform === "app-plus" ? true : void 0,
|
|
47
62
|
...options
|
|
48
|
-
});
|
|
63
|
+
}));
|
|
49
64
|
}
|
|
50
65
|
//#endregion
|
|
51
66
|
//#region src/tailwindcss/index.ts
|
|
@@ -58,7 +73,7 @@ function resolveTailwindResolveOptions(base, resolve) {
|
|
|
58
73
|
const currentPaths = Array.isArray(resolve?.paths) ? resolve.paths : [];
|
|
59
74
|
return {
|
|
60
75
|
...resolve ?? {},
|
|
61
|
-
paths: [
|
|
76
|
+
paths: [.../* @__PURE__ */ new Set([
|
|
62
77
|
path.join(base, "node_modules"),
|
|
63
78
|
base,
|
|
64
79
|
...currentPaths
|
|
@@ -78,10 +93,9 @@ function resolveInstalledTailwindDefaults(resolve) {
|
|
|
78
93
|
}
|
|
79
94
|
function uniAppX(options) {
|
|
80
95
|
logger.info(`UNI_PLATFORM: ${process.env["UNI_PLATFORM"]}`);
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const isApp = utsPlatform.isApp || uniPlatform.isApp;
|
|
96
|
+
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
97
|
+
logger.info(`UNI_UTS_PLATFORM: ${uniUtsPlatform.raw ?? "undefined"}`);
|
|
98
|
+
const isApp = uniUtsPlatform.isApp || uniPlatform.isApp;
|
|
85
99
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
86
100
|
const resolvedResolve = resolveTailwindResolveOptions(options.base, options.resolve);
|
|
87
101
|
const installedTailwindDefaults = resolveInstalledTailwindDefaults(resolvedResolve);
|
|
@@ -94,7 +108,7 @@ function uniAppX(options) {
|
|
|
94
108
|
if (typeof options.uniAppX === "boolean") resolvedUniAppX.enabled = options.uniAppX;
|
|
95
109
|
return defuOverrideArray(options.rawOptions ?? {}, {
|
|
96
110
|
uniAppX: resolvedUniAppX,
|
|
97
|
-
...options.generator !== void 0 ? { generator: options.generator } : {},
|
|
111
|
+
...withWebCompatGeneratorDefaults(options.generator !== void 0 ? { generator: options.generator } : {}),
|
|
98
112
|
rem2rpx: options.rem2rpx,
|
|
99
113
|
unitsToPx: options.unitsToPx,
|
|
100
114
|
unitConversion: options.unitConversion,
|
|
@@ -126,4 +140,4 @@ function uniAppX(options) {
|
|
|
126
140
|
});
|
|
127
141
|
}
|
|
128
142
|
//#endregion
|
|
129
|
-
export { createBasePreset, hbuilderx, normalizeCssEntries, uniApp, uniAppX };
|
|
143
|
+
export { createBasePreset, hbuilderx, normalizeCssEntries, shouldEnableWebCompatFromEnv, uniApp, uniAppX, withWebCompatGeneratorDefaults };
|
package/dist/reset.js
CHANGED
|
@@ -2,9 +2,9 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const
|
|
5
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
6
6
|
let _weapp_tailwindcss_reset = require("@weapp-tailwindcss/reset");
|
|
7
|
-
_weapp_tailwindcss_reset =
|
|
7
|
+
_weapp_tailwindcss_reset = require_rolldown_runtime.__toESM(_weapp_tailwindcss_reset);
|
|
8
8
|
Object.defineProperty(exports, "default", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function() {
|
package/dist/rspack.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { patchRspackConfig, WeappTailwindcss, WeappTailwindcss as weappTailwindcss, weappTailwindcssPackageDir, } from './bundlers/rspack';
|
|
2
|
+
export type { PatchRspackConfigOptions, PatchRspackCssImportRewriteLoaderOptions, RspackConfigLike, } from './bundlers/rspack';
|
|
3
|
+
export type { UserDefinedOptions } from './types';
|
package/dist/rspack.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
3
|
+
const require_webpack = require("./webpack-hvSFaicc.js");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
6
|
+
//#region src/bundlers/rspack/index.ts
|
|
7
|
+
const CSS_IMPORT_REWRITE_LOADER_NAME = "weapp-tw-css-import-rewrite-loader";
|
|
8
|
+
const LIGHTNING_CSS_LOADER_NAME = "builtin:lightningcss-loader";
|
|
9
|
+
const CSS_LOADER_NAME = "css-loader";
|
|
10
|
+
const POSTCSS_LOADER_NAME = "postcss-loader";
|
|
11
|
+
function isRuleLike(value) {
|
|
12
|
+
return typeof value === "object" && value !== null;
|
|
13
|
+
}
|
|
14
|
+
function normalizeUse(use) {
|
|
15
|
+
if (Array.isArray(use)) return use;
|
|
16
|
+
if (use === void 0) return;
|
|
17
|
+
return [use];
|
|
18
|
+
}
|
|
19
|
+
function getLoaderName(item) {
|
|
20
|
+
if (typeof item === "string") return item;
|
|
21
|
+
return item?.loader;
|
|
22
|
+
}
|
|
23
|
+
function includesLoaderName(item, name) {
|
|
24
|
+
return getLoaderName(item)?.includes(name) === true;
|
|
25
|
+
}
|
|
26
|
+
function createCssImportRewriteLoaderEntry(options) {
|
|
27
|
+
return {
|
|
28
|
+
loader: options.loader ?? node_path.default.resolve(__dirname, `./${CSS_IMPORT_REWRITE_LOADER_NAME}.js`),
|
|
29
|
+
...options.options === void 0 ? {} : { options: options.options }
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function resolveCssImportRewriteOptions(options) {
|
|
33
|
+
const cssImportRewriteLoader = options.cssImportRewriteLoader ?? true;
|
|
34
|
+
if (cssImportRewriteLoader === false) return;
|
|
35
|
+
return cssImportRewriteLoader === true ? {} : cssImportRewriteLoader;
|
|
36
|
+
}
|
|
37
|
+
function patchRuleUse(rule, options) {
|
|
38
|
+
let use = normalizeUse(rule.use);
|
|
39
|
+
if (!use) return;
|
|
40
|
+
if (options.removeLightningCssLoader) use = use.filter((item) => !includesLoaderName(item, LIGHTNING_CSS_LOADER_NAME));
|
|
41
|
+
const cssImportRewriteOptions = resolveCssImportRewriteOptions(options);
|
|
42
|
+
if (cssImportRewriteOptions) {
|
|
43
|
+
const existingIndex = use.findIndex((item) => includesLoaderName(item, CSS_IMPORT_REWRITE_LOADER_NAME));
|
|
44
|
+
const existing = existingIndex === -1 ? void 0 : use.splice(existingIndex, 1)[0];
|
|
45
|
+
const anchorIndex = use.findIndex((item) => includesLoaderName(item, LIGHTNING_CSS_LOADER_NAME));
|
|
46
|
+
const fallbackAnchorIndex = anchorIndex === -1 ? use.findIndex((item) => includesLoaderName(item, CSS_LOADER_NAME) || includesLoaderName(item, POSTCSS_LOADER_NAME)) : anchorIndex;
|
|
47
|
+
if (fallbackAnchorIndex !== -1) {
|
|
48
|
+
const loaderEntry = existing ?? createCssImportRewriteLoaderEntry(cssImportRewriteOptions);
|
|
49
|
+
use.splice(fallbackAnchorIndex + 1, 0, loaderEntry);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
rule.use = use;
|
|
53
|
+
}
|
|
54
|
+
function walkRspackRule(rule, options) {
|
|
55
|
+
if (!isRuleLike(rule)) return;
|
|
56
|
+
patchRuleUse(rule, options);
|
|
57
|
+
if (Array.isArray(rule.oneOf)) rule.oneOf.forEach((item) => walkRspackRule(item, options));
|
|
58
|
+
if (Array.isArray(rule.rules)) rule.rules.forEach((item) => walkRspackRule(item, options));
|
|
59
|
+
}
|
|
60
|
+
function patchRspackConfig(config, options = {}) {
|
|
61
|
+
for (const rule of config.module?.rules ?? []) walkRspackRule(rule, options);
|
|
62
|
+
return config;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.WeappTailwindcss = require_webpack.WeappTailwindcss;
|
|
66
|
+
exports.patchRspackConfig = patchRspackConfig;
|
|
67
|
+
exports.weappTailwindcss = require_webpack.WeappTailwindcss;
|
|
68
|
+
exports.weappTailwindcssPackageDir = require_webpack.weappTailwindcssPackageDir;
|
package/dist/rspack.mjs
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-DEag6ueE.mjs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
//#region src/bundlers/rspack/index.ts
|
|
4
|
+
const CSS_IMPORT_REWRITE_LOADER_NAME = "weapp-tw-css-import-rewrite-loader";
|
|
5
|
+
const LIGHTNING_CSS_LOADER_NAME = "builtin:lightningcss-loader";
|
|
6
|
+
const CSS_LOADER_NAME = "css-loader";
|
|
7
|
+
const POSTCSS_LOADER_NAME = "postcss-loader";
|
|
8
|
+
function isRuleLike(value) {
|
|
9
|
+
return typeof value === "object" && value !== null;
|
|
10
|
+
}
|
|
11
|
+
function normalizeUse(use) {
|
|
12
|
+
if (Array.isArray(use)) return use;
|
|
13
|
+
if (use === void 0) return;
|
|
14
|
+
return [use];
|
|
15
|
+
}
|
|
16
|
+
function getLoaderName(item) {
|
|
17
|
+
if (typeof item === "string") return item;
|
|
18
|
+
return item?.loader;
|
|
19
|
+
}
|
|
20
|
+
function includesLoaderName(item, name) {
|
|
21
|
+
return getLoaderName(item)?.includes(name) === true;
|
|
22
|
+
}
|
|
23
|
+
function createCssImportRewriteLoaderEntry(options) {
|
|
24
|
+
return {
|
|
25
|
+
loader: options.loader ?? path.resolve(__dirname, `./${CSS_IMPORT_REWRITE_LOADER_NAME}.js`),
|
|
26
|
+
...options.options === void 0 ? {} : { options: options.options }
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function resolveCssImportRewriteOptions(options) {
|
|
30
|
+
const cssImportRewriteLoader = options.cssImportRewriteLoader ?? true;
|
|
31
|
+
if (cssImportRewriteLoader === false) return;
|
|
32
|
+
return cssImportRewriteLoader === true ? {} : cssImportRewriteLoader;
|
|
33
|
+
}
|
|
34
|
+
function patchRuleUse(rule, options) {
|
|
35
|
+
let use = normalizeUse(rule.use);
|
|
36
|
+
if (!use) return;
|
|
37
|
+
if (options.removeLightningCssLoader) use = use.filter((item) => !includesLoaderName(item, LIGHTNING_CSS_LOADER_NAME));
|
|
38
|
+
const cssImportRewriteOptions = resolveCssImportRewriteOptions(options);
|
|
39
|
+
if (cssImportRewriteOptions) {
|
|
40
|
+
const existingIndex = use.findIndex((item) => includesLoaderName(item, CSS_IMPORT_REWRITE_LOADER_NAME));
|
|
41
|
+
const existing = existingIndex === -1 ? void 0 : use.splice(existingIndex, 1)[0];
|
|
42
|
+
const anchorIndex = use.findIndex((item) => includesLoaderName(item, LIGHTNING_CSS_LOADER_NAME));
|
|
43
|
+
const fallbackAnchorIndex = anchorIndex === -1 ? use.findIndex((item) => includesLoaderName(item, CSS_LOADER_NAME) || includesLoaderName(item, POSTCSS_LOADER_NAME)) : anchorIndex;
|
|
44
|
+
if (fallbackAnchorIndex !== -1) {
|
|
45
|
+
const loaderEntry = existing ?? createCssImportRewriteLoaderEntry(cssImportRewriteOptions);
|
|
46
|
+
use.splice(fallbackAnchorIndex + 1, 0, loaderEntry);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
rule.use = use;
|
|
50
|
+
}
|
|
51
|
+
function walkRspackRule(rule, options) {
|
|
52
|
+
if (!isRuleLike(rule)) return;
|
|
53
|
+
patchRuleUse(rule, options);
|
|
54
|
+
if (Array.isArray(rule.oneOf)) rule.oneOf.forEach((item) => walkRspackRule(item, options));
|
|
55
|
+
if (Array.isArray(rule.rules)) rule.rules.forEach((item) => walkRspackRule(item, options));
|
|
56
|
+
}
|
|
57
|
+
function patchRspackConfig(config, options = {}) {
|
|
58
|
+
for (const rule of config.module?.rules ?? []) walkRspackRule(rule, options);
|
|
59
|
+
return config;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss, patchRspackConfig, weappTailwindcssPackageDir };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_context = require("./context-
|
|
3
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
4
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
2
|
+
const require_context = require("./context-D75pwtBW.js");
|
|
3
|
+
const require_tailwindcss = require("./tailwindcss-BSCvrs1p.js");
|
|
4
|
+
const require_hmr_timing = require("./hmr-timing-DOoHun3i.js");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
6
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
7
7
|
let node_process = require("node:process");
|
|
8
|
-
node_process =
|
|
8
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
9
9
|
let node_module = require("node:module");
|
|
10
10
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
11
11
|
let node_buffer = require("node:buffer");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as traverse, h as babelParse, o as Parser } from "./context-
|
|
2
|
-
import { g as resolveTailwindV4EntriesFromCssCached } from "./tailwindcss-
|
|
3
|
-
import { u as generateCssByGenerator } from "./hmr-timing-
|
|
1
|
+
import { g as traverse, h as babelParse, o as Parser } from "./context-B07Vf584.mjs";
|
|
2
|
+
import { g as resolveTailwindV4EntriesFromCssCached } from "./tailwindcss-BwV3_Ryc.mjs";
|
|
3
|
+
import { u as generateCssByGenerator } from "./hmr-timing-DLYQTCDb.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import process from "node:process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
require("./utils-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
2
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
3
|
+
require("./utils-D3h8j7Mk.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
6
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
7
7
|
let node_process = require("node:process");
|
|
8
|
-
node_process =
|
|
8
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
9
9
|
let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
|
|
10
10
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
11
11
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -13,7 +13,7 @@ let node_module = require("node:module");
|
|
|
13
13
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
14
14
|
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
15
15
|
let fast_glob = require("fast-glob");
|
|
16
|
-
fast_glob =
|
|
16
|
+
fast_glob = require_rolldown_runtime.__toESM(fast_glob);
|
|
17
17
|
let tailwindcss_config = require("tailwindcss-config");
|
|
18
18
|
let node_url = require("node:url");
|
|
19
19
|
//#region src/bundlers/vite/static-config-content.ts
|
|
@@ -507,7 +507,7 @@ async function resolveViteSourceScanEntries(options, runtime, scanOptions = {})
|
|
|
507
507
|
addSourceScanDependency(dependencies, source.file);
|
|
508
508
|
addSourceScanDependencies(dependencies, source.dependencies);
|
|
509
509
|
const resolved = await resolveTailwindV4EntriesFromCssCached(source.css, source.base);
|
|
510
|
-
return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), new Set([...dependencies, ...resolved.dependencies])) : void 0;
|
|
510
|
+
return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), /* @__PURE__ */ new Set([...dependencies, ...resolved.dependencies])) : void 0;
|
|
511
511
|
}
|
|
512
512
|
function createViteSourceScanMatcher(entries) {
|
|
513
513
|
if (entries?.length === 0) return;
|
|
@@ -1296,7 +1296,7 @@ const ENV_BASEDIR_KEYS = [
|
|
|
1296
1296
|
"INIT_CWD",
|
|
1297
1297
|
"PWD"
|
|
1298
1298
|
];
|
|
1299
|
-
const GENERIC_ENV_BASEDIR_KEYS = new Set(["INIT_CWD", "PWD"]);
|
|
1299
|
+
const GENERIC_ENV_BASEDIR_KEYS = /* @__PURE__ */ new Set(["INIT_CWD", "PWD"]);
|
|
1300
1300
|
function pickEnvBasedir() {
|
|
1301
1301
|
for (const key of ENV_BASEDIR_KEYS) {
|
|
1302
1302
|
const value = node_process.default.env[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as normalizeLegacyContentEntries, X as createTailwindSourceEntryMatcher, Y as FULL_SOURCE_SCAN_PATTERN, Z as expandTailwindSourceEntries, _ as resolveTailwindcssOptions, a as filterTailwindV4CssSourceRoots, at as collectCssInlineSourceCandidates, c as groupCssEntriesByBase, d as normalizeCssEntries, et as parseConfigParam, f as findNearestPackageRoot, g as normalizeTailwindcssRuntimeOptions, h as normalizeExtendLengthUnits, i as resolveTailwindV4SourceOptionsFromRuntime, l as guessBasedirFromEntries, lt as loadTailwindV4DesignSystem, m as findWorkspaceRoot, n as resolveTailwindV4SourceFromRuntime, o as hasConfiguredTailwindV4CssRoots, p as findWorkspacePackageDir, rt as resolveTailwindV4CssSourceBase, st as omitUndefined, tt as resolveCssSourceEntries, u as isTailwindV4CssEntry, v as normalizeStringListOption } from "./v4-engine-
|
|
1
|
+
import { $ as normalizeLegacyContentEntries, X as createTailwindSourceEntryMatcher, Y as FULL_SOURCE_SCAN_PATTERN, Z as expandTailwindSourceEntries, _ as resolveTailwindcssOptions, a as filterTailwindV4CssSourceRoots, at as collectCssInlineSourceCandidates, c as groupCssEntriesByBase, d as normalizeCssEntries, et as parseConfigParam, f as findNearestPackageRoot, g as normalizeTailwindcssRuntimeOptions, h as normalizeExtendLengthUnits, i as resolveTailwindV4SourceOptionsFromRuntime, l as guessBasedirFromEntries, lt as loadTailwindV4DesignSystem, m as findWorkspaceRoot, n as resolveTailwindV4SourceFromRuntime, o as hasConfiguredTailwindV4CssRoots, p as findWorkspacePackageDir, rt as resolveTailwindV4CssSourceBase, st as omitUndefined, tt as resolveCssSourceEntries, u as isTailwindV4CssEntry, v as normalizeStringListOption } from "./v4-engine-BklH3CpJ.mjs";
|
|
2
2
|
import { n as defuOverrideArray$1 } from "./utils-DodxWHGz.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
@@ -503,7 +503,7 @@ async function resolveViteSourceScanEntries(options, runtime, scanOptions = {})
|
|
|
503
503
|
addSourceScanDependency(dependencies, source.file);
|
|
504
504
|
addSourceScanDependencies(dependencies, source.dependencies);
|
|
505
505
|
const resolved = await resolveTailwindV4EntriesFromCssCached(source.css, source.base);
|
|
506
|
-
return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), new Set([...dependencies, ...resolved.dependencies])) : void 0;
|
|
506
|
+
return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), /* @__PURE__ */ new Set([...dependencies, ...resolved.dependencies])) : void 0;
|
|
507
507
|
}
|
|
508
508
|
function createViteSourceScanMatcher(entries) {
|
|
509
509
|
if (entries?.length === 0) return;
|
|
@@ -1292,7 +1292,7 @@ const ENV_BASEDIR_KEYS = [
|
|
|
1292
1292
|
"INIT_CWD",
|
|
1293
1293
|
"PWD"
|
|
1294
1294
|
];
|
|
1295
|
-
const GENERIC_ENV_BASEDIR_KEYS = new Set(["INIT_CWD", "PWD"]);
|
|
1295
|
+
const GENERIC_ENV_BASEDIR_KEYS = /* @__PURE__ */ new Set(["INIT_CWD", "PWD"]);
|
|
1296
1296
|
function pickEnvBasedir() {
|
|
1297
1297
|
for (const key of ENV_BASEDIR_KEYS) {
|
|
1298
1298
|
const value = process.env[key];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as createAttributeMatcher, d as JsTokenUpdater, f as _defineProperty, h as babelParse, m as replaceWxml, p as isClassContextLiteralPath, s as generateCode, u as analyzeSource } from "./context-
|
|
1
|
+
import { c as createAttributeMatcher, d as JsTokenUpdater, f as _defineProperty, h as babelParse, m as replaceWxml, p as isClassContextLiteralPath, s as generateCode, u as analyzeSource } from "./context-B07Vf584.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { splitCandidateTokens } from "@tailwindcss-mangle/engine";
|
|
4
4
|
import MagicString from "magic-string";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
6
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
7
|
-
var __require = /*
|
|
7
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.cjs.prod.js
|
|
10
10
|
/**
|
|
11
|
-
* @vue/shared v3.5.
|
|
11
|
+
* @vue/shared v3.5.39
|
|
12
12
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
13
|
* @license MIT
|
|
14
14
|
**/
|
|
@@ -492,9 +492,9 @@ var require_shared_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
492
492
|
exports.toTypeString = toTypeString;
|
|
493
493
|
}));
|
|
494
494
|
//#endregion
|
|
495
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
495
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.cjs.js
|
|
496
496
|
/**
|
|
497
|
-
* @vue/shared v3.5.
|
|
497
|
+
* @vue/shared v3.5.39
|
|
498
498
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
499
499
|
* @license MIT
|
|
500
500
|
**/
|
|
@@ -979,7 +979,7 @@ var require_shared_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
979
979
|
exports.toTypeString = toTypeString;
|
|
980
980
|
}));
|
|
981
981
|
//#endregion
|
|
982
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
982
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/index.js
|
|
983
983
|
var require_shared = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
984
984
|
if (process.env.NODE_ENV === "production") module.exports = require_shared_cjs_prod();
|
|
985
985
|
else module.exports = require_shared_cjs();
|
|
@@ -992,7 +992,7 @@ var require_decode_codepoint = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
992
992
|
exports.fromCodePoint = void 0;
|
|
993
993
|
exports.replaceCodePoint = replaceCodePoint;
|
|
994
994
|
exports.decodeCodePoint = decodeCodePoint;
|
|
995
|
-
const decodeMap = new Map([
|
|
995
|
+
const decodeMap = /* @__PURE__ */ new Map([
|
|
996
996
|
[0, 65533],
|
|
997
997
|
[128, 8364],
|
|
998
998
|
[130, 8218],
|
|
@@ -3916,9 +3916,9 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3916
3916
|
exports.SourceNode = require_source_node().SourceNode;
|
|
3917
3917
|
}));
|
|
3918
3918
|
//#endregion
|
|
3919
|
-
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.
|
|
3919
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.39/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
|
|
3920
3920
|
/**
|
|
3921
|
-
* @vue/compiler-core v3.5.
|
|
3921
|
+
* @vue/compiler-core v3.5.39
|
|
3922
3922
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3923
3923
|
* @license MIT
|
|
3924
3924
|
**/
|
|
@@ -8347,7 +8347,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
|
|
|
8347
8347
|
const child = node.children[i];
|
|
8348
8348
|
if (typeof child !== "object") continue;
|
|
8349
8349
|
if (child.type === 4) parseFilter(child, context);
|
|
8350
|
-
else if (child.type === 8) rewriteFilter(
|
|
8350
|
+
else if (child.type === 8) rewriteFilter(child, context);
|
|
8351
8351
|
else if (child.type === 5) rewriteFilter(child.content, context);
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
@@ -8676,9 +8676,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
|
|
|
8676
8676
|
exports.warnDeprecation = warnDeprecation;
|
|
8677
8677
|
}));
|
|
8678
8678
|
//#endregion
|
|
8679
|
-
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.
|
|
8679
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.39/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
|
|
8680
8680
|
/**
|
|
8681
|
-
* @vue/compiler-core v3.5.
|
|
8681
|
+
* @vue/compiler-core v3.5.39
|
|
8682
8682
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8683
8683
|
* @license MIT
|
|
8684
8684
|
**/
|
|
@@ -13163,7 +13163,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
|
|
|
13163
13163
|
const child = node.children[i];
|
|
13164
13164
|
if (typeof child !== "object") continue;
|
|
13165
13165
|
if (child.type === 4) parseFilter(child, context);
|
|
13166
|
-
else if (child.type === 8) rewriteFilter(
|
|
13166
|
+
else if (child.type === 8) rewriteFilter(child, context);
|
|
13167
13167
|
else if (child.type === 5) rewriteFilter(child.content, context);
|
|
13168
13168
|
}
|
|
13169
13169
|
}
|
|
@@ -13493,15 +13493,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
|
|
|
13493
13493
|
exports.warnDeprecation = warnDeprecation;
|
|
13494
13494
|
}));
|
|
13495
13495
|
//#endregion
|
|
13496
|
-
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.
|
|
13496
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.39/node_modules/@vue/compiler-core/index.js
|
|
13497
13497
|
var require_compiler_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13498
13498
|
if (process.env.NODE_ENV === "production") module.exports = require_compiler_core_cjs_prod();
|
|
13499
13499
|
else module.exports = require_compiler_core_cjs();
|
|
13500
13500
|
}));
|
|
13501
13501
|
//#endregion
|
|
13502
|
-
//#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.
|
|
13502
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.39/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
|
|
13503
13503
|
/**
|
|
13504
|
-
* @vue/compiler-dom v3.5.
|
|
13504
|
+
* @vue/compiler-dom v3.5.39
|
|
13505
13505
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13506
13506
|
* @license MIT
|
|
13507
13507
|
**/
|
|
@@ -13934,9 +13934,9 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
13934
13934
|
});
|
|
13935
13935
|
}));
|
|
13936
13936
|
//#endregion
|
|
13937
|
-
//#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.
|
|
13937
|
+
//#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.39/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
|
|
13938
13938
|
/**
|
|
13939
|
-
* @vue/compiler-dom v3.5.
|
|
13939
|
+
* @vue/compiler-dom v3.5.39
|
|
13940
13940
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13941
13941
|
* @license MIT
|
|
13942
13942
|
**/
|