weapp-tailwindcss 5.0.12 → 5.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{bundle-state-DU2ATDhw.js → bundle-state-CKWeTEhv.js} +2 -2
- package/dist/{bundle-state-BxMNKjBV.mjs → bundle-state-zQ2MrDdi.mjs} +1 -1
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +7 -2
- package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +7 -0
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +15 -0
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +12 -0
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +22 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +5 -22
- package/dist/bundlers/shared/generator-css/types.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
- package/dist/bundlers/vite/css-memory.d.ts +27 -0
- package/dist/bundlers/vite/generate-bundle/bundle-file-names.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +5 -0
- package/dist/bundlers/vite/generate-bundle/css-output.d.ts +8 -7
- package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +58 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +31 -0
- package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +77 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +53 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +21 -0
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +29 -0
- package/dist/bundlers/vite/generate-bundle/timing.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +20 -0
- package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +2 -1
- package/dist/bundlers/vite/hot-css-modules.d.ts +5 -0
- package/dist/bundlers/vite/map-cache.d.ts +2 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +16 -0
- package/dist/bundlers/vite/resolve-app-type.d.ts +1 -2
- package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +13 -0
- package/dist/bundlers/vite/source-candidates.d.ts +3 -0
- package/dist/bundlers/vite/source-scan/css-entries.d.ts +1 -0
- package/dist/bundlers/vite/source-scan.d.ts +1 -1
- package/dist/bundlers/vite/weapp-vite-config.d.ts +3 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +2 -0
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +5 -0
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/{defaults-DH0ZQRhy.mjs → defaults-Bqx18S1f.mjs} +2 -35
- package/dist/{defaults-Boc26eel.js → defaults-C_J_kBpw.js} +2 -35
- package/dist/defaults.js +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/framework/index.d.ts +59 -0
- package/dist/framework.d.ts +1 -0
- package/dist/framework.js +198 -0
- package/dist/framework.mjs +180 -0
- package/dist/{generator-Cb1Zp3Al.js → generator-CzpArpCL.js} +1 -1
- package/dist/{generator-mvNFUvns.mjs → generator-ITLd7PTl.mjs} +1 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/{gulp-BfZpaYSQ.mjs → gulp-DfOQERcV.mjs} +44 -16
- package/dist/{gulp-CxGZU0-v.js → gulp-XT8Jc7lH.js} +44 -16
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-DFR51wgo.js → hmr-timing-BMftW7Us.js} +298 -221
- package/dist/{hmr-timing-DNjF8bWA.mjs → hmr-timing-DQIP_8qP.mjs} +297 -220
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -4
- package/dist/index.mjs +6 -5
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/{precheck-30zNPRlI.js → precheck-B0Z8yW7E.js} +98 -27
- package/dist/{precheck-CsFr1q2l.mjs → precheck-CRI90iL1.mjs} +97 -26
- package/dist/presets.js +3 -3
- package/dist/presets.mjs +3 -3
- package/dist/{tailwindcss-CK84uGBp.mjs → tailwindcss-DTq3uYBK.mjs} +2 -2
- package/dist/{tailwindcss-Clpkz1oR.js → tailwindcss-DZEwT3C_.js} +3 -3
- package/dist/{transform-Cju08-aJ.mjs → transform-DfcEjsZF.mjs} +29 -21
- package/dist/{transform-CaVEBOuR.js → transform-YmrmxuF3.js} +29 -21
- package/dist/types/user-defined-options/general.d.ts +3 -1
- package/dist/{utils-Dolmt8EO.js → utils-BCa37Wqj.js} +2 -17
- package/dist/{utils-DsaS975I.mjs → utils-DodxWHGz.mjs} +2 -17
- package/dist/{v3-engine-CQE5JJNZ.js → v3-engine-2rrgylhn.js} +53 -6
- package/dist/{v3-engine-DKBaKWGL.mjs → v3-engine-C6eJ0YzK.mjs} +46 -5
- package/dist/{vite-BBGOjh9e.js → vite-CXHVsHmX.js} +1945 -1280
- package/dist/{vite-CS5DE-HD.mjs → vite-DjI09vVN.mjs} +1944 -1279
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +346 -186
- package/dist/weapp-tw-runtime-classset-loader.js +25 -0
- package/dist/{webpack-SPcri_D8.mjs → webpack-BcPpnT90.mjs} +165 -35
- package/dist/{webpack-DIWrcpRo.js → webpack-CfkUkMXG.js} +167 -37
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_framework = require("./framework.js");
|
|
3
|
+
const require_generator = require("./generator-CzpArpCL.js");
|
|
4
|
+
const require_gulp = require("./gulp-XT8Jc7lH.js");
|
|
4
5
|
const require_postcss = require("./postcss.js");
|
|
5
|
-
const require_vite = require("./vite-
|
|
6
|
-
const require_webpack = require("./webpack-
|
|
6
|
+
const require_vite = require("./vite-CXHVsHmX.js");
|
|
7
|
+
const require_webpack = require("./webpack-CfkUkMXG.js");
|
|
7
8
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
8
9
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
|
9
10
|
exports.createPlugins = require_gulp.createPlugins;
|
|
10
11
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
12
|
+
exports.detectAppType = require_framework.detectAppType;
|
|
13
|
+
exports.detectAppTypeFromEnv = require_framework.detectAppTypeFromEnv;
|
|
14
|
+
exports.detectAppTypeFromPackageJson = require_framework.detectAppTypeFromPackageJson;
|
|
15
|
+
exports.isMpxPackage = require_framework.isMpxPackage;
|
|
16
|
+
exports.isRunningInHBuilderX = require_framework.isRunningInHBuilderX;
|
|
17
|
+
exports.isTaroPackage = require_framework.isTaroPackage;
|
|
18
|
+
exports.isUniAppPackage = require_framework.isUniAppPackage;
|
|
19
|
+
exports.isUniAppVitePackage = require_framework.isUniAppVitePackage;
|
|
20
|
+
exports.isUniAppXManifest = require_framework.isUniAppXManifest;
|
|
21
|
+
exports.isUniAppXPackage = require_framework.isUniAppXPackage;
|
|
22
|
+
exports.isWeappVitePackage = require_framework.isWeappVitePackage;
|
|
23
|
+
exports.resolveImplicitAppTypeFromViteRoot = require_framework.resolveImplicitAppTypeFromViteRoot;
|
|
24
|
+
exports.resolveUniPlatform = require_framework.resolveUniPlatform;
|
|
25
|
+
exports.resolveUniPlatformsFromEnv = require_framework.resolveUniPlatformsFromEnv;
|
|
26
|
+
exports.resolveUniUtsPlatform = require_framework.resolveUniUtsPlatform;
|
|
11
27
|
Object.defineProperty(exports, "unitConversionComposeRules", {
|
|
12
28
|
enumerable: true,
|
|
13
29
|
get: function() {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform } from "./framework.mjs";
|
|
2
|
+
import { t as createWeappTailwindcssGenerator } from "./generator-ITLd7PTl.mjs";
|
|
3
|
+
import { t as createPlugins } from "./gulp-DfOQERcV.mjs";
|
|
3
4
|
import weappTailwindcssPostcssPlugin from "./postcss.mjs";
|
|
4
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
5
|
-
import { n as weappTailwindcssPackageDir } from "./webpack-
|
|
5
|
+
import { t as WeappTailwindcss } from "./vite-DjI09vVN.mjs";
|
|
6
|
+
import { n as weappTailwindcssPackageDir } from "./webpack-BcPpnT90.mjs";
|
|
6
7
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
7
|
-
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
8
|
+
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
package/dist/postcss.js
CHANGED
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_v3_engine = require("./v3-engine-
|
|
6
|
-
const require_generator = require("./generator-
|
|
5
|
+
const require_v3_engine = require("./v3-engine-2rrgylhn.js");
|
|
6
|
+
const require_generator = require("./generator-CzpArpCL.js");
|
|
7
7
|
const weappTailwindcssPostcssPlugin = (0, require("@weapp-tailwindcss/postcss").createWeappTailwindcssPostcssPlugin)({
|
|
8
8
|
createGenerator: (source) => {
|
|
9
9
|
return require_generator.createWeappTailwindcssGenerator(source);
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { t as resolveTailwindV3Source, x as resolveTailwindV4Source } from "./v3-engine-C6eJ0YzK.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-ITLd7PTl.mjs";
|
|
3
3
|
import { createWeappTailwindcssPostcssPlugin } from "@weapp-tailwindcss/postcss";
|
|
4
4
|
const weappTailwindcssPostcssPlugin = createWeappTailwindcssPostcssPlugin({
|
|
5
5
|
createGenerator: (source) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
const require_defaults = require("./defaults-
|
|
4
|
-
require("./utils-
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
6
|
-
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
7
|
-
let lru_cache = require("lru-cache");
|
|
8
|
-
let tailwindcss_patch = require("tailwindcss-patch");
|
|
2
|
+
const require_v3_engine = require("./v3-engine-2rrgylhn.js");
|
|
3
|
+
const require_defaults = require("./defaults-C_J_kBpw.js");
|
|
4
|
+
require("./utils-BCa37Wqj.js");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-DZEwT3C_.js");
|
|
9
6
|
let node_path = require("node:path");
|
|
10
7
|
node_path = require_chunk.__toESM(node_path);
|
|
11
8
|
let node_process = require("node:process");
|
|
12
9
|
node_process = require_chunk.__toESM(node_process);
|
|
10
|
+
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
11
|
+
let lru_cache = require("lru-cache");
|
|
12
|
+
let tailwindcss_patch = require("tailwindcss-patch");
|
|
13
13
|
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
14
14
|
let node_fs_promises = require("node:fs/promises");
|
|
15
15
|
let node_buffer = require("node:buffer");
|
|
@@ -4552,22 +4552,45 @@ function resolveRuntimePackageReplacements(option) {
|
|
|
4552
4552
|
//#region src/context/style-options.ts
|
|
4553
4553
|
function resolveStyleOptionsFromContext(ctx) {
|
|
4554
4554
|
const resolvedUniAppXOptions = require_tailwindcss.resolveUniAppXOptions(ctx.uniAppX);
|
|
4555
|
+
const hasCssOptions = ctx.cssOptions !== void 0;
|
|
4556
|
+
const cssOptions = {
|
|
4557
|
+
cssPreflight: ctx.cssOptions?.cssPreflight ?? ctx.cssPreflight,
|
|
4558
|
+
cssPreflightRange: ctx.cssOptions?.cssPreflightRange ?? ctx.cssPreflightRange,
|
|
4559
|
+
cssChildCombinatorReplaceValue: ctx.cssOptions?.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue,
|
|
4560
|
+
cssSelectorReplacement: ctx.cssOptions?.cssSelectorReplacement ?? ctx.cssSelectorReplacement,
|
|
4561
|
+
rem2rpx: ctx.cssOptions?.rem2rpx ?? ctx.rem2rpx,
|
|
4562
|
+
cssRemoveProperty: ctx.cssOptions?.cssRemoveProperty ?? ctx.cssRemoveProperty,
|
|
4563
|
+
cssRemoveHoverPseudoClass: ctx.cssOptions?.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass,
|
|
4564
|
+
tailwindcssV4GradientFallback: ctx.cssOptions?.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback,
|
|
4565
|
+
cssPresetEnv: ctx.cssOptions?.cssPresetEnv ?? ctx.cssPresetEnv,
|
|
4566
|
+
atRules: ctx.cssOptions?.atRules ?? ctx.atRules,
|
|
4567
|
+
autoprefixer: ctx.cssOptions?.autoprefixer ?? ctx.autoprefixer,
|
|
4568
|
+
cssCalc: ctx.cssOptions?.cssCalc ?? ctx.cssCalc,
|
|
4569
|
+
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
4570
|
+
px2rpx: ctx.cssOptions?.px2rpx ?? ctx.px2rpx,
|
|
4571
|
+
unitsToPx: ctx.cssOptions?.unitsToPx ?? ctx.unitsToPx,
|
|
4572
|
+
unitConversion: ctx.cssOptions?.unitConversion ?? ctx.unitConversion,
|
|
4573
|
+
injectAdditionalCssVarScope: ctx.cssOptions?.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope
|
|
4574
|
+
};
|
|
4555
4575
|
return {
|
|
4556
|
-
cssPreflight:
|
|
4557
|
-
cssPreflightRange:
|
|
4558
|
-
cssChildCombinatorReplaceValue:
|
|
4559
|
-
cssSelectorReplacement:
|
|
4560
|
-
rem2rpx:
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4576
|
+
cssPreflight: cssOptions.cssPreflight,
|
|
4577
|
+
cssPreflightRange: cssOptions.cssPreflightRange,
|
|
4578
|
+
cssChildCombinatorReplaceValue: cssOptions.cssChildCombinatorReplaceValue,
|
|
4579
|
+
cssSelectorReplacement: cssOptions.cssSelectorReplacement,
|
|
4580
|
+
rem2rpx: cssOptions.rem2rpx,
|
|
4581
|
+
...hasCssOptions ? { cssOptions } : {},
|
|
4582
|
+
cssRemoveProperty: cssOptions.cssRemoveProperty,
|
|
4583
|
+
cssRemoveHoverPseudoClass: cssOptions.cssRemoveHoverPseudoClass,
|
|
4584
|
+
tailwindcssV4GradientFallback: cssOptions.tailwindcssV4GradientFallback,
|
|
4585
|
+
cssPresetEnv: cssOptions.cssPresetEnv,
|
|
4586
|
+
atRules: cssOptions.atRules,
|
|
4587
|
+
autoprefixer: cssOptions.autoprefixer,
|
|
4588
|
+
cssCalc: cssOptions.cssCalc,
|
|
4566
4589
|
uniAppX: resolvedUniAppXOptions.enabled,
|
|
4567
|
-
platform:
|
|
4568
|
-
px2rpx:
|
|
4569
|
-
unitsToPx:
|
|
4570
|
-
unitConversion:
|
|
4590
|
+
platform: cssOptions.platform,
|
|
4591
|
+
px2rpx: cssOptions.px2rpx,
|
|
4592
|
+
unitsToPx: cssOptions.unitsToPx,
|
|
4593
|
+
unitConversion: cssOptions.unitConversion
|
|
4571
4594
|
};
|
|
4572
4595
|
}
|
|
4573
4596
|
//#endregion
|
|
@@ -4576,12 +4599,13 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
|
|
|
4576
4599
|
const { escapeMap, injectAdditionalCssVarScope, postcssOptions, uniAppX, arbitraryValues, jsPreserveClass, jsArbitraryValueFallback, babelParserOptions, ignoreCallExpressionIdentifiers, ignoreTaggedTemplateExpressionIdentifiers, inlineWxs, disabledDefaultTemplateHandler, replaceRuntimePackages } = ctx;
|
|
4577
4600
|
const resolvedUniAppXOptions = require_tailwindcss.resolveUniAppXOptions(uniAppX);
|
|
4578
4601
|
const styleOptions = resolveStyleOptionsFromContext(ctx);
|
|
4602
|
+
const resolvedInjectAdditionalCssVarScope = styleOptions.cssOptions?.injectAdditionalCssVarScope ?? injectAdditionalCssVarScope;
|
|
4579
4603
|
const uniAppXEnabled = styleOptions.uniAppX === true;
|
|
4580
4604
|
const moduleSpecifierReplacements = resolveRuntimePackageReplacements(replaceRuntimePackages);
|
|
4581
4605
|
const styleHandler = (0, _weapp_tailwindcss_postcss.createStyleHandler)({
|
|
4582
4606
|
...styleOptions,
|
|
4583
4607
|
escapeMap,
|
|
4584
|
-
injectAdditionalCssVarScope,
|
|
4608
|
+
injectAdditionalCssVarScope: resolvedInjectAdditionalCssVarScope,
|
|
4585
4609
|
postcssOptions,
|
|
4586
4610
|
uniAppXUnsupported: resolvedUniAppXOptions.uvueUnsupported,
|
|
4587
4611
|
cssCalc: cssCalcOptions,
|
|
@@ -4626,14 +4650,59 @@ function applyLoggerLevel(logLevel) {
|
|
|
4626
4650
|
//#endregion
|
|
4627
4651
|
//#region src/context/index.ts
|
|
4628
4652
|
function resolveContextCssPreflight(opts, ctx, majorVersion) {
|
|
4629
|
-
const
|
|
4653
|
+
const userCssPreflight = opts?.cssOptions?.cssPreflight ?? opts?.cssPreflight;
|
|
4654
|
+
const cssPreflight = require_defaults.resolveDefaultCssPreflight(userCssPreflight, majorVersion);
|
|
4630
4655
|
if (majorVersion !== 4 || cssPreflight === false || !require_tailwindcss.resolveUniAppXOptions(ctx.uniAppX).enabled) return cssPreflight;
|
|
4631
|
-
const
|
|
4656
|
+
const userCssPreflightObject = userCssPreflight && typeof userCssPreflight === "object" ? userCssPreflight : void 0;
|
|
4632
4657
|
return {
|
|
4633
4658
|
...cssPreflight,
|
|
4634
|
-
"border-width":
|
|
4635
|
-
"border-style":
|
|
4636
|
-
"border":
|
|
4659
|
+
"border-width": userCssPreflightObject && "border-width" in userCssPreflightObject ? cssPreflight["border-width"] ?? false : "0",
|
|
4660
|
+
"border-style": userCssPreflightObject && "border-style" in userCssPreflightObject ? cssPreflight["border-style"] ?? false : false,
|
|
4661
|
+
"border": userCssPreflightObject && "border" in userCssPreflightObject ? cssPreflight["border"] ?? false : false
|
|
4662
|
+
};
|
|
4663
|
+
}
|
|
4664
|
+
function syncCssOptionsToLegacyFields(ctx) {
|
|
4665
|
+
if (!ctx.cssOptions) return;
|
|
4666
|
+
const cssOptions = ctx.cssOptions;
|
|
4667
|
+
ctx.cssPreflight = cssOptions.cssPreflight ?? ctx.cssPreflight;
|
|
4668
|
+
ctx.cssPreflightRange = cssOptions.cssPreflightRange ?? ctx.cssPreflightRange;
|
|
4669
|
+
ctx.cssChildCombinatorReplaceValue = cssOptions.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue;
|
|
4670
|
+
ctx.cssSelectorReplacement = cssOptions.cssSelectorReplacement ?? ctx.cssSelectorReplacement;
|
|
4671
|
+
ctx.rem2rpx = cssOptions.rem2rpx ?? ctx.rem2rpx;
|
|
4672
|
+
ctx.cssRemoveProperty = cssOptions.cssRemoveProperty ?? ctx.cssRemoveProperty;
|
|
4673
|
+
ctx.cssRemoveHoverPseudoClass = cssOptions.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass;
|
|
4674
|
+
ctx.tailwindcssV4GradientFallback = cssOptions.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback;
|
|
4675
|
+
ctx.cssPresetEnv = cssOptions.cssPresetEnv ?? ctx.cssPresetEnv;
|
|
4676
|
+
ctx.atRules = cssOptions.atRules ?? ctx.atRules;
|
|
4677
|
+
ctx.autoprefixer = cssOptions.autoprefixer ?? ctx.autoprefixer;
|
|
4678
|
+
ctx.cssCalc = cssOptions.cssCalc ?? ctx.cssCalc;
|
|
4679
|
+
ctx.platform = cssOptions.platform ?? ctx.platform;
|
|
4680
|
+
ctx.px2rpx = cssOptions.px2rpx ?? ctx.px2rpx;
|
|
4681
|
+
ctx.unitsToPx = cssOptions.unitsToPx ?? ctx.unitsToPx;
|
|
4682
|
+
ctx.unitConversion = cssOptions.unitConversion ?? ctx.unitConversion;
|
|
4683
|
+
ctx.injectAdditionalCssVarScope = cssOptions.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope;
|
|
4684
|
+
}
|
|
4685
|
+
function syncLegacyFieldsToCssOptions(ctx) {
|
|
4686
|
+
if (!ctx.cssOptions) return;
|
|
4687
|
+
ctx.cssOptions = {
|
|
4688
|
+
...ctx.cssOptions ?? {},
|
|
4689
|
+
cssPreflight: ctx.cssPreflight,
|
|
4690
|
+
cssPreflightRange: ctx.cssPreflightRange,
|
|
4691
|
+
cssChildCombinatorReplaceValue: ctx.cssChildCombinatorReplaceValue,
|
|
4692
|
+
cssSelectorReplacement: ctx.cssSelectorReplacement,
|
|
4693
|
+
rem2rpx: ctx.rem2rpx,
|
|
4694
|
+
cssRemoveProperty: ctx.cssRemoveProperty,
|
|
4695
|
+
cssRemoveHoverPseudoClass: ctx.cssRemoveHoverPseudoClass,
|
|
4696
|
+
tailwindcssV4GradientFallback: ctx.tailwindcssV4GradientFallback,
|
|
4697
|
+
cssPresetEnv: ctx.cssPresetEnv,
|
|
4698
|
+
atRules: ctx.atRules,
|
|
4699
|
+
autoprefixer: ctx.autoprefixer,
|
|
4700
|
+
cssCalc: ctx.cssCalc,
|
|
4701
|
+
platform: ctx.platform,
|
|
4702
|
+
px2rpx: ctx.px2rpx,
|
|
4703
|
+
unitsToPx: ctx.unitsToPx,
|
|
4704
|
+
unitConversion: ctx.unitConversion,
|
|
4705
|
+
injectAdditionalCssVarScope: ctx.injectAdditionalCssVarScope
|
|
4637
4706
|
};
|
|
4638
4707
|
}
|
|
4639
4708
|
async function clearTailwindcssPatcherCache(patcher, options) {
|
|
@@ -4668,6 +4737,7 @@ function createInternalCompilerContext(opts) {
|
|
|
4668
4737
|
const ctx = (0, _weapp_tailwindcss_shared.defuOverrideArray)(opts, require_defaults.getDefaultOptions(), {});
|
|
4669
4738
|
ctx.arbitraryValues = resolveUnocssBareArbitraryValues(ctx.arbitraryValues, ctx.unocss);
|
|
4670
4739
|
ctx.escapeMap = ctx.customReplaceDictionary;
|
|
4740
|
+
syncCssOptionsToLegacyFields(ctx);
|
|
4671
4741
|
applyLoggerLevel(ctx.logLevel);
|
|
4672
4742
|
const twPatcher = require_tailwindcss.createTailwindcssPatcherFromContext(ctx);
|
|
4673
4743
|
logTailwindcssTarget(twPatcher, ctx.tailwindcssBasedir);
|
|
@@ -4676,6 +4746,7 @@ function createInternalCompilerContext(opts) {
|
|
|
4676
4746
|
ctx.cssPreflight = resolveContextCssPreflight(opts, ctx, twPatcher.majorVersion);
|
|
4677
4747
|
const cssCalcOptions = require_tailwindcss.applyV4CssCalcDefaults(ctx.cssCalc, twPatcher);
|
|
4678
4748
|
ctx.cssCalc = cssCalcOptions;
|
|
4749
|
+
syncLegacyFieldsToCssOptions(ctx);
|
|
4679
4750
|
const { styleHandler, jsHandler, templateHandler } = createHandlersFromContext(ctx, toCustomAttributesEntities(ctx.customAttributes), cssCalcOptions, twPatcher.majorVersion);
|
|
4680
4751
|
ctx.styleHandler = styleHandler;
|
|
4681
4752
|
ctx.jsHandler = jsHandler;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as resolveDefaultCssPreflight, i as getDefaultOptions, o as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH, s as HARD_PARSE_CACHE_MAX_ENTRIES } from "./defaults-
|
|
3
|
-
import { i as isMap, n as defuOverrideArray } from "./utils-
|
|
4
|
-
import { i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssPatcherFromContext } from "./tailwindcss-
|
|
1
|
+
import { C as resolveTailwindV4SourceFromPatcher, J as createTailwindV4Engine$1, c as ensureTailwindcssRuntimePatch, d as getRuntimeClassSetSignatureWithSources, f as invalidateRuntimeClassSet, ft as resolveBooleanObjectOption, gt as omitUndefined, l as getRuntimeClassSetCacheEntry, ot as createDebug } from "./v3-engine-C6eJ0YzK.mjs";
|
|
2
|
+
import { a as resolveDefaultCssPreflight, i as getDefaultOptions, o as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH, s as HARD_PARSE_CACHE_MAX_ENTRIES } from "./defaults-Bqx18S1f.mjs";
|
|
3
|
+
import { i as isMap, n as defuOverrideArray } from "./utils-DodxWHGz.mjs";
|
|
4
|
+
import { i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssPatcherFromContext } from "./tailwindcss-DTq3uYBK.mjs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import process from "node:process";
|
|
5
7
|
import { createStyleHandler } from "@weapp-tailwindcss/postcss";
|
|
6
8
|
import { LRUCache } from "lru-cache";
|
|
7
9
|
import { splitCandidateTokens } from "tailwindcss-patch";
|
|
8
|
-
import path from "node:path";
|
|
9
|
-
import process from "node:process";
|
|
10
10
|
import { logger, pc } from "@weapp-tailwindcss/logger";
|
|
11
11
|
import { rm } from "node:fs/promises";
|
|
12
12
|
import { Buffer } from "node:buffer";
|
|
@@ -4545,22 +4545,45 @@ function resolveRuntimePackageReplacements(option) {
|
|
|
4545
4545
|
//#region src/context/style-options.ts
|
|
4546
4546
|
function resolveStyleOptionsFromContext(ctx) {
|
|
4547
4547
|
const resolvedUniAppXOptions = resolveUniAppXOptions(ctx.uniAppX);
|
|
4548
|
+
const hasCssOptions = ctx.cssOptions !== void 0;
|
|
4549
|
+
const cssOptions = {
|
|
4550
|
+
cssPreflight: ctx.cssOptions?.cssPreflight ?? ctx.cssPreflight,
|
|
4551
|
+
cssPreflightRange: ctx.cssOptions?.cssPreflightRange ?? ctx.cssPreflightRange,
|
|
4552
|
+
cssChildCombinatorReplaceValue: ctx.cssOptions?.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue,
|
|
4553
|
+
cssSelectorReplacement: ctx.cssOptions?.cssSelectorReplacement ?? ctx.cssSelectorReplacement,
|
|
4554
|
+
rem2rpx: ctx.cssOptions?.rem2rpx ?? ctx.rem2rpx,
|
|
4555
|
+
cssRemoveProperty: ctx.cssOptions?.cssRemoveProperty ?? ctx.cssRemoveProperty,
|
|
4556
|
+
cssRemoveHoverPseudoClass: ctx.cssOptions?.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass,
|
|
4557
|
+
tailwindcssV4GradientFallback: ctx.cssOptions?.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback,
|
|
4558
|
+
cssPresetEnv: ctx.cssOptions?.cssPresetEnv ?? ctx.cssPresetEnv,
|
|
4559
|
+
atRules: ctx.cssOptions?.atRules ?? ctx.atRules,
|
|
4560
|
+
autoprefixer: ctx.cssOptions?.autoprefixer ?? ctx.autoprefixer,
|
|
4561
|
+
cssCalc: ctx.cssOptions?.cssCalc ?? ctx.cssCalc,
|
|
4562
|
+
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
4563
|
+
px2rpx: ctx.cssOptions?.px2rpx ?? ctx.px2rpx,
|
|
4564
|
+
unitsToPx: ctx.cssOptions?.unitsToPx ?? ctx.unitsToPx,
|
|
4565
|
+
unitConversion: ctx.cssOptions?.unitConversion ?? ctx.unitConversion,
|
|
4566
|
+
injectAdditionalCssVarScope: ctx.cssOptions?.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope
|
|
4567
|
+
};
|
|
4548
4568
|
return {
|
|
4549
|
-
cssPreflight:
|
|
4550
|
-
cssPreflightRange:
|
|
4551
|
-
cssChildCombinatorReplaceValue:
|
|
4552
|
-
cssSelectorReplacement:
|
|
4553
|
-
rem2rpx:
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4569
|
+
cssPreflight: cssOptions.cssPreflight,
|
|
4570
|
+
cssPreflightRange: cssOptions.cssPreflightRange,
|
|
4571
|
+
cssChildCombinatorReplaceValue: cssOptions.cssChildCombinatorReplaceValue,
|
|
4572
|
+
cssSelectorReplacement: cssOptions.cssSelectorReplacement,
|
|
4573
|
+
rem2rpx: cssOptions.rem2rpx,
|
|
4574
|
+
...hasCssOptions ? { cssOptions } : {},
|
|
4575
|
+
cssRemoveProperty: cssOptions.cssRemoveProperty,
|
|
4576
|
+
cssRemoveHoverPseudoClass: cssOptions.cssRemoveHoverPseudoClass,
|
|
4577
|
+
tailwindcssV4GradientFallback: cssOptions.tailwindcssV4GradientFallback,
|
|
4578
|
+
cssPresetEnv: cssOptions.cssPresetEnv,
|
|
4579
|
+
atRules: cssOptions.atRules,
|
|
4580
|
+
autoprefixer: cssOptions.autoprefixer,
|
|
4581
|
+
cssCalc: cssOptions.cssCalc,
|
|
4559
4582
|
uniAppX: resolvedUniAppXOptions.enabled,
|
|
4560
|
-
platform:
|
|
4561
|
-
px2rpx:
|
|
4562
|
-
unitsToPx:
|
|
4563
|
-
unitConversion:
|
|
4583
|
+
platform: cssOptions.platform,
|
|
4584
|
+
px2rpx: cssOptions.px2rpx,
|
|
4585
|
+
unitsToPx: cssOptions.unitsToPx,
|
|
4586
|
+
unitConversion: cssOptions.unitConversion
|
|
4564
4587
|
};
|
|
4565
4588
|
}
|
|
4566
4589
|
//#endregion
|
|
@@ -4569,12 +4592,13 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
|
|
|
4569
4592
|
const { escapeMap, injectAdditionalCssVarScope, postcssOptions, uniAppX, arbitraryValues, jsPreserveClass, jsArbitraryValueFallback, babelParserOptions, ignoreCallExpressionIdentifiers, ignoreTaggedTemplateExpressionIdentifiers, inlineWxs, disabledDefaultTemplateHandler, replaceRuntimePackages } = ctx;
|
|
4570
4593
|
const resolvedUniAppXOptions = resolveUniAppXOptions(uniAppX);
|
|
4571
4594
|
const styleOptions = resolveStyleOptionsFromContext(ctx);
|
|
4595
|
+
const resolvedInjectAdditionalCssVarScope = styleOptions.cssOptions?.injectAdditionalCssVarScope ?? injectAdditionalCssVarScope;
|
|
4572
4596
|
const uniAppXEnabled = styleOptions.uniAppX === true;
|
|
4573
4597
|
const moduleSpecifierReplacements = resolveRuntimePackageReplacements(replaceRuntimePackages);
|
|
4574
4598
|
const styleHandler = createStyleHandler({
|
|
4575
4599
|
...styleOptions,
|
|
4576
4600
|
escapeMap,
|
|
4577
|
-
injectAdditionalCssVarScope,
|
|
4601
|
+
injectAdditionalCssVarScope: resolvedInjectAdditionalCssVarScope,
|
|
4578
4602
|
postcssOptions,
|
|
4579
4603
|
uniAppXUnsupported: resolvedUniAppXOptions.uvueUnsupported,
|
|
4580
4604
|
cssCalc: cssCalcOptions,
|
|
@@ -4619,14 +4643,59 @@ function applyLoggerLevel(logLevel) {
|
|
|
4619
4643
|
//#endregion
|
|
4620
4644
|
//#region src/context/index.ts
|
|
4621
4645
|
function resolveContextCssPreflight(opts, ctx, majorVersion) {
|
|
4622
|
-
const
|
|
4646
|
+
const userCssPreflight = opts?.cssOptions?.cssPreflight ?? opts?.cssPreflight;
|
|
4647
|
+
const cssPreflight = resolveDefaultCssPreflight(userCssPreflight, majorVersion);
|
|
4623
4648
|
if (majorVersion !== 4 || cssPreflight === false || !resolveUniAppXOptions(ctx.uniAppX).enabled) return cssPreflight;
|
|
4624
|
-
const
|
|
4649
|
+
const userCssPreflightObject = userCssPreflight && typeof userCssPreflight === "object" ? userCssPreflight : void 0;
|
|
4625
4650
|
return {
|
|
4626
4651
|
...cssPreflight,
|
|
4627
|
-
"border-width":
|
|
4628
|
-
"border-style":
|
|
4629
|
-
"border":
|
|
4652
|
+
"border-width": userCssPreflightObject && "border-width" in userCssPreflightObject ? cssPreflight["border-width"] ?? false : "0",
|
|
4653
|
+
"border-style": userCssPreflightObject && "border-style" in userCssPreflightObject ? cssPreflight["border-style"] ?? false : false,
|
|
4654
|
+
"border": userCssPreflightObject && "border" in userCssPreflightObject ? cssPreflight["border"] ?? false : false
|
|
4655
|
+
};
|
|
4656
|
+
}
|
|
4657
|
+
function syncCssOptionsToLegacyFields(ctx) {
|
|
4658
|
+
if (!ctx.cssOptions) return;
|
|
4659
|
+
const cssOptions = ctx.cssOptions;
|
|
4660
|
+
ctx.cssPreflight = cssOptions.cssPreflight ?? ctx.cssPreflight;
|
|
4661
|
+
ctx.cssPreflightRange = cssOptions.cssPreflightRange ?? ctx.cssPreflightRange;
|
|
4662
|
+
ctx.cssChildCombinatorReplaceValue = cssOptions.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue;
|
|
4663
|
+
ctx.cssSelectorReplacement = cssOptions.cssSelectorReplacement ?? ctx.cssSelectorReplacement;
|
|
4664
|
+
ctx.rem2rpx = cssOptions.rem2rpx ?? ctx.rem2rpx;
|
|
4665
|
+
ctx.cssRemoveProperty = cssOptions.cssRemoveProperty ?? ctx.cssRemoveProperty;
|
|
4666
|
+
ctx.cssRemoveHoverPseudoClass = cssOptions.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass;
|
|
4667
|
+
ctx.tailwindcssV4GradientFallback = cssOptions.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback;
|
|
4668
|
+
ctx.cssPresetEnv = cssOptions.cssPresetEnv ?? ctx.cssPresetEnv;
|
|
4669
|
+
ctx.atRules = cssOptions.atRules ?? ctx.atRules;
|
|
4670
|
+
ctx.autoprefixer = cssOptions.autoprefixer ?? ctx.autoprefixer;
|
|
4671
|
+
ctx.cssCalc = cssOptions.cssCalc ?? ctx.cssCalc;
|
|
4672
|
+
ctx.platform = cssOptions.platform ?? ctx.platform;
|
|
4673
|
+
ctx.px2rpx = cssOptions.px2rpx ?? ctx.px2rpx;
|
|
4674
|
+
ctx.unitsToPx = cssOptions.unitsToPx ?? ctx.unitsToPx;
|
|
4675
|
+
ctx.unitConversion = cssOptions.unitConversion ?? ctx.unitConversion;
|
|
4676
|
+
ctx.injectAdditionalCssVarScope = cssOptions.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope;
|
|
4677
|
+
}
|
|
4678
|
+
function syncLegacyFieldsToCssOptions(ctx) {
|
|
4679
|
+
if (!ctx.cssOptions) return;
|
|
4680
|
+
ctx.cssOptions = {
|
|
4681
|
+
...ctx.cssOptions ?? {},
|
|
4682
|
+
cssPreflight: ctx.cssPreflight,
|
|
4683
|
+
cssPreflightRange: ctx.cssPreflightRange,
|
|
4684
|
+
cssChildCombinatorReplaceValue: ctx.cssChildCombinatorReplaceValue,
|
|
4685
|
+
cssSelectorReplacement: ctx.cssSelectorReplacement,
|
|
4686
|
+
rem2rpx: ctx.rem2rpx,
|
|
4687
|
+
cssRemoveProperty: ctx.cssRemoveProperty,
|
|
4688
|
+
cssRemoveHoverPseudoClass: ctx.cssRemoveHoverPseudoClass,
|
|
4689
|
+
tailwindcssV4GradientFallback: ctx.tailwindcssV4GradientFallback,
|
|
4690
|
+
cssPresetEnv: ctx.cssPresetEnv,
|
|
4691
|
+
atRules: ctx.atRules,
|
|
4692
|
+
autoprefixer: ctx.autoprefixer,
|
|
4693
|
+
cssCalc: ctx.cssCalc,
|
|
4694
|
+
platform: ctx.platform,
|
|
4695
|
+
px2rpx: ctx.px2rpx,
|
|
4696
|
+
unitsToPx: ctx.unitsToPx,
|
|
4697
|
+
unitConversion: ctx.unitConversion,
|
|
4698
|
+
injectAdditionalCssVarScope: ctx.injectAdditionalCssVarScope
|
|
4630
4699
|
};
|
|
4631
4700
|
}
|
|
4632
4701
|
async function clearTailwindcssPatcherCache(patcher, options) {
|
|
@@ -4661,6 +4730,7 @@ function createInternalCompilerContext(opts) {
|
|
|
4661
4730
|
const ctx = defuOverrideArray(opts, getDefaultOptions(), {});
|
|
4662
4731
|
ctx.arbitraryValues = resolveUnocssBareArbitraryValues(ctx.arbitraryValues, ctx.unocss);
|
|
4663
4732
|
ctx.escapeMap = ctx.customReplaceDictionary;
|
|
4733
|
+
syncCssOptionsToLegacyFields(ctx);
|
|
4664
4734
|
applyLoggerLevel(ctx.logLevel);
|
|
4665
4735
|
const twPatcher = createTailwindcssPatcherFromContext(ctx);
|
|
4666
4736
|
logTailwindcssTarget(twPatcher, ctx.tailwindcssBasedir);
|
|
@@ -4669,6 +4739,7 @@ function createInternalCompilerContext(opts) {
|
|
|
4669
4739
|
ctx.cssPreflight = resolveContextCssPreflight(opts, ctx, twPatcher.majorVersion);
|
|
4670
4740
|
const cssCalcOptions = applyV4CssCalcDefaults(ctx.cssCalc, twPatcher);
|
|
4671
4741
|
ctx.cssCalc = cssCalcOptions;
|
|
4742
|
+
syncLegacyFieldsToCssOptions(ctx);
|
|
4672
4743
|
const { styleHandler, jsHandler, templateHandler } = createHandlersFromContext(ctx, toCustomAttributesEntities(ctx.customAttributes), cssCalcOptions, twPatcher.majorVersion);
|
|
4673
4744
|
ctx.styleHandler = styleHandler;
|
|
4674
4745
|
ctx.jsHandler = jsHandler;
|
package/dist/presets.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
3
|
-
const require_v3_engine = require("./v3-engine-
|
|
4
|
-
const require_utils = require("./utils-
|
|
5
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
3
|
+
const require_v3_engine = require("./v3-engine-2rrgylhn.js");
|
|
4
|
+
const require_utils = require("./utils-BCa37Wqj.js");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-DZEwT3C_.js");
|
|
6
6
|
require("./logger-TlKT3xmR.js");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_chunk.__toESM(node_path);
|
package/dist/presets.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as defuOverrideArray, o as resolveUniUtsPlatform } from "./utils-
|
|
3
|
-
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-
|
|
1
|
+
import { gt as omitUndefined } from "./v3-engine-C6eJ0YzK.mjs";
|
|
2
|
+
import { n as defuOverrideArray, o as resolveUniUtsPlatform } from "./utils-DodxWHGz.mjs";
|
|
3
|
+
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-DTq3uYBK.mjs";
|
|
4
4
|
import { t as logger } from "./logger-BNzxZbZj.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import process from "node:process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as defuOverrideArray } from "./utils-
|
|
1
|
+
import { ct as readInstalledPackageMajorVersion, dt as normalizeStringListOption, gt as omitUndefined, ht as findWorkspaceRoot, mt as findWorkspacePackageDir, p as runtimeSignaturePatchersSymbol, pt as findNearestPackageRoot, st as createTailwindcssPatcher } from "./v3-engine-C6eJ0YzK.mjs";
|
|
2
|
+
import { n as defuOverrideArray } from "./utils-DodxWHGz.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_v3_engine = require("./v3-engine-
|
|
3
|
-
require("./utils-
|
|
4
|
-
let node_module = require("node:module");
|
|
2
|
+
const require_v3_engine = require("./v3-engine-2rrgylhn.js");
|
|
3
|
+
require("./utils-BCa37Wqj.js");
|
|
5
4
|
let node_fs = require("node:fs");
|
|
6
5
|
let node_path = require("node:path");
|
|
7
6
|
node_path = require_chunk.__toESM(node_path);
|
|
8
7
|
let node_process = require("node:process");
|
|
9
8
|
node_process = require_chunk.__toESM(node_process);
|
|
9
|
+
let node_module = require("node:module");
|
|
10
10
|
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
11
11
|
let node_url = require("node:url");
|
|
12
12
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|