weapp-tailwindcss 5.4.2 → 5.5.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.md +13 -1
- package/README.zh-CN.md +13 -1
- package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/v4-generation-core.d.ts +1 -0
- package/dist/bundlers/vite/capability-profile.d.ts +1 -0
- package/dist/bundlers/vite/css-finalizer/web-plugin.d.ts +3 -0
- package/dist/bundlers/vite/css-handler-options.d.ts +32 -0
- package/dist/bundlers/vite/{generate-bundle/css-output.d.ts → css-output.d.ts} +1 -1
- package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +2 -32
- package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle.d.ts +1 -1
- package/dist/bundlers/vite/runtime-class-set.d.ts +1 -5
- package/dist/bundlers/vite/shared/create-css-only-plugins-runtime.d.ts +3 -0
- package/dist/cache-CBJFB1HN.cjs +223 -0
- package/dist/compiler/events.d.ts +32 -0
- package/dist/compiler/host.d.ts +13 -0
- package/dist/compiler/index.d.ts +3 -0
- package/dist/compiler/runtime-state.d.ts +17 -0
- package/dist/compiler-B0YSc0DY.js +4877 -0
- package/dist/{wxml-o-CUulAM.cjs → compiler-D2ZJc3uA.cjs} +3649 -283
- package/dist/core.cjs +6 -3
- package/dist/core.d.ts +2 -0
- package/dist/core.js +4 -4
- package/dist/defaults-B5ep0ojb.js +120 -0
- package/dist/defaults-BI9j1znS.cjs +156 -0
- package/dist/defaults.cjs +5 -121
- package/dist/defaults.js +1 -116
- package/dist/final-css-cleanup-B0HUBtiE.js +308 -0
- package/dist/final-css-cleanup-DSjczga3.cjs +138 -0
- package/dist/{generator-WlhrtNa3.cjs → generator-DsrQ9txU.cjs} +62 -5
- package/dist/{generator-BjK5PRR-.js → generator-DyXTBPmE.js} +47 -2
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-ChecVI6A.cjs → gulp-C9ENAx3f.cjs} +30 -28
- package/dist/{gulp-D6LcfRz_.js → gulp-DXeQfvVC.js} +7 -7
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-afnWvy7u.cjs → hmr-timing-Cz4IesEM.cjs} +6 -229
- package/dist/{hmr-timing-CqDfjvqE.js → hmr-timing-DNxQm-bN.js} +6 -1258
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{pipeline-helpers-DxPFMGxz.cjs → pipeline-helpers-CSGnR5gh.cjs} +6 -5
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +4 -4
- package/dist/presets.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/runtime-state-BBQcA0n5.cjs +54 -0
- package/dist/{source-candidate-scan-signature-FywFU3Rg.cjs → scoped-generator-TVjEaOeP.cjs} +5 -123
- package/dist/{source-candidate-scan-signature-BVScymyM.js → scoped-generator-kRj_5Axx.js} +4 -92
- package/dist/source-candidate-scan-signature-B7cUxqqX.cjs +129 -0
- package/dist/source-candidate-scan-signature-CsP4BQNa.js +92 -0
- package/dist/style-injector/internal.d.ts +1 -1
- package/dist/style-injector/vite-web.d.ts +3 -0
- package/dist/{tailwindcss-9xmoCkaR.js → tailwindcss-BK9S7zuq.js} +1 -2
- package/dist/{tailwindcss-D3jltF7M.cjs → tailwindcss-C-jBBQfw.cjs} +8 -9
- package/dist/{transform-DQhgAarN.js → transform-CfOzh007.js} +3 -3
- package/dist/{transform-C6k9zTQR.cjs → transform-DUPOPZ54.cjs} +27 -27
- package/dist/uni-app-x/vite/style-source.d.ts +11 -0
- package/dist/{v4-generation-core-CPKNwzjz.cjs → v4-generation-core-CRNUU_Rr.cjs} +29 -1172
- package/dist/vite/web.cjs +27 -0
- package/dist/vite/web.d.ts +1 -0
- package/dist/vite/web.js +25 -0
- package/dist/{vite-D3aCtpmv.js → vite-BXe-axax.js} +263 -3587
- package/dist/{vite-D-gmOkPN.cjs → vite-D_mAIfTU.cjs} +514 -3798
- package/dist/vite-web.d.ts +4 -0
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +5 -5
- package/dist/web-B2Ea9K4B.cjs +4361 -0
- package/dist/web-Cv7ualrU.js +3796 -0
- package/dist/{webpack-B-6a8Z8F.js → webpack-7Um2GFtx.js} +13 -12
- package/dist/{webpack-yAne9ZYu.cjs → webpack-Ce04-btG.cjs} +51 -49
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +13 -4
- package/dist/cache-options-DavPxrhC.cjs +0 -16
- package/dist/cache-options-DwBtLwQe.js +0 -5
- package/dist/compiler-B-m9VGqj.cjs +0 -2316
- package/dist/compiler-BgMj2E5l.js +0 -2051
- package/dist/local-style-matcher-DRpFEu1s.cjs +0 -34
- package/dist/local-style-matcher-DsiI2wIc.js +0 -17
- package/dist/object-B-8IHefx.js +0 -47
- package/dist/object-DbHtAXRk.cjs +0 -58
- package/dist/wxml-CvKyV69S.js +0 -1822
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
const require_gulp = require("./gulp-
|
|
3
|
+
const require_generator = require("./generator-DsrQ9txU.cjs");
|
|
4
|
+
const require_gulp = require("./gulp-C9ENAx3f.cjs");
|
|
5
5
|
const require_postcss = require("./postcss.cjs");
|
|
6
|
-
const require_vite = require("./vite-
|
|
7
|
-
const require_webpack = require("./webpack-
|
|
6
|
+
const require_vite = require("./vite-D_mAIfTU.cjs");
|
|
7
|
+
const require_webpack = require("./webpack-Ce04-btG.cjs");
|
|
8
8
|
require("./webpack.cjs");
|
|
9
9
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
10
10
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform } from "./framework.js";
|
|
2
|
-
import { t as createWeappTailwindcssGenerator } from "./generator-
|
|
3
|
-
import { t as createPlugins } from "./gulp-
|
|
2
|
+
import { t as createWeappTailwindcssGenerator } from "./generator-DyXTBPmE.js";
|
|
3
|
+
import { t as createPlugins } from "./gulp-DXeQfvVC.js";
|
|
4
4
|
import weappTailwindcssPostcssPlugin from "./postcss.js";
|
|
5
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
6
|
-
import { n as weappTailwindcssPackageDir } from "./webpack-
|
|
5
|
+
import { t as WeappTailwindcss } from "./vite-BXe-axax.js";
|
|
6
|
+
import { n as weappTailwindcssPackageDir } from "./webpack-7Um2GFtx.js";
|
|
7
7
|
import "./webpack.js";
|
|
8
8
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
9
9
|
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_compiler = require("./compiler-
|
|
5
|
-
const require_defaults = require("./defaults.cjs");
|
|
2
|
+
const require_generator = require("./generator-DsrQ9txU.cjs");
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-CRNUU_Rr.cjs");
|
|
4
|
+
const require_compiler = require("./compiler-D2ZJc3uA.cjs");
|
|
5
|
+
const require_defaults = require("./defaults-BI9j1znS.cjs");
|
|
6
|
+
const require_final_css_cleanup = require("./final-css-cleanup-DSjczga3.cjs");
|
|
6
7
|
let node_path = require("node:path");
|
|
7
8
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
8
9
|
let node_process = require("node:process");
|
|
@@ -532,7 +533,7 @@ function finalizeWebpackCssAssetOutputSource(source, compilerOptions, isWebGener
|
|
|
532
533
|
active: styleOptions.cssRemoveActivePseudoClass ?? true,
|
|
533
534
|
hover: styleOptions.cssRemoveHoverPseudoClass ?? true
|
|
534
535
|
}));
|
|
535
|
-
return
|
|
536
|
+
return require_final_css_cleanup.finalizeMiniProgramCssStructure(finalized);
|
|
536
537
|
}
|
|
537
538
|
function collectWebpackJsRuntimeCandidatesFromAssets(options) {
|
|
538
539
|
if (options.isWebGeneratorTarget) return;
|
package/dist/postcss.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_generator = require("./generator-
|
|
5
|
+
const require_generator = require("./generator-DsrQ9txU.cjs");
|
|
6
6
|
const weappTailwindcssPostcssPlugin = (0, require("@weapp-tailwindcss/postcss").createWeappTailwindcssPostcssPlugin)({
|
|
7
7
|
createGenerator: (source) => {
|
|
8
8
|
return require_generator.createWeappTailwindcssGenerator(source);
|
package/dist/postcss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-
|
|
1
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-DyXTBPmE.js";
|
|
2
2
|
import { createWeappTailwindcssPostcssPlugin } from "@weapp-tailwindcss/postcss";
|
|
3
3
|
const weappTailwindcssPostcssPlugin = createWeappTailwindcssPostcssPlugin({
|
|
4
4
|
createGenerator: (source) => {
|
package/dist/presets.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
3
|
const require_framework = require("./framework.cjs");
|
|
4
|
-
const
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
4
|
+
const require_generator = require("./generator-DsrQ9txU.cjs");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-C-jBBQfw.cjs");
|
|
6
6
|
require("./utils-CuKLf1Zv.cjs");
|
|
7
7
|
require("./logger-TlKT3xmR.cjs");
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -37,7 +37,7 @@ function createBasePreset(options = {}) {
|
|
|
37
37
|
const { base, cssEntries, resolve, rawOptions, ...userOptions } = options;
|
|
38
38
|
const baseDir = require_tailwindcss.resolveTailwindcssBasedir(base);
|
|
39
39
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
40
|
-
const tailwindConfig = { v4:
|
|
40
|
+
const tailwindConfig = { v4: require_generator.omitUndefined({
|
|
41
41
|
base: baseDir,
|
|
42
42
|
cssEntries: normalizedCssEntries
|
|
43
43
|
}) };
|
|
@@ -131,7 +131,7 @@ function uniAppX(options) {
|
|
|
131
131
|
...installedTailwindDefaults ?? {},
|
|
132
132
|
cwd: options.base,
|
|
133
133
|
resolve: resolvedResolve,
|
|
134
|
-
v4:
|
|
134
|
+
v4: require_generator.omitUndefined({
|
|
135
135
|
base: options.base,
|
|
136
136
|
cssEntries
|
|
137
137
|
})
|
package/dist/presets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveTaroPlatform, resolveUniPlatformsFromEnv } from "./framework.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-
|
|
2
|
+
import { T as omitUndefined } from "./generator-DyXTBPmE.js";
|
|
3
|
+
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-BK9S7zuq.js";
|
|
4
4
|
import { n as defuOverrideArray } from "./utils-MVwpU07P.js";
|
|
5
5
|
import { t as logger } from "./logger-BNzxZbZj.js";
|
|
6
6
|
import path from "node:path";
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_webpack = require("./webpack-
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-CRNUU_Rr.cjs");
|
|
4
|
+
const require_webpack = require("./webpack-Ce04-btG.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
7
7
|
//#region src/bundlers/rspack/rule-match.ts
|
package/dist/rspack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
2
|
-
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-
|
|
1
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-DNxQm-bN.js";
|
|
2
|
+
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-7Um2GFtx.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region src/bundlers/rspack/rule-match.ts
|
|
5
5
|
const STYLE_RULE_PROBES = [
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region src/compiler/events.ts
|
|
2
|
+
/** 创建跨 bundler 共用的生命周期事件总线。 */
|
|
3
|
+
function createCompilationEventBus() {
|
|
4
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
5
|
+
let revision = 0;
|
|
6
|
+
return {
|
|
7
|
+
get revision() {
|
|
8
|
+
return revision;
|
|
9
|
+
},
|
|
10
|
+
async emit(event) {
|
|
11
|
+
revision += 1;
|
|
12
|
+
for (const listener of [...listeners]) await listener(event);
|
|
13
|
+
return revision;
|
|
14
|
+
},
|
|
15
|
+
subscribe(listener) {
|
|
16
|
+
listeners.add(listener);
|
|
17
|
+
return () => listeners.delete(listener);
|
|
18
|
+
},
|
|
19
|
+
clear() {
|
|
20
|
+
listeners.clear();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/compiler/runtime-state.ts
|
|
26
|
+
/** 创建构建器无关的 runtime state,并保留旧字段供现有插件继续使用。 */
|
|
27
|
+
function createCompilerRuntimeState(options) {
|
|
28
|
+
const events = options.events ?? createCompilationEventBus();
|
|
29
|
+
return {
|
|
30
|
+
tailwindRuntime: options.tailwindRuntime,
|
|
31
|
+
readyPromise: options.readyPromise ?? Promise.resolve(),
|
|
32
|
+
refreshTailwindcssRuntime: options.refreshTailwindcssRuntime,
|
|
33
|
+
events,
|
|
34
|
+
get revision() {
|
|
35
|
+
return events.revision;
|
|
36
|
+
},
|
|
37
|
+
dispose() {
|
|
38
|
+
events.clear();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
Object.defineProperty(exports, "createCompilationEventBus", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function() {
|
|
46
|
+
return createCompilationEventBus;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "createCompilerRuntimeState", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function() {
|
|
52
|
+
return createCompilerRuntimeState;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
|
-
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
4
3
|
require("./auto-DtU6f3X6.cjs");
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
6
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
+
const require_tailwindcss = require("./tailwindcss-C-jBBQfw.cjs");
|
|
5
|
+
const require_v4_generation_core = require("./v4-generation-core-CRNUU_Rr.cjs");
|
|
6
|
+
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-B7cUxqqX.cjs");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
9
|
-
let node_module = require("node:module");
|
|
10
9
|
let weapp_style_injector_vite = require("weapp-style-injector/vite");
|
|
11
10
|
let weapp_style_injector_vite_taro = require("weapp-style-injector/vite/taro");
|
|
12
11
|
let weapp_style_injector_vite_uni_app = require("weapp-style-injector/vite/uni-app");
|
|
@@ -78,19 +77,12 @@ function resolveWebpackFrameworkProfile(options) {
|
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
//#endregion
|
|
81
|
-
//#region src/style-injector/options.ts
|
|
82
|
-
function normalizeStyleInjectorOptions(options) {
|
|
83
|
-
if (options === true) return {};
|
|
84
|
-
if (!options) return;
|
|
85
|
-
return options;
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
80
|
//#region src/style-injector/internal.ts
|
|
89
81
|
function toPluginArray(pluginOrPlugins) {
|
|
90
82
|
return Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins];
|
|
91
83
|
}
|
|
92
84
|
function normalizeWebpackStyleInjectorOptions(options) {
|
|
93
|
-
const normalized = normalizeStyleInjectorOptions(options);
|
|
85
|
+
const normalized = require_source_candidate_scan_signature.normalizeStyleInjectorOptions(options);
|
|
94
86
|
if (!normalized) return;
|
|
95
87
|
const { generateSubpackageStyle, loadSubpackageTargetStyle, ...rest } = normalized;
|
|
96
88
|
const webpackOptions = { ...rest };
|
|
@@ -126,7 +118,7 @@ const webpackStyleInjectorDelegates = {
|
|
|
126
118
|
uniApp: ((options) => (0, weapp_style_injector_webpack_uni_app.StyleInjector)(options))
|
|
127
119
|
};
|
|
128
120
|
function createBuiltinViteStyleInjectorPlugins(options, getDelegateFactory) {
|
|
129
|
-
const normalized = normalizeStyleInjectorOptions(options);
|
|
121
|
+
const normalized = require_source_candidate_scan_signature.normalizeStyleInjectorOptions(options);
|
|
130
122
|
if (!normalized) return [];
|
|
131
123
|
let config;
|
|
132
124
|
let delegates;
|
|
@@ -211,50 +203,6 @@ function createBuiltinWebpackStyleInjectorPlugin(options, delegateFactory) {
|
|
|
211
203
|
return delegateFactory(normalized);
|
|
212
204
|
}
|
|
213
205
|
//#endregion
|
|
214
|
-
//#region src/bundlers/shared/module-graph.ts
|
|
215
|
-
const QUERY_HASH_RE = /[?#].*$/u;
|
|
216
|
-
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
217
|
-
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
218
|
-
const VIRTUAL_PREFIX = "\0";
|
|
219
|
-
const JS_EXTENSIONS = [
|
|
220
|
-
".js",
|
|
221
|
-
".mjs",
|
|
222
|
-
".cjs"
|
|
223
|
-
];
|
|
224
|
-
function normalizeOutputPathKey(value) {
|
|
225
|
-
return node_path.default.normalize(value).replace(/\\/g, "/");
|
|
226
|
-
}
|
|
227
|
-
function stripQueryAndHash(specifier) {
|
|
228
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
229
|
-
}
|
|
230
|
-
function isResolvableSpecifier(specifier) {
|
|
231
|
-
if (!specifier) return false;
|
|
232
|
-
const normalized = stripQueryAndHash(specifier);
|
|
233
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
234
|
-
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
235
|
-
return !PROTOCOL_RE.test(normalized);
|
|
236
|
-
}
|
|
237
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
238
|
-
if (node_path.default.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return node_path.default.normalize(fileName);
|
|
239
|
-
return node_path.default.resolve(outDir, fileName);
|
|
240
|
-
}
|
|
241
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
242
|
-
if (hasOutput(candidate)) return candidate;
|
|
243
|
-
if (!node_path.default.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
244
|
-
const extended = `${candidate}${ext}`;
|
|
245
|
-
if (hasOutput(extended)) return extended;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
249
|
-
if (!isResolvableSpecifier(specifier)) return;
|
|
250
|
-
const normalized = stripQueryAndHash(specifier);
|
|
251
|
-
let candidate;
|
|
252
|
-
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = node_path.default.normalize(normalized);
|
|
253
|
-
else if (normalized.startsWith("/")) candidate = node_path.default.resolve(outDir, normalized.slice(1));
|
|
254
|
-
else candidate = node_path.default.resolve(node_path.default.dirname(importer), normalized);
|
|
255
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
256
|
-
}
|
|
257
|
-
//#endregion
|
|
258
206
|
//#region src/utils/disabled.ts
|
|
259
207
|
function resolvePluginDisabledState(disabled) {
|
|
260
208
|
if (disabled === true) return { plugin: true };
|
|
@@ -262,13 +210,6 @@ function resolvePluginDisabledState(disabled) {
|
|
|
262
210
|
return { plugin: disabled.plugin ?? false };
|
|
263
211
|
}
|
|
264
212
|
//#endregion
|
|
265
|
-
//#region src/utils/resolve-package.ts
|
|
266
|
-
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
267
|
-
function resolvePackageDir(name) {
|
|
268
|
-
const pkgPath = require$1.resolve(`${name}/package.json`);
|
|
269
|
-
return node_path.default.dirname(pkgPath);
|
|
270
|
-
}
|
|
271
|
-
//#endregion
|
|
272
213
|
//#region src/bundlers/shared/runtime-entry-type.ts
|
|
273
214
|
const CSS_REQUEST_RE = /\.(?:css|less|sass|scss|styl|stylus|pcss|postcss)(?:$|\?)/;
|
|
274
215
|
const HTML_REQUEST_RE = /\.html?(?:$|\?)/;
|
|
@@ -393,35 +334,6 @@ async function createScopedGeneratorRuntime(options) {
|
|
|
393
334
|
return fallbackRuntime;
|
|
394
335
|
}
|
|
395
336
|
//#endregion
|
|
396
|
-
//#region src/bundlers/shared/source-candidate-scan-signature.ts
|
|
397
|
-
function normalizeSignaturePath(value) {
|
|
398
|
-
return require_generator.toPosixPath(node_path.default.resolve(value));
|
|
399
|
-
}
|
|
400
|
-
function serializeInlineCandidates(inlineCandidates) {
|
|
401
|
-
return {
|
|
402
|
-
excluded: [...inlineCandidates?.excluded ?? []].sort(),
|
|
403
|
-
included: [...inlineCandidates?.included ?? []].sort()
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
function serializeSourceEntries(entries) {
|
|
407
|
-
return (entries ?? []).map((entry) => ({
|
|
408
|
-
base: normalizeSignaturePath(entry.base),
|
|
409
|
-
negated: entry.negated,
|
|
410
|
-
pattern: entry.pattern
|
|
411
|
-
})).sort((a, b) => `${a.base}\0${a.pattern}\0${a.negated}`.localeCompare(`${b.base}\0${b.pattern}\0${b.negated}`));
|
|
412
|
-
}
|
|
413
|
-
function createSourceCandidateScanSignature(input) {
|
|
414
|
-
return JSON.stringify({
|
|
415
|
-
inlineCandidates: serializeInlineCandidates(input.inlineCandidates),
|
|
416
|
-
outDir: input.outDir ? normalizeSignaturePath(input.outDir) : void 0,
|
|
417
|
-
roots: input.roots.map((root) => ({
|
|
418
|
-
entries: serializeSourceEntries(root.entries),
|
|
419
|
-
root: normalizeSignaturePath(root.root)
|
|
420
|
-
})),
|
|
421
|
-
scanAllSources: input.scanAllSources ?? false
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
//#endregion
|
|
425
337
|
Object.defineProperty(exports, "classifyRuntimeEntry", {
|
|
426
338
|
enumerable: true,
|
|
427
339
|
get: function() {
|
|
@@ -476,12 +388,6 @@ Object.defineProperty(exports, "createScopedGeneratorSourceTraceMap", {
|
|
|
476
388
|
return createScopedGeneratorSourceTraceMap;
|
|
477
389
|
}
|
|
478
390
|
});
|
|
479
|
-
Object.defineProperty(exports, "createSourceCandidateScanSignature", {
|
|
480
|
-
enumerable: true,
|
|
481
|
-
get: function() {
|
|
482
|
-
return createSourceCandidateScanSignature;
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
391
|
Object.defineProperty(exports, "getSnapshotHash", {
|
|
486
392
|
enumerable: true,
|
|
487
393
|
get: function() {
|
|
@@ -494,24 +400,6 @@ Object.defineProperty(exports, "hasRuntimeAffectingSourceChanges", {
|
|
|
494
400
|
return hasRuntimeAffectingSourceChanges;
|
|
495
401
|
}
|
|
496
402
|
});
|
|
497
|
-
Object.defineProperty(exports, "normalizeOutputPathKey", {
|
|
498
|
-
enumerable: true,
|
|
499
|
-
get: function() {
|
|
500
|
-
return normalizeOutputPathKey;
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
Object.defineProperty(exports, "resolveOutputSpecifier", {
|
|
504
|
-
enumerable: true,
|
|
505
|
-
get: function() {
|
|
506
|
-
return resolveOutputSpecifier;
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
Object.defineProperty(exports, "resolvePackageDir", {
|
|
510
|
-
enumerable: true,
|
|
511
|
-
get: function() {
|
|
512
|
-
return resolvePackageDir;
|
|
513
|
-
}
|
|
514
|
-
});
|
|
515
403
|
Object.defineProperty(exports, "resolvePluginDisabledState", {
|
|
516
404
|
enumerable: true,
|
|
517
405
|
get: function() {
|
|
@@ -536,12 +424,6 @@ Object.defineProperty(exports, "summarizeStringDiff", {
|
|
|
536
424
|
return summarizeStringDiff;
|
|
537
425
|
}
|
|
538
426
|
});
|
|
539
|
-
Object.defineProperty(exports, "toAbsoluteOutputPath", {
|
|
540
|
-
enumerable: true,
|
|
541
|
-
get: function() {
|
|
542
|
-
return toAbsoluteOutputPath;
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
427
|
Object.defineProperty(exports, "viteStyleInjectorDelegates", {
|
|
546
428
|
enumerable: true,
|
|
547
429
|
get: function() {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { detectAppType } from "./framework.js";
|
|
2
|
-
import { At as toPosixPath } from "./generator-BjK5PRR-.js";
|
|
3
2
|
import { n as hasCssMacroTailwindV4CustomVariantConditionalComments } from "./auto-2dg_uhEJ.js";
|
|
4
|
-
import { g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions } from "./tailwindcss-
|
|
5
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
6
|
-
import {
|
|
3
|
+
import { g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions } from "./tailwindcss-BK9S7zuq.js";
|
|
4
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-DNxQm-bN.js";
|
|
5
|
+
import { o as normalizeStyleInjectorOptions } from "./source-candidate-scan-signature-CsP4BQNa.js";
|
|
7
6
|
import path from "node:path";
|
|
8
7
|
import { weappStyleInjector } from "weapp-style-injector/vite";
|
|
9
8
|
import { StyleInjector } from "weapp-style-injector/vite/taro";
|
|
@@ -75,13 +74,6 @@ function resolveWebpackFrameworkProfile(options) {
|
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
76
|
//#endregion
|
|
78
|
-
//#region src/style-injector/options.ts
|
|
79
|
-
function normalizeStyleInjectorOptions(options) {
|
|
80
|
-
if (options === true) return {};
|
|
81
|
-
if (!options) return;
|
|
82
|
-
return options;
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
77
|
//#region src/style-injector/internal.ts
|
|
86
78
|
function toPluginArray(pluginOrPlugins) {
|
|
87
79
|
return Array.isArray(pluginOrPlugins) ? pluginOrPlugins : [pluginOrPlugins];
|
|
@@ -208,50 +200,6 @@ function createBuiltinWebpackStyleInjectorPlugin(options, delegateFactory) {
|
|
|
208
200
|
return delegateFactory(normalized);
|
|
209
201
|
}
|
|
210
202
|
//#endregion
|
|
211
|
-
//#region src/bundlers/shared/module-graph.ts
|
|
212
|
-
const QUERY_HASH_RE = /[?#].*$/u;
|
|
213
|
-
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
214
|
-
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
215
|
-
const VIRTUAL_PREFIX = "\0";
|
|
216
|
-
const JS_EXTENSIONS = [
|
|
217
|
-
".js",
|
|
218
|
-
".mjs",
|
|
219
|
-
".cjs"
|
|
220
|
-
];
|
|
221
|
-
function normalizeOutputPathKey(value) {
|
|
222
|
-
return path.normalize(value).replace(/\\/g, "/");
|
|
223
|
-
}
|
|
224
|
-
function stripQueryAndHash(specifier) {
|
|
225
|
-
return specifier.replace(QUERY_HASH_RE, "");
|
|
226
|
-
}
|
|
227
|
-
function isResolvableSpecifier(specifier) {
|
|
228
|
-
if (!specifier) return false;
|
|
229
|
-
const normalized = stripQueryAndHash(specifier);
|
|
230
|
-
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
231
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
232
|
-
return !PROTOCOL_RE.test(normalized);
|
|
233
|
-
}
|
|
234
|
-
function toAbsoluteOutputPath(fileName, outDir) {
|
|
235
|
-
if (path.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return path.normalize(fileName);
|
|
236
|
-
return path.resolve(outDir, fileName);
|
|
237
|
-
}
|
|
238
|
-
function matchWithExtensions(candidate, hasOutput) {
|
|
239
|
-
if (hasOutput(candidate)) return candidate;
|
|
240
|
-
if (!path.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
241
|
-
const extended = `${candidate}${ext}`;
|
|
242
|
-
if (hasOutput(extended)) return extended;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
246
|
-
if (!isResolvableSpecifier(specifier)) return;
|
|
247
|
-
const normalized = stripQueryAndHash(specifier);
|
|
248
|
-
let candidate;
|
|
249
|
-
if (path.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = path.normalize(normalized);
|
|
250
|
-
else if (normalized.startsWith("/")) candidate = path.resolve(outDir, normalized.slice(1));
|
|
251
|
-
else candidate = path.resolve(path.dirname(importer), normalized);
|
|
252
|
-
return matchWithExtensions(candidate, hasOutput);
|
|
253
|
-
}
|
|
254
|
-
//#endregion
|
|
255
203
|
//#region src/utils/disabled.ts
|
|
256
204
|
function resolvePluginDisabledState(disabled) {
|
|
257
205
|
if (disabled === true) return { plugin: true };
|
|
@@ -259,13 +207,6 @@ function resolvePluginDisabledState(disabled) {
|
|
|
259
207
|
return { plugin: disabled.plugin ?? false };
|
|
260
208
|
}
|
|
261
209
|
//#endregion
|
|
262
|
-
//#region src/utils/resolve-package.ts
|
|
263
|
-
const require = createRequire(import.meta.url);
|
|
264
|
-
function resolvePackageDir(name) {
|
|
265
|
-
const pkgPath = require.resolve(`${name}/package.json`);
|
|
266
|
-
return path.dirname(pkgPath);
|
|
267
|
-
}
|
|
268
|
-
//#endregion
|
|
269
210
|
//#region src/bundlers/shared/runtime-entry-type.ts
|
|
270
211
|
const CSS_REQUEST_RE = /\.(?:css|less|sass|scss|styl|stylus|pcss|postcss)(?:$|\?)/;
|
|
271
212
|
const HTML_REQUEST_RE = /\.html?(?:$|\?)/;
|
|
@@ -390,33 +331,4 @@ async function createScopedGeneratorRuntime(options) {
|
|
|
390
331
|
return fallbackRuntime;
|
|
391
332
|
}
|
|
392
333
|
//#endregion
|
|
393
|
-
|
|
394
|
-
function normalizeSignaturePath(value) {
|
|
395
|
-
return toPosixPath(path.resolve(value));
|
|
396
|
-
}
|
|
397
|
-
function serializeInlineCandidates(inlineCandidates) {
|
|
398
|
-
return {
|
|
399
|
-
excluded: [...inlineCandidates?.excluded ?? []].sort(),
|
|
400
|
-
included: [...inlineCandidates?.included ?? []].sort()
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function serializeSourceEntries(entries) {
|
|
404
|
-
return (entries ?? []).map((entry) => ({
|
|
405
|
-
base: normalizeSignaturePath(entry.base),
|
|
406
|
-
negated: entry.negated,
|
|
407
|
-
pattern: entry.pattern
|
|
408
|
-
})).sort((a, b) => `${a.base}\0${a.pattern}\0${a.negated}`.localeCompare(`${b.base}\0${b.pattern}\0${b.negated}`));
|
|
409
|
-
}
|
|
410
|
-
function createSourceCandidateScanSignature(input) {
|
|
411
|
-
return JSON.stringify({
|
|
412
|
-
inlineCandidates: serializeInlineCandidates(input.inlineCandidates),
|
|
413
|
-
outDir: input.outDir ? normalizeSignaturePath(input.outDir) : void 0,
|
|
414
|
-
roots: input.roots.map((root) => ({
|
|
415
|
-
entries: serializeSourceEntries(root.entries),
|
|
416
|
-
root: normalizeSignaturePath(root.root)
|
|
417
|
-
})),
|
|
418
|
-
scanAllSources: input.scanAllSources ?? false
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
//#endregion
|
|
422
|
-
export { resolveWebpackFrameworkProfile as S, createBuiltinViteStyleInjectorPlugins as _, createCandidateSignature as a, webpackStyleInjectorDelegates as b, getSnapshotHash as c, classifyRuntimeEntry as d, resolvePackageDir as f, toAbsoluteOutputPath as g, resolveOutputSpecifier as h, createScopedGeneratorSourceTraceMap as i, hasRuntimeAffectingSourceChanges as l, normalizeOutputPathKey as m, createScopedGeneratorCandidateSignature as n, createJsHashSalt as o, resolvePluginDisabledState as p, createScopedGeneratorRuntime as r, createLinkedImpactSignature as s, createSourceCandidateScanSignature as t, summarizeStringDiff as u, createBuiltinWebpackStyleInjectorPlugin as v, resolveViteFrameworkProfile as x, viteStyleInjectorDelegates as y };
|
|
334
|
+
export { resolveWebpackFrameworkProfile as _, createJsHashSalt as a, hasRuntimeAffectingSourceChanges as c, resolvePluginDisabledState as d, createBuiltinViteStyleInjectorPlugins as f, resolveViteFrameworkProfile as g, webpackStyleInjectorDelegates as h, createCandidateSignature as i, summarizeStringDiff as l, viteStyleInjectorDelegates as m, createScopedGeneratorRuntime as n, createLinkedImpactSignature as o, createBuiltinWebpackStyleInjectorPlugin as p, createScopedGeneratorSourceTraceMap as r, getSnapshotHash as s, createScopedGeneratorCandidateSignature as t, classifyRuntimeEntry as u };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
|
+
const require_generator = require("./generator-DsrQ9txU.cjs");
|
|
3
|
+
require("./tailwindcss-C-jBBQfw.cjs");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
6
|
+
let node_module = require("node:module");
|
|
7
|
+
//#region src/style-injector/options.ts
|
|
8
|
+
function normalizeStyleInjectorOptions(options) {
|
|
9
|
+
if (options === true) return {};
|
|
10
|
+
if (!options) return;
|
|
11
|
+
return options;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/bundlers/shared/module-graph.ts
|
|
15
|
+
const QUERY_HASH_RE = /[?#].*$/u;
|
|
16
|
+
const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
|
|
17
|
+
const WINDOWS_ABSOLUTE_RE = /^[a-z]:[\\/]/iu;
|
|
18
|
+
const VIRTUAL_PREFIX = "\0";
|
|
19
|
+
const JS_EXTENSIONS = [
|
|
20
|
+
".js",
|
|
21
|
+
".mjs",
|
|
22
|
+
".cjs"
|
|
23
|
+
];
|
|
24
|
+
function normalizeOutputPathKey(value) {
|
|
25
|
+
return node_path.default.normalize(value).replace(/\\/g, "/");
|
|
26
|
+
}
|
|
27
|
+
function stripQueryAndHash(specifier) {
|
|
28
|
+
return specifier.replace(QUERY_HASH_RE, "");
|
|
29
|
+
}
|
|
30
|
+
function isResolvableSpecifier(specifier) {
|
|
31
|
+
if (!specifier) return false;
|
|
32
|
+
const normalized = stripQueryAndHash(specifier);
|
|
33
|
+
if (normalized.startsWith(VIRTUAL_PREFIX)) return false;
|
|
34
|
+
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) return true;
|
|
35
|
+
return !PROTOCOL_RE.test(normalized);
|
|
36
|
+
}
|
|
37
|
+
function toAbsoluteOutputPath(fileName, outDir) {
|
|
38
|
+
if (node_path.default.isAbsolute(fileName) || WINDOWS_ABSOLUTE_RE.test(fileName)) return node_path.default.normalize(fileName);
|
|
39
|
+
return node_path.default.resolve(outDir, fileName);
|
|
40
|
+
}
|
|
41
|
+
function matchWithExtensions(candidate, hasOutput) {
|
|
42
|
+
if (hasOutput(candidate)) return candidate;
|
|
43
|
+
if (!node_path.default.extname(candidate)) for (const ext of JS_EXTENSIONS) {
|
|
44
|
+
const extended = `${candidate}${ext}`;
|
|
45
|
+
if (hasOutput(extended)) return extended;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
|
|
49
|
+
if (!isResolvableSpecifier(specifier)) return;
|
|
50
|
+
const normalized = stripQueryAndHash(specifier);
|
|
51
|
+
let candidate;
|
|
52
|
+
if (node_path.default.isAbsolute(normalized) || WINDOWS_ABSOLUTE_RE.test(normalized)) candidate = node_path.default.normalize(normalized);
|
|
53
|
+
else if (normalized.startsWith("/")) candidate = node_path.default.resolve(outDir, normalized.slice(1));
|
|
54
|
+
else candidate = node_path.default.resolve(node_path.default.dirname(importer), normalized);
|
|
55
|
+
return matchWithExtensions(candidate, hasOutput);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/utils/resolve-package.ts
|
|
59
|
+
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
60
|
+
function resolvePackageDir(name) {
|
|
61
|
+
const pkgPath = require$1.resolve(`${name}/package.json`);
|
|
62
|
+
return node_path.default.dirname(pkgPath);
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/bundlers/shared/source-candidate-scan-signature.ts
|
|
66
|
+
function normalizeSignaturePath(value) {
|
|
67
|
+
return require_generator.toPosixPath(node_path.default.resolve(value));
|
|
68
|
+
}
|
|
69
|
+
function serializeInlineCandidates(inlineCandidates) {
|
|
70
|
+
return {
|
|
71
|
+
excluded: [...inlineCandidates?.excluded ?? []].sort(),
|
|
72
|
+
included: [...inlineCandidates?.included ?? []].sort()
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function serializeSourceEntries(entries) {
|
|
76
|
+
return (entries ?? []).map((entry) => ({
|
|
77
|
+
base: normalizeSignaturePath(entry.base),
|
|
78
|
+
negated: entry.negated,
|
|
79
|
+
pattern: entry.pattern
|
|
80
|
+
})).sort((a, b) => `${a.base}\0${a.pattern}\0${a.negated}`.localeCompare(`${b.base}\0${b.pattern}\0${b.negated}`));
|
|
81
|
+
}
|
|
82
|
+
function createSourceCandidateScanSignature(input) {
|
|
83
|
+
return JSON.stringify({
|
|
84
|
+
inlineCandidates: serializeInlineCandidates(input.inlineCandidates),
|
|
85
|
+
outDir: input.outDir ? normalizeSignaturePath(input.outDir) : void 0,
|
|
86
|
+
roots: input.roots.map((root) => ({
|
|
87
|
+
entries: serializeSourceEntries(root.entries),
|
|
88
|
+
root: normalizeSignaturePath(root.root)
|
|
89
|
+
})),
|
|
90
|
+
scanAllSources: input.scanAllSources ?? false
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
Object.defineProperty(exports, "createSourceCandidateScanSignature", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function() {
|
|
97
|
+
return createSourceCandidateScanSignature;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "normalizeOutputPathKey", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function() {
|
|
103
|
+
return normalizeOutputPathKey;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "normalizeStyleInjectorOptions", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function() {
|
|
109
|
+
return normalizeStyleInjectorOptions;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "resolveOutputSpecifier", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function() {
|
|
115
|
+
return resolveOutputSpecifier;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "resolvePackageDir", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function() {
|
|
121
|
+
return resolvePackageDir;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "toAbsoluteOutputPath", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function() {
|
|
127
|
+
return toAbsoluteOutputPath;
|
|
128
|
+
}
|
|
129
|
+
});
|