Skip to content

Commit c3ab6a1

Browse files
committed
remove watching context
1 parent b9af5a9 commit c3ab6a1

File tree

4 files changed

+38
-352
lines changed

4 files changed

+38
-352
lines changed

package-lock.json

Lines changed: 36 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@
8585
"postcss-selector-parser": "^6.0.7",
8686
"postcss-value-parser": "^4.2.0",
8787
"quick-lru": "^5.1.1",
88-
"resolve": "^1.20.0",
89-
"tmp": "^0.2.1"
88+
"resolve": "^1.20.0"
9089
},
9190
"browserslist": [
9291
"> 1%",

src/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import setupTrackingContext from './lib/setupTrackingContext'
2-
import setupWatchingContext from './lib/setupWatchingContext'
32
import processTailwindFeatures from './processTailwindFeatures'
43
import { env } from './lib/sharedState'
54

@@ -14,12 +13,7 @@ module.exports = function tailwindcss(configOrPath) {
1413
return root
1514
},
1615
function (root, result) {
17-
let setupContext =
18-
env.TAILWIND_MODE === 'watch'
19-
? setupWatchingContext(configOrPath)
20-
: setupTrackingContext(configOrPath)
21-
22-
processTailwindFeatures(setupContext)(root, result)
16+
processTailwindFeatures(setupTrackingContext(configOrPath))(root, result)
2317
},
2418
env.DEBUG &&
2519
function (root) {

0 commit comments

Comments
 (0)