@@ -3137,3 +3137,125 @@ function processTailwindFeatures(setupContext) {
3137
3137
}" ,
3138
3138
}
3139
3139
` ;
3140
+
3141
+ exports [` versions-patch > patch tailwindcss3.4.6 1` ] = `
3142
+ {
3143
+ " plugin" : " " use strict " ;
3144
+
3145
+ Object .defineProperty (exports , " __esModule" , {
3146
+ value: true
3147
+ });
3148
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
3149
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
3150
+ const _sharedState = require (" ./lib/sharedState" );
3151
+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
3152
+ function _interop_require_default(obj ) {
3153
+ return obj && obj .__esModule ? obj : {
3154
+ default : obj
3155
+ };
3156
+ }
3157
+ const contextRef = {
3158
+ value: []
3159
+ };
3160
+ module .exports = function tailwindcss(configOrPath ) {
3161
+ return {
3162
+ postcssPlugin: " tailwindcss" ,
3163
+ plugins: [_sharedState .env .DEBUG && function (root ) {
3164
+ console .log (" \\ n" );
3165
+ console .time (" JIT TOTAL" );
3166
+ return root ;
3167
+ }, async function (root , result ) {
3168
+ contextRef .value .length = 0 ;
3169
+ var _findAtConfigPath1;
3170
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
3171
+ // path for the file being processed
3172
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
3173
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
3174
+ if (root .type === " document" ) {
3175
+ let roots = root .nodes .filter (node => node .type === " root" );
3176
+ for (const root of roots ) {
3177
+ if (root .type === " root" ) {
3178
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
3179
+ }
3180
+ }
3181
+ return ;
3182
+ }
3183
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
3184
+ }, _sharedState .env .DEBUG && function (root ) {
3185
+ console .timeEnd (" JIT TOTAL" );
3186
+ console .log (" \\ n" );
3187
+ return root ;
3188
+ }].filter (Boolean )
3189
+ };
3190
+ };
3191
+ module .exports .postcss = true ;
3192
+ module .exports .contextRef = contextRef ;" ,
3193
+ " processTailwindFeatures" : " " use strict " ;
3194
+
3195
+ Object .defineProperty (exports , " __esModule" , {
3196
+ value: true
3197
+ });
3198
+ Object .defineProperty (exports , " default" , {
3199
+ enumerable: true ,
3200
+ get : function () {
3201
+ return processTailwindFeatures ;
3202
+ }
3203
+ });
3204
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
3205
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
3206
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
3207
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
3208
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
3209
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
3210
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
3211
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
3212
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
3213
+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
3214
+ const _featureFlags = require (" ./featureFlags" );
3215
+ function _interop_require_default(obj ) {
3216
+ return obj && obj .__esModule ? obj : {
3217
+ default : obj
3218
+ };
3219
+ }
3220
+ function processTailwindFeatures(setupContext ) {
3221
+ return async function (root , result ) {
3222
+ let {
3223
+ tailwindDirectives,
3224
+ applyDirectives
3225
+ } = (0 , _normalizeTailwindDirectives .default )(root );
3226
+ // Partition apply rules that are found in the css
3227
+ // itself.
3228
+ (0 , _partitionApplyAtRules .default )()(root , result );
3229
+ let context = setupContext ({
3230
+ tailwindDirectives ,
3231
+ applyDirectives ,
3232
+ registerDependency(dependency ) {
3233
+ result .messages .push ({
3234
+ plugin: " tailwindcss" ,
3235
+ parent: result .opts .from ,
3236
+ ... dependency
3237
+ });
3238
+ },
3239
+ createContext(tailwindConfig , changedContent ) {
3240
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
3241
+ }
3242
+ })(root , result );
3243
+ if (context .tailwindConfig .separator === " -" ) {
3244
+ 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." );
3245
+ }
3246
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
3247
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
3248
+ // Partition apply rules that are generated by
3249
+ // addComponents, addUtilities and so on.
3250
+ (0 , _partitionApplyAtRules .default )()(root , result );
3251
+ (0 , _expandApplyAtRules .default )(context )(root , result );
3252
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
3253
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
3254
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
3255
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
3256
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
3257
+ return context ;
3258
+ };
3259
+ }" ,
3260
+ }
3261
+ ` ;
0 commit comments