@@ -43,45 +43,6 @@ module.exports = function tailwindcss(configOrPath) {
4343 return ;
4444 }
4545 contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
46- }, false && function lightningCssPlugin(_root , result ) {
47- let postcss = require (" postcss" );
48- let lightningcss = require (" lightningcss" );
49- let browserslist = require (" browserslist" );
50- try {
51- let transformed = lightningcss .transform ({
52- filename: result .opts .from ,
53- code: Buffer .from (result .root .toString ()),
54- minify: false ,
55- sourceMap: !! result .map ,
56- inputSourceMap: result .map ? result .map .toString () : undefined ,
57- targets: typeof process !== " undefined" && process .env .JEST_WORKER_ID ? {
58- chrome: 106 << 16
59- } : lightningcss .browserslistToTargets (browserslist (require (" ../package.json" ).browserslist )),
60- drafts: {
61- nesting: true ,
62- customMedia: true
63- }
64- });
65- var _result_map;
66- result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
67- toJSON() {
68- return transformed .map .toJSON ();
69- },
70- toString() {
71- return transformed .map .toString ();
72- }
73- });
74- result .root = postcss .parse (transformed .code .toString (" utf8" ));
75- } catch (err ) {
76- if (typeof process !== " undefined" && process .env .JEST_WORKER_ID ) {
77- let lines = err .source .split (" \\ n" );
78- err = new Error ([" Error formatting using Lightning CSS:" , " " , ... [" \`\`\` css" , ... lines .slice (Math .max (err .loc .line - 3 , 0 ), err .loc .line ), " " .repeat (err .loc .column - 1 ) + " ^-- " + err .toString (), ... lines .slice (err .loc .line , err .loc .line + 2 ), " \`\`\` " ]].join (" \\ n" ));
79- }
80- if (Error .captureStackTrace ) {
81- Error .captureStackTrace (err , lightningCssPlugin );
82- }
83- throw err ;
84- }
8546 }, _sharedState .env .DEBUG && function (root ) {
8647 console .timeEnd (" JIT TOTAL" );
8748 console .log (" \\ n" );
@@ -111,7 +72,6 @@ const _resolveDefaultsAtRules = /*#__PURE__*/_interop_require_default(require(".
11172const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
11273const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
11374const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
114- const _detectNesting = /* #__PURE__*/ _interop_require_default (require (" ./lib/detectNesting" ));
11575const _setupContextUtils = require (" ./lib/setupContextUtils" );
11676const _featureFlags = require (" ./featureFlags" );
11777function _interop_require_default(obj ) {
@@ -125,7 +85,6 @@ function processTailwindFeatures(setupContext) {
12585 tailwindDirectives,
12686 applyDirectives
12787 } = (0 , _normalizeTailwindDirectives .default )(root );
128- (0 , _detectNesting .default )()(root , result );
12988 // Partition apply rules that are found in the css
13089 // itself.
13190 (0 , _partitionApplyAtRules .default )()(root , result );
@@ -2690,3 +2649,247 @@ function processTailwindFeatures(setupContext) {
26902649}" ,
26912650}
26922651` ;
2652+
2653+ exports [` versions-patch > patch tailwindcss3.4.2 1` ] = `
2654+ {
2655+ " plugin" : " " use strict " ;
2656+
2657+ Object .defineProperty (exports , " __esModule" , {
2658+ value: true
2659+ });
2660+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2661+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2662+ const _sharedState = require (" ./lib/sharedState" );
2663+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2664+ function _interop_require_default(obj ) {
2665+ return obj && obj .__esModule ? obj : {
2666+ default : obj
2667+ };
2668+ }
2669+ const contextRef = {
2670+ value: []
2671+ };
2672+ module .exports = function tailwindcss(configOrPath ) {
2673+ return {
2674+ postcssPlugin: " tailwindcss" ,
2675+ plugins: [_sharedState .env .DEBUG && function (root ) {
2676+ console .log (" \\ n" );
2677+ console .time (" JIT TOTAL" );
2678+ return root ;
2679+ }, async function (root , result ) {
2680+ contextRef .value .length = 0 ;
2681+ var _findAtConfigPath1;
2682+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2683+ // path for the file being processed
2684+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2685+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2686+ if (root .type === " document" ) {
2687+ let roots = root .nodes .filter (node => node .type === " root" );
2688+ for (const root of roots ) {
2689+ if (root .type === " root" ) {
2690+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2691+ }
2692+ }
2693+ return ;
2694+ }
2695+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2696+ }, _sharedState .env .DEBUG && function (root ) {
2697+ console .timeEnd (" JIT TOTAL" );
2698+ console .log (" \\ n" );
2699+ return root ;
2700+ }].filter (Boolean )
2701+ };
2702+ };
2703+ module .exports .postcss = true ;
2704+ module .exports .contextRef = contextRef ;" ,
2705+ " processTailwindFeatures" : " " use strict " ;
2706+
2707+ Object .defineProperty (exports , " __esModule" , {
2708+ value: true
2709+ });
2710+ Object .defineProperty (exports , " default" , {
2711+ enumerable: true ,
2712+ get : function () {
2713+ return processTailwindFeatures ;
2714+ }
2715+ });
2716+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2717+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2718+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2719+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2720+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2721+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2722+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2723+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2724+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2725+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2726+ const _featureFlags = require (" ./featureFlags" );
2727+ function _interop_require_default(obj ) {
2728+ return obj && obj .__esModule ? obj : {
2729+ default : obj
2730+ };
2731+ }
2732+ function processTailwindFeatures(setupContext ) {
2733+ return async function (root , result ) {
2734+ let {
2735+ tailwindDirectives,
2736+ applyDirectives
2737+ } = (0 , _normalizeTailwindDirectives .default )(root );
2738+ // Partition apply rules that are found in the css
2739+ // itself.
2740+ (0 , _partitionApplyAtRules .default )()(root , result );
2741+ let context = setupContext ({
2742+ tailwindDirectives ,
2743+ applyDirectives ,
2744+ registerDependency(dependency ) {
2745+ result .messages .push ({
2746+ plugin: " tailwindcss" ,
2747+ parent: result .opts .from ,
2748+ ... dependency
2749+ });
2750+ },
2751+ createContext(tailwindConfig , changedContent ) {
2752+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2753+ }
2754+ })(root , result );
2755+ if (context .tailwindConfig .separator === " -" ) {
2756+ throw new Error (" The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead." );
2757+ }
2758+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2759+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2760+ // Partition apply rules that are generated by
2761+ // addComponents, addUtilities and so on.
2762+ (0 , _partitionApplyAtRules .default )()(root , result );
2763+ (0 , _expandApplyAtRules .default )(context )(root , result );
2764+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2765+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2766+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2767+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2768+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2769+ return context ;
2770+ };
2771+ }" ,
2772+ }
2773+ ` ;
2774+
2775+ exports [` versions-patch > patch tailwindcss3.4.3 1` ] = `
2776+ {
2777+ " plugin" : " " use strict " ;
2778+
2779+ Object .defineProperty (exports , " __esModule" , {
2780+ value: true
2781+ });
2782+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2783+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2784+ const _sharedState = require (" ./lib/sharedState" );
2785+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2786+ function _interop_require_default(obj ) {
2787+ return obj && obj .__esModule ? obj : {
2788+ default : obj
2789+ };
2790+ }
2791+ const contextRef = {
2792+ value: []
2793+ };
2794+ module .exports = function tailwindcss(configOrPath ) {
2795+ return {
2796+ postcssPlugin: " tailwindcss" ,
2797+ plugins: [_sharedState .env .DEBUG && function (root ) {
2798+ console .log (" \\ n" );
2799+ console .time (" JIT TOTAL" );
2800+ return root ;
2801+ }, async function (root , result ) {
2802+ contextRef .value .length = 0 ;
2803+ var _findAtConfigPath1;
2804+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2805+ // path for the file being processed
2806+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2807+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2808+ if (root .type === " document" ) {
2809+ let roots = root .nodes .filter (node => node .type === " root" );
2810+ for (const root of roots ) {
2811+ if (root .type === " root" ) {
2812+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2813+ }
2814+ }
2815+ return ;
2816+ }
2817+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2818+ }, _sharedState .env .DEBUG && function (root ) {
2819+ console .timeEnd (" JIT TOTAL" );
2820+ console .log (" \\ n" );
2821+ return root ;
2822+ }].filter (Boolean )
2823+ };
2824+ };
2825+ module .exports .postcss = true ;
2826+ module .exports .contextRef = contextRef ;" ,
2827+ " processTailwindFeatures" : " " use strict " ;
2828+
2829+ Object .defineProperty (exports , " __esModule" , {
2830+ value: true
2831+ });
2832+ Object .defineProperty (exports , " default" , {
2833+ enumerable: true ,
2834+ get : function () {
2835+ return processTailwindFeatures ;
2836+ }
2837+ });
2838+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2839+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2840+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2841+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2842+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2843+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2844+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2845+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2846+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2847+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2848+ const _featureFlags = require (" ./featureFlags" );
2849+ function _interop_require_default(obj ) {
2850+ return obj && obj .__esModule ? obj : {
2851+ default : obj
2852+ };
2853+ }
2854+ function processTailwindFeatures(setupContext ) {
2855+ return async function (root , result ) {
2856+ let {
2857+ tailwindDirectives,
2858+ applyDirectives
2859+ } = (0 , _normalizeTailwindDirectives .default )(root );
2860+ // Partition apply rules that are found in the css
2861+ // itself.
2862+ (0 , _partitionApplyAtRules .default )()(root , result );
2863+ let context = setupContext ({
2864+ tailwindDirectives ,
2865+ applyDirectives ,
2866+ registerDependency(dependency ) {
2867+ result .messages .push ({
2868+ plugin: " tailwindcss" ,
2869+ parent: result .opts .from ,
2870+ ... dependency
2871+ });
2872+ },
2873+ createContext(tailwindConfig , changedContent ) {
2874+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2875+ }
2876+ })(root , result );
2877+ if (context .tailwindConfig .separator === " -" ) {
2878+ throw new Error (" The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead." );
2879+ }
2880+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2881+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2882+ // Partition apply rules that are generated by
2883+ // addComponents, addUtilities and so on.
2884+ (0 , _partitionApplyAtRules .default )()(root , result );
2885+ (0 , _expandApplyAtRules .default )(context )(root , result );
2886+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2887+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2888+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2889+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2890+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2891+ return context ;
2892+ };
2893+ }" ,
2894+ }
2895+ ` ;
0 commit comments