@@ -1875,3 +1875,166 @@ function processTailwindFeatures(setupContext) {
1875
1875
}" ,
1876
1876
}
1877
1877
` ;
1878
+
1879
+ exports [` versions-patch > patch tailwindcss3.3.5 1` ] = `
1880
+ {
1881
+ " plugin" : " \\ " use strict \\" ;
1882
+
1883
+ Object .defineProperty (exports , \\" __esModule\\ " , {
1884
+ value: true
1885
+ });
1886
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/setupTrackingContext\\ " ));
1887
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (\\" ./processTailwindFeatures\\ " ));
1888
+ const _sharedState = require (\\" ./lib/sharedState\\ " );
1889
+ const _findAtConfigPath = require (\\" ./lib/findAtConfigPath\\ " );
1890
+ function _interop_require_default(obj ) {
1891
+ return obj && obj .__esModule ? obj : {
1892
+ default : obj
1893
+ };
1894
+ }
1895
+ const contextRef = {
1896
+ value: []
1897
+ };
1898
+ module .exports = function tailwindcss(configOrPath ) {
1899
+ return {
1900
+ postcssPlugin: \\" tailwindcss\\ " ,
1901
+ plugins: [_sharedState .env .DEBUG && function (root ) {
1902
+ console .log (\\" \\\\ n\\ " );
1903
+ console .time (\\" JIT TOTAL\\ " );
1904
+ return root ;
1905
+ }, async function (root , result ) {
1906
+ contextRef .value .length = 0 ;
1907
+ var _findAtConfigPath1;
1908
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
1909
+ // path for the file being processed
1910
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
1911
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
1912
+ if (root .type === \\" document\\ " ) {
1913
+ let roots = root .nodes .filter (node => node .type === \\" root\\ " );
1914
+ for (const root of roots ) {
1915
+ if (root .type === \\" root\\ " ) {
1916
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
1917
+ }
1918
+ }
1919
+ return ;
1920
+ }
1921
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
1922
+ }, false && function lightningCssPlugin(_root , result ) {
1923
+ let postcss = require (\\" postcss\\ " );
1924
+ let lightningcss = require (\\" lightningcss\\ " );
1925
+ let browserslist = require (\\" browserslist\\ " );
1926
+ try {
1927
+ let transformed = lightningcss .transform ({
1928
+ filename: result .opts .from ,
1929
+ code: Buffer .from (result .root .toString ()),
1930
+ minify: false ,
1931
+ sourceMap: !! result .map ,
1932
+ inputSourceMap: result .map ? result .map .toString () : undefined ,
1933
+ targets: typeof process !== \\" undefined\\ " && process .env .JEST_WORKER_ID ? {
1934
+ chrome: 106 << 16
1935
+ } : lightningcss .browserslistToTargets (browserslist (require (\\" ../package.json\\ " ).browserslist )),
1936
+ drafts: {
1937
+ nesting: true ,
1938
+ customMedia: true
1939
+ }
1940
+ });
1941
+ var _result_map;
1942
+ result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
1943
+ toJSON() {
1944
+ return transformed .map .toJSON ();
1945
+ },
1946
+ toString() {
1947
+ return transformed .map .toString ();
1948
+ }
1949
+ });
1950
+ result .root = postcss .parse (transformed .code .toString (\\" utf8\\ " ));
1951
+ } catch (err ) {
1952
+ if (typeof process !== \\" undefined\\ " && process .env .JEST_WORKER_ID ) {
1953
+ let lines = err .source .split (\\" \\\\ n\\ " );
1954
+ 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\\ " ));
1955
+ }
1956
+ if (Error .captureStackTrace ) {
1957
+ Error .captureStackTrace (err , lightningCssPlugin );
1958
+ }
1959
+ throw err ;
1960
+ }
1961
+ }, _sharedState .env .DEBUG && function (root ) {
1962
+ console .timeEnd (\\" JIT TOTAL\\ " );
1963
+ console .log (\\" \\\\ n\\ " );
1964
+ return root ;
1965
+ }].filter (Boolean )
1966
+ };
1967
+ };
1968
+ module .exports .postcss = true ;
1969
+ module .exports .contextRef = contextRef ;" ,
1970
+ " processTailwindFeatures" : " \\ " use strict \\" ;
1971
+
1972
+ Object .defineProperty (exports , \\" __esModule\\ " , {
1973
+ value: true
1974
+ });
1975
+ Object .defineProperty (exports , \\" default\\ " , {
1976
+ enumerable: true ,
1977
+ get : function () {
1978
+ return processTailwindFeatures ;
1979
+ }
1980
+ });
1981
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/normalizeTailwindDirectives\\ " ));
1982
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/expandTailwindAtRules\\ " ));
1983
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/expandApplyAtRules\\ " ));
1984
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/evaluateTailwindFunctions\\ " ));
1985
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/substituteScreenAtRules\\ " ));
1986
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/resolveDefaultsAtRules\\ " ));
1987
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/collapseAdjacentRules\\ " ));
1988
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/collapseDuplicateDeclarations\\ " ));
1989
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/partitionApplyAtRules\\ " ));
1990
+ const _detectNesting = /* #__PURE__*/ _interop_require_default (require (\\" ./lib/detectNesting\\ " ));
1991
+ const _setupContextUtils = require (\\" ./lib/setupContextUtils\\ " );
1992
+ const _featureFlags = require (\\" ./featureFlags\\ " );
1993
+ function _interop_require_default(obj ) {
1994
+ return obj && obj .__esModule ? obj : {
1995
+ default : obj
1996
+ };
1997
+ }
1998
+ function processTailwindFeatures(setupContext ) {
1999
+ return async function (root , result ) {
2000
+ let {
2001
+ tailwindDirectives,
2002
+ applyDirectives
2003
+ } = (0 , _normalizeTailwindDirectives .default )(root );
2004
+ (0 , _detectNesting .default )()(root , result );
2005
+ // Partition apply rules that are found in the css
2006
+ // itself.
2007
+ (0 , _partitionApplyAtRules .default )()(root , result );
2008
+ let context = setupContext ({
2009
+ tailwindDirectives ,
2010
+ applyDirectives ,
2011
+ registerDependency(dependency ) {
2012
+ result .messages .push ({
2013
+ plugin: \\" tailwindcss\\ " ,
2014
+ parent: result .opts .from ,
2015
+ ... dependency
2016
+ });
2017
+ },
2018
+ createContext(tailwindConfig , changedContent ) {
2019
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2020
+ }
2021
+ })(root , result );
2022
+ if (context .tailwindConfig .separator === \\" -\\ " ) {
2023
+ 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.\\ " );
2024
+ }
2025
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2026
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2027
+ // Partition apply rules that are generated by
2028
+ // addComponents, addUtilities and so on.
2029
+ (0 , _partitionApplyAtRules .default )()(root , result );
2030
+ (0 , _expandApplyAtRules .default )(context )(root , result );
2031
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2032
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2033
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2034
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2035
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2036
+ return context ;
2037
+ };
2038
+ }" ,
2039
+ }
2040
+ ` ;
0 commit comments