@@ -2038,3 +2038,166 @@ function processTailwindFeatures(setupContext) {
2038
2038
}" ,
2039
2039
}
2040
2040
` ;
2041
+
2042
+ exports [` versions-patch > patch tailwindcss3.3.6 1` ] = `
2043
+ {
2044
+ " plugin" : " " use strict " ;
2045
+
2046
+ Object .defineProperty (exports , " __esModule" , {
2047
+ value: true
2048
+ });
2049
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2050
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2051
+ const _sharedState = require (" ./lib/sharedState" );
2052
+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2053
+ function _interop_require_default(obj ) {
2054
+ return obj && obj .__esModule ? obj : {
2055
+ default : obj
2056
+ };
2057
+ }
2058
+ const contextRef = {
2059
+ value: []
2060
+ };
2061
+ module .exports = function tailwindcss(configOrPath ) {
2062
+ return {
2063
+ postcssPlugin: " tailwindcss" ,
2064
+ plugins: [_sharedState .env .DEBUG && function (root ) {
2065
+ console .log (" \\ n" );
2066
+ console .time (" JIT TOTAL" );
2067
+ return root ;
2068
+ }, async function (root , result ) {
2069
+ contextRef .value .length = 0 ;
2070
+ var _findAtConfigPath1;
2071
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2072
+ // path for the file being processed
2073
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2074
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2075
+ if (root .type === " document" ) {
2076
+ let roots = root .nodes .filter (node => node .type === " root" );
2077
+ for (const root of roots ) {
2078
+ if (root .type === " root" ) {
2079
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2080
+ }
2081
+ }
2082
+ return ;
2083
+ }
2084
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2085
+ }, false && function lightningCssPlugin(_root , result ) {
2086
+ let postcss = require (" postcss" );
2087
+ let lightningcss = require (" lightningcss" );
2088
+ let browserslist = require (" browserslist" );
2089
+ try {
2090
+ let transformed = lightningcss .transform ({
2091
+ filename: result .opts .from ,
2092
+ code: Buffer .from (result .root .toString ()),
2093
+ minify: false ,
2094
+ sourceMap: !! result .map ,
2095
+ inputSourceMap: result .map ? result .map .toString () : undefined ,
2096
+ targets: typeof process !== " undefined" && process .env .JEST_WORKER_ID ? {
2097
+ chrome: 106 << 16
2098
+ } : lightningcss .browserslistToTargets (browserslist (require (" ../package.json" ).browserslist )),
2099
+ drafts: {
2100
+ nesting: true ,
2101
+ customMedia: true
2102
+ }
2103
+ });
2104
+ var _result_map;
2105
+ result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
2106
+ toJSON() {
2107
+ return transformed .map .toJSON ();
2108
+ },
2109
+ toString() {
2110
+ return transformed .map .toString ();
2111
+ }
2112
+ });
2113
+ result .root = postcss .parse (transformed .code .toString (" utf8" ));
2114
+ } catch (err ) {
2115
+ if (typeof process !== " undefined" && process .env .JEST_WORKER_ID ) {
2116
+ let lines = err .source .split (" \\ n" );
2117
+ 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" ));
2118
+ }
2119
+ if (Error .captureStackTrace ) {
2120
+ Error .captureStackTrace (err , lightningCssPlugin );
2121
+ }
2122
+ throw err ;
2123
+ }
2124
+ }, _sharedState .env .DEBUG && function (root ) {
2125
+ console .timeEnd (" JIT TOTAL" );
2126
+ console .log (" \\ n" );
2127
+ return root ;
2128
+ }].filter (Boolean )
2129
+ };
2130
+ };
2131
+ module .exports .postcss = true ;
2132
+ module .exports .contextRef = contextRef ;" ,
2133
+ " processTailwindFeatures" : " " use strict " ;
2134
+
2135
+ Object .defineProperty (exports , " __esModule" , {
2136
+ value: true
2137
+ });
2138
+ Object .defineProperty (exports , " default" , {
2139
+ enumerable: true ,
2140
+ get : function () {
2141
+ return processTailwindFeatures ;
2142
+ }
2143
+ });
2144
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2145
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2146
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2147
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2148
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2149
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2150
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2151
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2152
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2153
+ const _detectNesting = /* #__PURE__*/ _interop_require_default (require (" ./lib/detectNesting" ));
2154
+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2155
+ const _featureFlags = require (" ./featureFlags" );
2156
+ function _interop_require_default(obj ) {
2157
+ return obj && obj .__esModule ? obj : {
2158
+ default : obj
2159
+ };
2160
+ }
2161
+ function processTailwindFeatures(setupContext ) {
2162
+ return async function (root , result ) {
2163
+ let {
2164
+ tailwindDirectives,
2165
+ applyDirectives
2166
+ } = (0 , _normalizeTailwindDirectives .default )(root );
2167
+ (0 , _detectNesting .default )()(root , result );
2168
+ // Partition apply rules that are found in the css
2169
+ // itself.
2170
+ (0 , _partitionApplyAtRules .default )()(root , result );
2171
+ let context = setupContext ({
2172
+ tailwindDirectives ,
2173
+ applyDirectives ,
2174
+ registerDependency(dependency ) {
2175
+ result .messages .push ({
2176
+ plugin: " tailwindcss" ,
2177
+ parent: result .opts .from ,
2178
+ ... dependency
2179
+ });
2180
+ },
2181
+ createContext(tailwindConfig , changedContent ) {
2182
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2183
+ }
2184
+ })(root , result );
2185
+ if (context .tailwindConfig .separator === " -" ) {
2186
+ 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." );
2187
+ }
2188
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2189
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2190
+ // Partition apply rules that are generated by
2191
+ // addComponents, addUtilities and so on.
2192
+ (0 , _partitionApplyAtRules .default )()(root , result );
2193
+ (0 , _expandApplyAtRules .default )(context )(root , result );
2194
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2195
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2196
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2197
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2198
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2199
+ return context ;
2200
+ };
2201
+ }" ,
2202
+ }
2203
+ ` ;
0 commit comments