@@ -2527,3 +2527,166 @@ function processTailwindFeatures(setupContext) {
2527
2527
}" ,
2528
2528
}
2529
2529
` ;
2530
+
2531
+ exports [` versions-patch > patch tailwindcss3.4.1 1` ] = `
2532
+ {
2533
+ " plugin" : " " use strict " ;
2534
+
2535
+ Object .defineProperty (exports , " __esModule" , {
2536
+ value: true
2537
+ });
2538
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2539
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2540
+ const _sharedState = require (" ./lib/sharedState" );
2541
+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2542
+ function _interop_require_default(obj ) {
2543
+ return obj && obj .__esModule ? obj : {
2544
+ default : obj
2545
+ };
2546
+ }
2547
+ const contextRef = {
2548
+ value: []
2549
+ };
2550
+ module .exports = function tailwindcss(configOrPath ) {
2551
+ return {
2552
+ postcssPlugin: " tailwindcss" ,
2553
+ plugins: [_sharedState .env .DEBUG && function (root ) {
2554
+ console .log (" \\ n" );
2555
+ console .time (" JIT TOTAL" );
2556
+ return root ;
2557
+ }, async function (root , result ) {
2558
+ contextRef .value .length = 0 ;
2559
+ var _findAtConfigPath1;
2560
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2561
+ // path for the file being processed
2562
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2563
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2564
+ if (root .type === " document" ) {
2565
+ let roots = root .nodes .filter (node => node .type === " root" );
2566
+ for (const root of roots ) {
2567
+ if (root .type === " root" ) {
2568
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2569
+ }
2570
+ }
2571
+ return ;
2572
+ }
2573
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2574
+ }, false && function lightningCssPlugin(_root , result ) {
2575
+ let postcss = require (" postcss" );
2576
+ let lightningcss = require (" lightningcss" );
2577
+ let browserslist = require (" browserslist" );
2578
+ try {
2579
+ let transformed = lightningcss .transform ({
2580
+ filename: result .opts .from ,
2581
+ code: Buffer .from (result .root .toString ()),
2582
+ minify: false ,
2583
+ sourceMap: !! result .map ,
2584
+ inputSourceMap: result .map ? result .map .toString () : undefined ,
2585
+ targets: typeof process !== " undefined" && process .env .JEST_WORKER_ID ? {
2586
+ chrome: 106 << 16
2587
+ } : lightningcss .browserslistToTargets (browserslist (require (" ../package.json" ).browserslist )),
2588
+ drafts: {
2589
+ nesting: true ,
2590
+ customMedia: true
2591
+ }
2592
+ });
2593
+ var _result_map;
2594
+ result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
2595
+ toJSON() {
2596
+ return transformed .map .toJSON ();
2597
+ },
2598
+ toString() {
2599
+ return transformed .map .toString ();
2600
+ }
2601
+ });
2602
+ result .root = postcss .parse (transformed .code .toString (" utf8" ));
2603
+ } catch (err ) {
2604
+ if (typeof process !== " undefined" && process .env .JEST_WORKER_ID ) {
2605
+ let lines = err .source .split (" \\ n" );
2606
+ 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" ));
2607
+ }
2608
+ if (Error .captureStackTrace ) {
2609
+ Error .captureStackTrace (err , lightningCssPlugin );
2610
+ }
2611
+ throw err ;
2612
+ }
2613
+ }, _sharedState .env .DEBUG && function (root ) {
2614
+ console .timeEnd (" JIT TOTAL" );
2615
+ console .log (" \\ n" );
2616
+ return root ;
2617
+ }].filter (Boolean )
2618
+ };
2619
+ };
2620
+ module .exports .postcss = true ;
2621
+ module .exports .contextRef = contextRef ;" ,
2622
+ " processTailwindFeatures" : " " use strict " ;
2623
+
2624
+ Object .defineProperty (exports , " __esModule" , {
2625
+ value: true
2626
+ });
2627
+ Object .defineProperty (exports , " default" , {
2628
+ enumerable: true ,
2629
+ get : function () {
2630
+ return processTailwindFeatures ;
2631
+ }
2632
+ });
2633
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2634
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2635
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2636
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2637
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2638
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2639
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2640
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2641
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2642
+ const _detectNesting = /* #__PURE__*/ _interop_require_default (require (" ./lib/detectNesting" ));
2643
+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2644
+ const _featureFlags = require (" ./featureFlags" );
2645
+ function _interop_require_default(obj ) {
2646
+ return obj && obj .__esModule ? obj : {
2647
+ default : obj
2648
+ };
2649
+ }
2650
+ function processTailwindFeatures(setupContext ) {
2651
+ return async function (root , result ) {
2652
+ let {
2653
+ tailwindDirectives,
2654
+ applyDirectives
2655
+ } = (0 , _normalizeTailwindDirectives .default )(root );
2656
+ (0 , _detectNesting .default )()(root , result );
2657
+ // Partition apply rules that are found in the css
2658
+ // itself.
2659
+ (0 , _partitionApplyAtRules .default )()(root , result );
2660
+ let context = setupContext ({
2661
+ tailwindDirectives ,
2662
+ applyDirectives ,
2663
+ registerDependency(dependency ) {
2664
+ result .messages .push ({
2665
+ plugin: " tailwindcss" ,
2666
+ parent: result .opts .from ,
2667
+ ... dependency
2668
+ });
2669
+ },
2670
+ createContext(tailwindConfig , changedContent ) {
2671
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2672
+ }
2673
+ })(root , result );
2674
+ if (context .tailwindConfig .separator === " -" ) {
2675
+ 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." );
2676
+ }
2677
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2678
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2679
+ // Partition apply rules that are generated by
2680
+ // addComponents, addUtilities and so on.
2681
+ (0 , _partitionApplyAtRules .default )()(root , result );
2682
+ (0 , _expandApplyAtRules .default )(context )(root , result );
2683
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2684
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2685
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2686
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2687
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2688
+ return context ;
2689
+ };
2690
+ }" ,
2691
+ }
2692
+ ` ;
0 commit comments