Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit e05c229

Browse files
committed
cleanup unused variables
1 parent 4c965b4 commit e05c229

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/index.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const LRU = require('quick-lru')
1010

1111
const resolveConfig = require('tailwindcss/resolveConfig')
1212
const escape = require('tailwindcss/lib/util/escapeClassName').default
13-
const getAllConfigs = require('tailwindcss/lib/util/getAllConfigs').default
1413
const evaluateTailwindFunctions = require('tailwindcss/lib/lib/evaluateTailwindFunctions').default
1514

1615
const corePlugins = require('./corePlugins')
@@ -151,14 +150,7 @@ function* candidatePermutations(prefix, modifier = '') {
151150
}
152151

153152
function generateRules(tailwindConfig, candidates, context) {
154-
let {
155-
componentMap,
156-
utilityMap,
157-
variantMap,
158-
classCache,
159-
notClassCache,
160-
postCssNodeCache,
161-
} = context
153+
let { componentMap, utilityMap, classCache, notClassCache, postCssNodeCache } = context
162154

163155
let layers = {
164156
components: [],
@@ -342,7 +334,7 @@ function rebootTemplateWatcher(context) {
342334
touch(context.touchFile.name)
343335
})
344336

345-
context.watcher.on('change', (path, stats) => {
337+
context.watcher.on('change', (path) => {
346338
context.changedFiles.add('./' + path)
347339
touch(context.touchFile.name)
348340
})
@@ -452,7 +444,7 @@ function registerPlugins(tailwindConfig, plugins, context) {
452444
offsets,
453445
})
454446

455-
for (let pluginName in corePlugins) {
447+
for (let pluginName in plugins) {
456448
let plugin = corePlugins[pluginName]
457449
if (Array.isArray(plugin)) {
458450
for (let pluginItem of plugin) {

0 commit comments

Comments
 (0)