Skip to content

Commit

Permalink
remove watching context
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jan 3, 2022
1 parent b9af5a9 commit c3ab6a1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 352 deletions.
68 changes: 36 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -85,8 +85,7 @@
"postcss-selector-parser": "^6.0.7",
"postcss-value-parser": "^4.2.0",
"quick-lru": "^5.1.1",
"resolve": "^1.20.0",
"tmp": "^0.2.1"
"resolve": "^1.20.0"
},
"browserslist": [
"> 1%",
Expand Down
8 changes: 1 addition & 7 deletions src/index.js
@@ -1,5 +1,4 @@
import setupTrackingContext from './lib/setupTrackingContext'
import setupWatchingContext from './lib/setupWatchingContext'
import processTailwindFeatures from './processTailwindFeatures'
import { env } from './lib/sharedState'

Expand All @@ -14,12 +13,7 @@ module.exports = function tailwindcss(configOrPath) {
return root
},
function (root, result) {
let setupContext =
env.TAILWIND_MODE === 'watch'
? setupWatchingContext(configOrPath)
: setupTrackingContext(configOrPath)

processTailwindFeatures(setupContext)(root, result)
processTailwindFeatures(setupTrackingContext(configOrPath))(root, result)
},
env.DEBUG &&
function (root) {
Expand Down

0 comments on commit c3ab6a1

Please sign in to comment.