weapp-tailwindcss 5.0.13 → 5.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.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/auto-Ba6hDrse.mjs +13 -0
- package/dist/auto-DtU6f3X6.js +18 -0
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/class-selectors.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/directives.d.ts +2 -1
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +10 -6
- package/dist/bundlers/shared/generator-css/local-imports.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +0 -1
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +3 -3
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +2 -2
- package/dist/bundlers/shared/generator-css/types.d.ts +13 -1
- package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -1
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
- package/dist/bundlers/shared/run-tasks.d.ts +1 -0
- package/dist/bundlers/shared/v4-generation-core.d.ts +11 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +1 -1
- package/dist/bundlers/vite/css-memory.d.ts +16 -0
- package/dist/bundlers/vite/generate-bundle/candidates.d.ts +0 -1
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +39 -0
- package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +13 -0
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +26 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +21 -18
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +25 -0
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +3 -1
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/tailwind-v4-css-source.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +15 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle.d.ts +2 -1
- package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -0
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +3 -3
- package/dist/bundlers/vite/plugin-cache.d.ts +15 -0
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +1 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +5 -4
- package/dist/bundlers/vite/source-candidates/script.d.ts +1 -7
- package/dist/bundlers/vite/source-candidates.d.ts +9 -2
- package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -6
- package/dist/bundlers/vite/source-scan.d.ts +2 -2
- package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
- package/dist/bundlers/vite/utils.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +26 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +34 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +48 -11
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +37 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +199 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +28 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +11 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +4 -2
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +10 -1
- package/dist/bundlers/webpack/shared/css-loader-runtime.d.ts +1 -0
- package/dist/cache/index.d.ts +1 -0
- package/dist/cli/mount-options.d.ts +2 -2
- package/dist/cli.js +138 -444
- package/dist/cli.mjs +134 -440
- package/dist/context/index.d.ts +3 -3
- package/dist/context/style-options.d.ts +5 -1
- package/dist/context/tailwindcss.d.ts +1 -1
- package/dist/{precheck-B0Z8yW7E.js → context-B6hVF7dr.js} +405 -156
- package/dist/{precheck-CRI90iL1.mjs → context-DlpKD7aN.mjs} +377 -141
- package/dist/core.js +15 -12
- package/dist/core.mjs +10 -7
- package/dist/css-macro/index.d.ts +3 -7
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/{defaults-Bqx18S1f.mjs → defaults-BhE26nSw.mjs} +12 -13
- package/dist/{defaults-C_J_kBpw.js → defaults-CmFBmxsr.js} +11 -18
- package/dist/defaults.d.ts +2 -8
- package/dist/defaults.js +1 -2
- package/dist/defaults.mjs +2 -2
- package/dist/generator/index.d.ts +6 -7
- package/dist/generator/options.d.ts +3 -3
- package/dist/generator/types.d.ts +9 -10
- package/dist/generator-6oMJtTDO.js +170 -0
- package/dist/generator-CjzBK7h-.mjs +123 -0
- package/dist/generator.js +10 -16
- package/dist/generator.mjs +3 -3
- package/dist/{gulp-XT8Jc7lH.js → gulp-BtGq6LP9.js} +49 -87
- package/dist/{gulp-DfOQERcV.mjs → gulp-DNU10Vtc.mjs} +42 -80
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-DQIP_8qP.mjs → hmr-timing-B0KuWDjV.mjs} +1197 -858
- package/dist/{hmr-timing-BMftW7Us.js → hmr-timing-CegXR9O4.js} +1356 -927
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/js/fast-path/oxc.d.ts +4 -0
- package/dist/js/precheck.d.ts +1 -0
- package/dist/postcss.js +3 -4
- package/dist/postcss.mjs +2 -3
- package/dist/presets.js +9 -19
- package/dist/presets.mjs +8 -18
- package/dist/runtime-branch/create-branch.d.ts +2 -0
- package/dist/runtime-branch/generator-target-env.d.ts +4 -0
- package/dist/runtime-branch/index.d.ts +6 -0
- package/dist/runtime-branch/mini-program.d.ts +2 -0
- package/dist/runtime-branch/native-app.d.ts +2 -0
- package/dist/runtime-branch/platform.d.ts +6 -0
- package/dist/runtime-branch/tailwind-version.d.ts +2 -0
- package/dist/runtime-branch/types.d.ts +37 -0
- package/dist/runtime-branch/web.d.ts +2 -0
- package/dist/runtime-branch.d.ts +1 -0
- package/dist/{bundle-state-zQ2MrDdi.mjs → source-candidate-scan-signature-B5af2Ahe.mjs} +187 -17
- package/dist/{bundle-state-CKWeTEhv.js → source-candidate-scan-signature-BKYb9jxa.js} +261 -19
- package/dist/tailwindcss/candidates.d.ts +7 -0
- package/dist/tailwindcss/index.d.ts +2 -2
- package/dist/tailwindcss/runtime/cache.d.ts +6 -6
- package/dist/tailwindcss/runtime-factory.d.ts +12 -0
- package/dist/tailwindcss/runtime-options.d.ts +8 -0
- package/dist/tailwindcss/runtime-types.d.ts +87 -0
- package/dist/tailwindcss/runtime.d.ts +6 -6
- package/dist/tailwindcss/source-scan.d.ts +1 -1
- package/dist/tailwindcss/targets.d.ts +2 -2
- package/dist/tailwindcss/v4/config.d.ts +3 -3
- package/dist/tailwindcss/v4/css-entries.d.ts +1 -0
- package/dist/tailwindcss/v4/css-sources.d.ts +4 -2
- package/dist/tailwindcss/v4/index.d.ts +1 -1
- package/dist/tailwindcss/v4/multi-runtime.d.ts +2 -0
- package/dist/tailwindcss/v4/runtime-factory.d.ts +15 -0
- package/dist/tailwindcss/v4/runtime-options.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +3 -3
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator.d.ts +10 -3
- package/dist/tailwindcss/v4-engine/index.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +7 -1
- package/dist/tailwindcss/v4-engine/source.d.ts +15 -7
- package/dist/tailwindcss/v4-engine/types.d.ts +17 -10
- package/dist/tailwindcss/version.d.ts +1 -1
- package/dist/tailwindcss-B5mRo0-M.mjs +1423 -0
- package/dist/tailwindcss-dbrbY4cd.js +1528 -0
- package/dist/{transform-DfcEjsZF.mjs → transform-fRBeuuK-.mjs} +2 -2
- package/dist/{transform-YmrmxuF3.js → transform-vLwZpiTE.js} +17 -17
- package/dist/typedoc.export.d.ts +1 -1
- package/dist/types/index.d.ts +16 -17
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/{typedoc-tailwindcss-patch.d.ts → typedoc-tailwindcss-runtime.d.ts} +4 -10
- package/dist/types/user-defined-options/general.d.ts +5 -3
- package/dist/types/user-defined-options/important.d.ts +2 -2
- package/dist/types/user-defined-options/matcher.d.ts +7 -0
- package/dist/uni-app-x/style-asset.d.ts +1 -0
- package/dist/v4-engine-C3qSwQ-e.mjs +2376 -0
- package/dist/v4-engine-ON_oSLfO.js +2752 -0
- package/dist/{vite-DjI09vVN.mjs → vite-CWRooooa.mjs} +1417 -540
- package/dist/{vite-CXHVsHmX.js → vite-w-RkgaTY.js} +1575 -698
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +5665 -4443
- package/dist/weapp-tw-runtime-classset-loader.js +15 -4
- package/dist/webpack-8PaV1gG3.mjs +2334 -0
- package/dist/webpack-CGgBOx9l.js +2346 -0
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +6 -7
- package/dist/auto-CTp6wE5a.js +0 -33
- package/dist/auto-Cl8_hsG6.mjs +0 -22
- package/dist/bundlers/vite/incremental-runtime-class-set/v3-candidates.d.ts +0 -13
- package/dist/bundlers/vite/source-candidates/tailwind-v3-default-extractor.d.ts +0 -1
- package/dist/context/tailwindcss/rax.d.ts +0 -2
- package/dist/generator-CzpArpCL.js +0 -92
- package/dist/generator-ITLd7PTl.mjs +0 -67
- package/dist/tailwindcss/patcher-options.d.ts +0 -8
- package/dist/tailwindcss/patcher.d.ts +0 -12
- package/dist/tailwindcss/runtime-patch.d.ts +0 -5
- package/dist/tailwindcss/v3-engine/generator/cache-key.d.ts +0 -3
- package/dist/tailwindcss/v3-engine/generator/content.d.ts +0 -10
- package/dist/tailwindcss/v3-engine/generator/runtime-ready.d.ts +0 -2
- package/dist/tailwindcss/v3-engine/generator.d.ts +0 -19
- package/dist/tailwindcss/v3-engine/index.d.ts +0 -4
- package/dist/tailwindcss/v3-engine/miniprogram.d.ts +0 -4
- package/dist/tailwindcss/v3-engine/source.d.ts +0 -5
- package/dist/tailwindcss/v3-engine/types.d.ts +0 -61
- package/dist/tailwindcss/v4/multi-patcher.d.ts +0 -2
- package/dist/tailwindcss/v4/patcher-options.d.ts +0 -2
- package/dist/tailwindcss/v4/patcher.d.ts +0 -15
- package/dist/tailwindcss/v4-engine/tailwind-v3-compatibility.d.ts +0 -1
- package/dist/tailwindcss/v4-engine/tailwind-v3-default-colors.d.ts +0 -1
- package/dist/tailwindcss-DTq3uYBK.mjs +0 -556
- package/dist/tailwindcss-DZEwT3C_.js +0 -613
- package/dist/v3-engine-2rrgylhn.js +0 -4686
- package/dist/v3-engine-C6eJ0YzK.mjs +0 -4272
- package/dist/webpack-BcPpnT90.mjs +0 -1184
- package/dist/webpack-CfkUkMXG.js +0 -1196
- /package/dist/tailwindcss/{patcher-resolve.d.ts → runtime-resolve.d.ts} +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { W as createTailwindV4Engine, ct as inferGeneratorTargetFromEnv, n as resolveTailwindV4SourceFromRuntime } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
|
+
import { o as resolveUniUtsPlatform } from "./utils-DodxWHGz.mjs";
|
|
3
|
+
//#region src/runtime-branch/create-branch.ts
|
|
4
|
+
function createRuntimeBranch(base, platformFamily, options) {
|
|
5
|
+
const { context, tailwindcssVersion } = base;
|
|
6
|
+
return {
|
|
7
|
+
tailwindcssVersion,
|
|
8
|
+
generatorTarget: context.generatorTarget,
|
|
9
|
+
platformFamily,
|
|
10
|
+
platform: options.platform,
|
|
11
|
+
nativeAppPlatform: options.nativeAppPlatform,
|
|
12
|
+
isTailwindV4: tailwindcssVersion === 4,
|
|
13
|
+
isWeb: platformFamily === "web",
|
|
14
|
+
isMiniProgram: platformFamily === "mini-program",
|
|
15
|
+
isNativeApp: platformFamily === "native-app"
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/runtime-branch/mini-program.ts
|
|
20
|
+
function createMiniProgramRuntimeBranch(base) {
|
|
21
|
+
const { context, uniUtsPlatform } = base;
|
|
22
|
+
return createRuntimeBranch(base, "mini-program", { platform: typeof context.platform === "string" && context.platform.length > 0 ? context.platform : uniUtsPlatform.isMp ? uniUtsPlatform.normalized : context.platform });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/runtime-branch/platform.ts
|
|
26
|
+
function isRuntimeUniAppXEnabled(value) {
|
|
27
|
+
return value === true || typeof value === "object" && value?.enabled !== false;
|
|
28
|
+
}
|
|
29
|
+
function normalizeRuntimeUniUtsPlatform(value) {
|
|
30
|
+
return typeof value === "object" && value !== null ? value : resolveUniUtsPlatform(value);
|
|
31
|
+
}
|
|
32
|
+
function resolveNativeAppPlatform(platform) {
|
|
33
|
+
if (platform.isAppAndroid) return "android";
|
|
34
|
+
if (platform.isAppIos) return "ios";
|
|
35
|
+
if (platform.isAppHarmony) return "harmony";
|
|
36
|
+
return "unknown";
|
|
37
|
+
}
|
|
38
|
+
function resolveExplicitOrEnvPlatform(context, uniUtsPlatform) {
|
|
39
|
+
if (typeof context.platform === "string" && context.platform.length > 0) return context.platform;
|
|
40
|
+
return uniUtsPlatform.normalized;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/runtime-branch/native-app.ts
|
|
44
|
+
function createNativeAppRuntimeBranch(base) {
|
|
45
|
+
return createRuntimeBranch(base, "native-app", {
|
|
46
|
+
platform: resolveExplicitOrEnvPlatform(base.context, base.uniUtsPlatform),
|
|
47
|
+
nativeAppPlatform: resolveNativeAppPlatform(base.uniUtsPlatform)
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/runtime-branch/tailwind-version.ts
|
|
52
|
+
function resolveTailwindcssBranchVersion(_majorVersion) {
|
|
53
|
+
return 4;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/runtime-branch/web.ts
|
|
57
|
+
function createWebRuntimeBranch(base) {
|
|
58
|
+
return createRuntimeBranch(base, "web", { platform: resolveExplicitOrEnvPlatform(base.context, base.uniUtsPlatform) });
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/runtime-branch/index.ts
|
|
62
|
+
function shouldUseNativeAppBranch(base, uniUtsPlatform) {
|
|
63
|
+
return base.appType === "uni-app-x" && isRuntimeUniAppXEnabled(base.uniAppX) && uniUtsPlatform.isApp;
|
|
64
|
+
}
|
|
65
|
+
function resolveRuntimeBranch(context) {
|
|
66
|
+
const uniUtsPlatform = normalizeRuntimeUniUtsPlatform(context.uniUtsPlatform);
|
|
67
|
+
const base = {
|
|
68
|
+
context,
|
|
69
|
+
tailwindcssVersion: resolveTailwindcssBranchVersion(context.tailwindcssMajorVersion),
|
|
70
|
+
uniUtsPlatform
|
|
71
|
+
};
|
|
72
|
+
if (context.generatorTarget === "web") return createWebRuntimeBranch(base);
|
|
73
|
+
if (shouldUseNativeAppBranch(context, uniUtsPlatform)) return createNativeAppRuntimeBranch(base);
|
|
74
|
+
return createMiniProgramRuntimeBranch(base);
|
|
75
|
+
}
|
|
76
|
+
function resolveGeneratorRuntimeBranch(options, context = {}) {
|
|
77
|
+
return options.branch ?? resolveRuntimeBranch({
|
|
78
|
+
...context,
|
|
79
|
+
generatorTarget: options.target
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function shouldUseMiniProgramCssBranch(branch) {
|
|
83
|
+
return branch.platformFamily === "mini-program" || branch.platformFamily === "native-app";
|
|
84
|
+
}
|
|
85
|
+
function shouldUseNativeAppCssBranch(branch) {
|
|
86
|
+
return branch.platformFamily === "native-app";
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/generator/options.ts
|
|
90
|
+
function normalizeWeappTailwindcssGeneratorOptions(options, context = {}) {
|
|
91
|
+
const target = options?.target ?? inferGeneratorTargetFromEnv();
|
|
92
|
+
const branch = resolveRuntimeBranch({
|
|
93
|
+
...context,
|
|
94
|
+
generatorTarget: target
|
|
95
|
+
});
|
|
96
|
+
if (options == null) return {
|
|
97
|
+
target,
|
|
98
|
+
branch,
|
|
99
|
+
importFallback: false,
|
|
100
|
+
bareArbitraryValues: void 0
|
|
101
|
+
};
|
|
102
|
+
return {
|
|
103
|
+
target,
|
|
104
|
+
branch,
|
|
105
|
+
config: options.config,
|
|
106
|
+
styleOptions: options.styleOptions,
|
|
107
|
+
importFallback: options.importFallback ?? false,
|
|
108
|
+
bareArbitraryValues: options.bareArbitraryValues
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/generator/index.ts
|
|
113
|
+
function createWeappTailwindcssGenerator(source) {
|
|
114
|
+
return createTailwindV4Engine(source);
|
|
115
|
+
}
|
|
116
|
+
async function resolveTailwindSourceFromRuntime(tailwindRuntime) {
|
|
117
|
+
return resolveTailwindV4SourceFromRuntime(tailwindRuntime);
|
|
118
|
+
}
|
|
119
|
+
async function createWeappTailwindcssGeneratorFromRuntime(tailwindRuntime) {
|
|
120
|
+
return createWeappTailwindcssGenerator(await resolveTailwindSourceFromRuntime(tailwindRuntime));
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { resolveGeneratorRuntimeBranch as a, shouldUseNativeAppCssBranch as c, normalizeWeappTailwindcssGeneratorOptions as i, createWeappTailwindcssGeneratorFromRuntime as n, resolveRuntimeBranch as o, resolveTailwindSourceFromRuntime as r, shouldUseMiniProgramCssBranch as s, createWeappTailwindcssGenerator as t };
|
package/dist/generator.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
let tailwindcss_patch = require("tailwindcss-patch");
|
|
2
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
3
|
+
const require_generator = require("./generator-6oMJtTDO.js");
|
|
5
4
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
6
|
-
exports.
|
|
5
|
+
exports.createWeappTailwindcssGeneratorFromRuntime = require_generator.createWeappTailwindcssGeneratorFromRuntime;
|
|
7
6
|
exports.normalizeWeappTailwindcssGeneratorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions;
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.resolveTailwindV4SourceOptionsFromPatcher = require_v3_engine.resolveTailwindV4SourceOptionsFromPatcher;
|
|
16
|
-
exports.transformTailwindV3CssByTarget = require_v3_engine.transformTailwindV3CssByTarget;
|
|
17
|
-
exports.transformTailwindV3CssToWeapp = require_v3_engine.transformTailwindV3CssToWeapp;
|
|
18
|
-
exports.transformTailwindV4CssByTarget = require_v3_engine.transformTailwindV4CssByTarget;
|
|
19
|
-
exports.transformTailwindV4CssToWeapp = require_v3_engine.transformTailwindV4CssToWeapp;
|
|
7
|
+
exports.resolveTailwindSourceFromRuntime = require_generator.resolveTailwindSourceFromRuntime;
|
|
8
|
+
exports.resolveTailwindV4Source = require_v4_engine.resolveTailwindV4Source;
|
|
9
|
+
exports.resolveTailwindV4SourceFromRuntime = require_v4_engine.resolveTailwindV4SourceFromRuntime;
|
|
10
|
+
exports.resolveTailwindV4SourceFromRuntimeOptions = require_v4_engine.resolveTailwindV4SourceFromRuntimeOptions;
|
|
11
|
+
exports.resolveTailwindV4SourceOptionsFromRuntime = require_v4_engine.resolveTailwindV4SourceOptionsFromRuntime;
|
|
12
|
+
exports.transformTailwindV4CssByTarget = require_v4_engine.transformTailwindV4CssByTarget;
|
|
13
|
+
exports.transformTailwindV4CssToWeapp = require_v4_engine.transformTailwindV4CssToWeapp;
|
package/dist/generator.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, n as
|
|
3
|
-
export { createWeappTailwindcssGenerator,
|
|
1
|
+
import { K as transformTailwindV4CssByTarget, i as resolveTailwindV4SourceOptionsFromRuntime, n as resolveTailwindV4SourceFromRuntime, q as transformTailwindV4CssToWeapp, r as resolveTailwindV4SourceFromRuntimeOptions, t as resolveTailwindV4Source } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator } from "./generator-CjzBK7h-.mjs";
|
|
3
|
+
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromRuntime, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromRuntime, resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
5
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
2
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
3
|
+
const require_context = require("./context-B6hVF7dr.js");
|
|
4
|
+
const require_tailwindcss = require("./tailwindcss-dbrbY4cd.js");
|
|
5
|
+
const require_hmr_timing = require("./hmr-timing-CegXR9O4.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
node_fs = require_chunk.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -129,7 +129,7 @@ function createVinylTransform(phase, handler, getTimingDetails) {
|
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/bundlers/gulp/index.ts
|
|
132
|
-
const debug =
|
|
132
|
+
const debug = require_context.createDebug();
|
|
133
133
|
const GULP_RUNTIME_SOURCE_CACHE_MAX = 256;
|
|
134
134
|
const GULP_PROCESS_CACHE_MAX = 512;
|
|
135
135
|
function toMb(bytes) {
|
|
@@ -187,10 +187,7 @@ function resolveGulpMemoryDebugStats(context) {
|
|
|
187
187
|
maxCacheKeys: GULP_PROCESS_CACHE_MAX
|
|
188
188
|
},
|
|
189
189
|
gulpOptions: { defaultStyleHandlerOptions: context.defaultStyleHandlerOptionsCache.size },
|
|
190
|
-
tailwind: {
|
|
191
|
-
v3: require_v3_engine.getTailwindV3IncrementalGenerateCacheStats(),
|
|
192
|
-
v4: require_v3_engine.getTailwindV4IncrementalGenerateCacheStats()
|
|
193
|
-
}
|
|
190
|
+
tailwind: { v4: require_v4_engine.getTailwindV4IncrementalGenerateCacheStats() }
|
|
194
191
|
};
|
|
195
192
|
}
|
|
196
193
|
/**
|
|
@@ -199,18 +196,20 @@ function resolveGulpMemoryDebugStats(context) {
|
|
|
199
196
|
* @link https://tw.icebreaker.top/docs/quick-start/frameworks/native
|
|
200
197
|
*/
|
|
201
198
|
function createPlugins(options = {}) {
|
|
202
|
-
const hasInitialTailwindCssRoots =
|
|
203
|
-
const opts =
|
|
199
|
+
const hasInitialTailwindCssRoots = require_v4_engine.hasConfiguredTailwindV4CssRoots(options);
|
|
200
|
+
const opts = require_context.getCompilerContext({
|
|
204
201
|
...options,
|
|
205
202
|
__internalDeferMissingCssEntriesWarning: true
|
|
206
203
|
});
|
|
207
|
-
const { templateHandler, styleHandler, jsHandler, cache
|
|
208
|
-
const
|
|
204
|
+
const { templateHandler, styleHandler, jsHandler, cache } = opts;
|
|
205
|
+
const initialTailwindRuntime = opts.tailwindRuntime;
|
|
206
|
+
const refreshTailwindcssRuntime = opts.refreshTailwindcssRuntime;
|
|
207
|
+
const readyPromise = require_context.createTailwindRuntimeReadyPromise(initialTailwindRuntime);
|
|
209
208
|
let runtimeSet = /* @__PURE__ */ new Set();
|
|
210
209
|
const runtimeState = {
|
|
211
|
-
|
|
210
|
+
tailwindRuntime: initialTailwindRuntime,
|
|
212
211
|
readyPromise,
|
|
213
|
-
|
|
212
|
+
refreshTailwindcssRuntime
|
|
214
213
|
};
|
|
215
214
|
const defaultStyleHandlerOptionsCache = /* @__PURE__ */ new Map();
|
|
216
215
|
let cachedDefaultTemplateHandlerOptions;
|
|
@@ -222,13 +221,10 @@ function createPlugins(options = {}) {
|
|
|
222
221
|
let runtimeSetDirty = false;
|
|
223
222
|
const runtimeSourceHashByFile = /* @__PURE__ */ new Map();
|
|
224
223
|
const runtimeSourcesByFile = /* @__PURE__ */ new Map();
|
|
225
|
-
let cachedGulpSourceCandidates;
|
|
226
224
|
let cachedGulpSourceCandidateSignature;
|
|
227
225
|
const gulpProcessCacheKeys = /* @__PURE__ */ new Set();
|
|
228
|
-
const sourceCandidateExtractor = initialTwPatcher.majorVersion === 3 ? require_hmr_timing.createTailwindV3DefaultExtractor() : void 0;
|
|
229
226
|
const bundleRuntimeClassSetManager = options.__internalGulpRuntimeClassSetManager ?? require_hmr_timing.createBundleRuntimeClassSetManager();
|
|
230
227
|
function invalidateGulpSourceCandidates() {
|
|
231
|
-
cachedGulpSourceCandidates = void 0;
|
|
232
228
|
cachedGulpSourceCandidateSignature = void 0;
|
|
233
229
|
cachedGulpSourceCandidateGetter = void 0;
|
|
234
230
|
cachedGulpSourceCandidateSourceGetter = void 0;
|
|
@@ -243,7 +239,7 @@ function createPlugins(options = {}) {
|
|
|
243
239
|
const shouldForceCollect = normalizedOptions.forceCollect === true || runtimeSetDirty;
|
|
244
240
|
const clearCache = normalizedOptions.clearCache === true || runtimeSetDirty;
|
|
245
241
|
if (!forceRefresh && !shouldForceCollect && runtimeSetInitialized) return runtimeSet;
|
|
246
|
-
runtimeSet = await
|
|
242
|
+
runtimeSet = await require_context.ensureRuntimeClassSet(runtimeState, {
|
|
247
243
|
forceRefresh,
|
|
248
244
|
forceCollect: shouldForceCollect,
|
|
249
245
|
clearCache,
|
|
@@ -266,8 +262,8 @@ function createPlugins(options = {}) {
|
|
|
266
262
|
pruneGulpRuntimeSourceCaches(runtimeSourceHashByFile, runtimeSourcesByFile);
|
|
267
263
|
if (changed) invalidateGulpSourceCandidates();
|
|
268
264
|
if (!changed && runtimeSetInitialized) return runtimeSet;
|
|
269
|
-
if (
|
|
270
|
-
runtimeSet = await bundleRuntimeClassSetManager.sync(runtimeState.
|
|
265
|
+
if (!runtimeSetDirty) try {
|
|
266
|
+
runtimeSet = await bundleRuntimeClassSetManager.sync(runtimeState.tailwindRuntime, createGulpRuntimeSnapshot(runtimeSourcesByFile, [filename]));
|
|
271
267
|
runtimeSetInitialized = true;
|
|
272
268
|
return runtimeSet;
|
|
273
269
|
} catch (error) {
|
|
@@ -276,44 +272,9 @@ function createPlugins(options = {}) {
|
|
|
276
272
|
}
|
|
277
273
|
return refreshRuntimeSet({ forceCollect: true });
|
|
278
274
|
}
|
|
279
|
-
async function refreshGulpSourceCandidates(forceRefresh = false) {
|
|
280
|
-
if (runtimeState.twPatcher.majorVersion !== 3) return /* @__PURE__ */ new Set();
|
|
281
|
-
const root = opts.tailwindcssBasedir ?? node_process.default.cwd();
|
|
282
|
-
const sourceScan = await require_v3_engine.resolveViteSourceScanEntries(opts, runtimeState.twPatcher, { root });
|
|
283
|
-
const nextSignature = cache.computeHash(JSON.stringify({
|
|
284
|
-
root,
|
|
285
|
-
entries: sourceScan?.entries,
|
|
286
|
-
inlineCandidates: sourceScan?.inlineCandidates ? {
|
|
287
|
-
included: [...sourceScan.inlineCandidates.included].sort(),
|
|
288
|
-
excluded: [...sourceScan.inlineCandidates.excluded].sort()
|
|
289
|
-
} : void 0,
|
|
290
|
-
explicit: sourceScan?.explicit ?? false,
|
|
291
|
-
dependencies: [...sourceScan?.dependencies ?? []].sort()
|
|
292
|
-
}));
|
|
293
|
-
if (!forceRefresh && cachedGulpSourceCandidateSignature === nextSignature && cachedGulpSourceCandidates) return cachedGulpSourceCandidates;
|
|
294
|
-
const collector = require_hmr_timing.createSourceCandidateCollector({
|
|
295
|
-
bareArbitraryValues: opts.arbitraryValues?.bareArbitraryValues,
|
|
296
|
-
extractor: sourceCandidateExtractor
|
|
297
|
-
});
|
|
298
|
-
await collector.scanRoot({
|
|
299
|
-
entries: sourceScan?.entries,
|
|
300
|
-
root
|
|
301
|
-
});
|
|
302
|
-
collector.syncInline(sourceScan?.inlineCandidates);
|
|
303
|
-
cachedGulpSourceCandidateSignature = nextSignature;
|
|
304
|
-
cachedGulpSourceCandidateGetter = (entries) => collector.valuesForEntries(entries);
|
|
305
|
-
cachedGulpSourceCandidateSourceGetter = (entries) => collector.sourcesForEntries(entries);
|
|
306
|
-
cachedGulpSourceCandidates = sourceScan?.entries ? collector.valuesForEntries(sourceScan.entries) : collector.values();
|
|
307
|
-
return cachedGulpSourceCandidates;
|
|
308
|
-
}
|
|
309
275
|
async function refreshGulpV4SourceCandidates(forceRefresh = false) {
|
|
310
|
-
if (runtimeState.twPatcher.majorVersion !== 4) {
|
|
311
|
-
cachedGulpSourceCandidateGetter = void 0;
|
|
312
|
-
cachedGulpSourceCandidateSourceGetter = void 0;
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
276
|
const root = opts.tailwindcssBasedir ?? node_process.default.cwd();
|
|
316
|
-
const sourceScan = await
|
|
277
|
+
const sourceScan = await require_tailwindcss.resolveViteSourceScanEntries(opts, runtimeState.tailwindRuntime, { root });
|
|
317
278
|
const nextSignature = cache.computeHash(JSON.stringify({
|
|
318
279
|
root,
|
|
319
280
|
entries: sourceScan?.entries,
|
|
@@ -337,23 +298,26 @@ function createPlugins(options = {}) {
|
|
|
337
298
|
cachedGulpSourceCandidateSourceGetter = (entries) => collector.sourcesForEntries(entries);
|
|
338
299
|
return cachedGulpSourceCandidateGetter;
|
|
339
300
|
}
|
|
340
|
-
function createRuntimeSetHash(rawSource, nextRuntimeSet, sourceTraceSignature, sourceCandidateSignature) {
|
|
301
|
+
function createRuntimeSetHash(rawSource, nextRuntimeSet, sourceTraceSignature, sourceCandidateSignature, outputSignature) {
|
|
341
302
|
return cache.computeHash([
|
|
342
303
|
rawSource,
|
|
343
|
-
|
|
304
|
+
require_tailwindcss.getRuntimeClassSetSignature(runtimeState.tailwindRuntime),
|
|
344
305
|
[...nextRuntimeSet].sort().join("\n"),
|
|
345
306
|
sourceTraceSignature ?? "css-source-trace:0",
|
|
346
|
-
sourceCandidateSignature ?? "gulp-source-candidates:0"
|
|
307
|
+
sourceCandidateSignature ?? "gulp-source-candidates:0",
|
|
308
|
+
outputSignature ?? "gulp-output:0"
|
|
347
309
|
].join("\n\n"));
|
|
348
310
|
}
|
|
349
311
|
async function registerAutoCssSource(file, rawSource) {
|
|
350
|
-
if (hasInitialTailwindCssRoots || (runtimeState.
|
|
312
|
+
if (hasInitialTailwindCssRoots || (runtimeState.tailwindRuntime.majorVersion ?? 0) < 4 || !file.path || !require_v4_engine.hasTailwindRootDirectives(rawSource)) return false;
|
|
351
313
|
const sourceFile = node_path.default.resolve(file.path);
|
|
352
|
-
const sourceCss =
|
|
353
|
-
|
|
314
|
+
const sourceCss = require_v4_engine.normalizeTailwindSourceForGenerator(require_v4_engine.normalizeTailwindConfigDirectives(rawSource, node_path.default.dirname(sourceFile)), { importFallback: true });
|
|
315
|
+
const config = runtimeState.tailwindRuntime.options?.tailwindcss?.config;
|
|
316
|
+
const generatorSourceCss = require_v4_engine.prependConfigDirective(require_hmr_timing.splitLocalCssImports(sourceCss)?.source ?? sourceCss, config);
|
|
317
|
+
if (!require_v4_engine.upsertTailwindV4CssSource(opts, {
|
|
354
318
|
file: sourceFile,
|
|
355
319
|
base: node_path.default.dirname(sourceFile),
|
|
356
|
-
css:
|
|
320
|
+
css: generatorSourceCss
|
|
357
321
|
})) return false;
|
|
358
322
|
runtimeSetInitialized = false;
|
|
359
323
|
runtimeSetDirty = true;
|
|
@@ -367,20 +331,24 @@ function createPlugins(options = {}) {
|
|
|
367
331
|
return cachedDefaultModuleGraphOptions;
|
|
368
332
|
}
|
|
369
333
|
function resolveWxssHandlerOptions(options) {
|
|
370
|
-
const
|
|
334
|
+
const styleHandlerMajorVersion = require_context.normalizeStyleHandlerMajorVersion(runtimeState.tailwindRuntime.majorVersion);
|
|
335
|
+
const majorVersion = styleHandlerMajorVersion ?? "unknown";
|
|
371
336
|
if (!options || Object.keys(options).length === 0) {
|
|
372
337
|
let cached = defaultStyleHandlerOptionsCache.get(majorVersion);
|
|
373
338
|
if (!cached) {
|
|
374
|
-
cached =
|
|
339
|
+
cached = styleHandlerMajorVersion === void 0 ? {} : { majorVersion: styleHandlerMajorVersion };
|
|
375
340
|
defaultStyleHandlerOptionsCache.set(majorVersion, cached);
|
|
376
341
|
}
|
|
377
342
|
return cached;
|
|
378
343
|
}
|
|
379
|
-
return
|
|
380
|
-
majorVersion:
|
|
344
|
+
return styleHandlerMajorVersion === void 0 ? { ...options } : {
|
|
345
|
+
majorVersion: styleHandlerMajorVersion,
|
|
381
346
|
...options
|
|
382
347
|
};
|
|
383
348
|
}
|
|
349
|
+
function resolveGulpStyleOutputExtension(file) {
|
|
350
|
+
return typeof opts.cssMatcher === "function" && opts.cssMatcher(node_path.default.basename(file.path)) ? node_path.default.extname(file.path) : void 0;
|
|
351
|
+
}
|
|
384
352
|
function resolveGulpMatcherName(file) {
|
|
385
353
|
return (file.relative || node_path.default.basename(file.path)).replaceAll(node_path.default.sep, "/");
|
|
386
354
|
}
|
|
@@ -450,30 +418,23 @@ function createPlugins(options = {}) {
|
|
|
450
418
|
if (!file.contents) return;
|
|
451
419
|
const rawSource = file.contents.toString();
|
|
452
420
|
const cssSourceChanged = await registerAutoCssSource(file, rawSource);
|
|
453
|
-
const
|
|
454
|
-
const shouldUseGenerator = runtimeState.twPatcher.majorVersion !== 3 || require_v3_engine.hasTailwindRootDirectives(rawSource);
|
|
421
|
+
const shouldUseGenerator = runtimeState.tailwindRuntime.majorVersion === 4;
|
|
455
422
|
let gulpSourceCandidateGetter;
|
|
456
|
-
if (shouldUseGenerator
|
|
457
|
-
|
|
423
|
+
if (shouldUseGenerator) gulpSourceCandidateGetter = await refreshGulpV4SourceCandidates(cssSourceChanged);
|
|
424
|
+
const nextRuntimeSet = await refreshRuntimeSet({
|
|
458
425
|
forceRefresh: cssSourceChanged,
|
|
459
|
-
forceCollect: cssSourceChanged
|
|
426
|
+
forceCollect: cssSourceChanged,
|
|
460
427
|
clearCache: cssSourceChanged
|
|
461
428
|
});
|
|
462
|
-
if (runtimeState.twPatcher.majorVersion === 3 && shouldUseGenerator) {
|
|
463
|
-
const sourceCandidates = await refreshGulpSourceCandidates(cssSourceChanged || isMainChunk);
|
|
464
|
-
gulpSourceCandidateGetter = cachedGulpSourceCandidateGetter;
|
|
465
|
-
if (sourceCandidates.size > 0) {
|
|
466
|
-
nextRuntimeSet = new Set([...nextRuntimeSet, ...sourceCandidates]);
|
|
467
|
-
runtimeSet = nextRuntimeSet;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
429
|
const sourceTraceTokenSources = cachedGulpSourceCandidateSourceGetter ? require_hmr_timing.createCssTokenSourceMap(cachedGulpSourceCandidateSourceGetter(void 0), opts) : void 0;
|
|
471
430
|
const sourceTraceSignature = require_hmr_timing.createCssSourceTraceCacheSignature(sourceTraceTokenSources, opts);
|
|
472
431
|
const sourceCandidateSignature = cachedGulpSourceCandidateGetter ? `gulp-source-candidates:1:${[...cachedGulpSourceCandidateGetter(void 0)].sort().join("\n")}` : void 0;
|
|
432
|
+
const styleOutputExtension = resolveGulpStyleOutputExtension(file);
|
|
433
|
+
const outputSignature = styleOutputExtension ? `gulp-output:1:${styleOutputExtension}` : "gulp-output:0";
|
|
473
434
|
await require_hmr_timing.processCachedTask({
|
|
474
435
|
cache,
|
|
475
436
|
cacheKey: file.path,
|
|
476
|
-
hash: createRuntimeSetHash(rawSource, nextRuntimeSet, sourceTraceSignature, sourceCandidateSignature),
|
|
437
|
+
hash: createRuntimeSetHash(rawSource, nextRuntimeSet, sourceTraceSignature, sourceCandidateSignature, outputSignature),
|
|
477
438
|
applyResult(source) {
|
|
478
439
|
file.contents = node_buffer.Buffer.from(source);
|
|
479
440
|
},
|
|
@@ -483,7 +444,7 @@ function createPlugins(options = {}) {
|
|
|
483
444
|
async transform() {
|
|
484
445
|
await runtimeState.readyPromise;
|
|
485
446
|
const cssHandlerOptions = resolveWxssFileHandlerOptions(file, rawSource, options);
|
|
486
|
-
const
|
|
447
|
+
const outputCss = require_hmr_timing.rewriteLocalCssImportRequestsForOutput(require_hmr_timing.annotateCssSourceTrace((shouldUseGenerator ? await require_hmr_timing.generateCssByGenerator({
|
|
487
448
|
opts,
|
|
488
449
|
runtimeState,
|
|
489
450
|
runtime: nextRuntimeSet,
|
|
@@ -497,9 +458,9 @@ function createPlugins(options = {}) {
|
|
|
497
458
|
}) : void 0)?.css ?? (await styleHandler(rawSource, cssHandlerOptions)).css, {
|
|
498
459
|
opts,
|
|
499
460
|
tokenSources: sourceTraceTokenSources
|
|
500
|
-
});
|
|
461
|
+
}), { styleOutputExtension });
|
|
501
462
|
debug("css handle: %s", file.path);
|
|
502
|
-
return { result:
|
|
463
|
+
return { result: outputCss };
|
|
503
464
|
}
|
|
504
465
|
});
|
|
505
466
|
rememberGulpProcessCacheKey(gulpProcessCacheKeys, file.path);
|
|
@@ -514,6 +475,7 @@ function createPlugins(options = {}) {
|
|
|
514
475
|
const moduleGraph = resolveModuleGraphOptions(options.moduleGraph);
|
|
515
476
|
const handlerOptions = {
|
|
516
477
|
...options,
|
|
478
|
+
generateMap: false,
|
|
517
479
|
filename,
|
|
518
480
|
moduleGraph,
|
|
519
481
|
babelParserOptions: {
|
|
@@ -521,7 +483,7 @@ function createPlugins(options = {}) {
|
|
|
521
483
|
sourceFilename: filename
|
|
522
484
|
}
|
|
523
485
|
};
|
|
524
|
-
if (runtimeState.
|
|
486
|
+
if (runtimeState.tailwindRuntime.majorVersion !== void 0) handlerOptions.tailwindcssMajorVersion = runtimeState.tailwindRuntime.majorVersion;
|
|
525
487
|
await require_hmr_timing.processCachedTask({
|
|
526
488
|
cache,
|
|
527
489
|
cacheKey: file.path,
|
|
@@ -535,7 +497,7 @@ function createPlugins(options = {}) {
|
|
|
535
497
|
async transform() {
|
|
536
498
|
await runtimeState.readyPromise;
|
|
537
499
|
const currentSource = file.contents?.toString() ?? rawSource;
|
|
538
|
-
if (
|
|
500
|
+
if (require_context.shouldSkipJsTransform(currentSource, {
|
|
539
501
|
...handlerOptions,
|
|
540
502
|
classNameSet: runtimeSet
|
|
541
503
|
})) return { result: currentSource };
|