@@ -456,7 +456,7 @@ function collectLayerPlugins(root) {
456
456
return layerPlugins
457
457
}
458
458
459
- function resolvePlugins ( context , tailwindDirectives , root ) {
459
+ function resolvePlugins ( context , root ) {
460
460
let corePluginList = Object . entries ( corePlugins )
461
461
. map ( ( [ name , plugin ] ) => {
462
462
if ( ! context . tailwindConfig . corePlugins . includes ( name ) ) {
@@ -475,7 +475,7 @@ function resolvePlugins(context, tailwindDirectives, root) {
475
475
return typeof plugin === 'function' ? plugin : plugin . handler
476
476
} )
477
477
478
- let layerPlugins = collectLayerPlugins ( root , tailwindDirectives )
478
+ let layerPlugins = collectLayerPlugins ( root )
479
479
480
480
// TODO: This is a workaround for backwards compatibility, since custom variants
481
481
// were historically sorted before screen/stackable variants.
@@ -667,12 +667,7 @@ function registerPlugins(plugins, context) {
667
667
}
668
668
}
669
669
670
- export function createContext (
671
- tailwindConfig ,
672
- changedContent = [ ] ,
673
- tailwindDirectives = new Set ( ) ,
674
- root = postcss . root ( )
675
- ) {
670
+ export function createContext ( tailwindConfig , changedContent = [ ] , root = postcss . root ( ) ) {
676
671
let context = {
677
672
disposables : [ ] ,
678
673
ruleCache : new Set ( ) ,
@@ -687,7 +682,7 @@ export function createContext(
687
682
stylesheetCache : null ,
688
683
}
689
684
690
- let resolvedPlugins = resolvePlugins ( context , tailwindDirectives , root )
685
+ let resolvedPlugins = resolvePlugins ( context , root )
691
686
registerPlugins ( resolvedPlugins , context )
692
687
693
688
return context
@@ -698,7 +693,6 @@ let configContextMap = sharedState.configContextMap
698
693
let contextSourcesMap = sharedState . contextSourcesMap
699
694
700
695
export function getContext (
701
- tailwindDirectives ,
702
696
root ,
703
697
result ,
704
698
tailwindConfig ,
@@ -760,7 +754,7 @@ export function getContext(
760
754
761
755
env . DEBUG && console . log ( 'Setting up new context...' )
762
756
763
- let context = createContext ( tailwindConfig , [ ] , tailwindDirectives , root )
757
+ let context = createContext ( tailwindConfig , [ ] , root )
764
758
765
759
trackModified ( [ ...contextDependencies ] , getFileModifiedMap ( context ) )
766
760
0 commit comments