Skip to content

Commit 82f4eaa

Browse files
committed
Ignore unknown types when hashing config
1 parent 52e0830 commit 82f4eaa

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/jit/lib/setupContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import path from 'path'
55
import crypto from 'crypto'
66
import chokidar from 'chokidar'
77
import postcss from 'postcss'
8-
import hash from 'object-hash'
98
import dlv from 'dlv'
109
import selectorParser from 'postcss-selector-parser'
1110
import LRU from 'quick-lru'
1211
import normalizePath from 'normalize-path'
1312

13+
import hash from '../../util/hashConfig'
1414
import transformThemeValue from '../../util/transformThemeValue'
1515
import parseObjectStyles from '../../util/parseObjectStyles'
1616
import getModuleDependencies from '../../lib/getModuleDependencies'

src/processTailwindFeatures.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import processPlugins from './util/processPlugins'
1616
import cloneNodes from './util/cloneNodes'
1717
import { issueFlagNotices } from './featureFlags.js'
1818

19-
import hash from 'object-hash'
19+
import hash from './util/hashConfig'
2020
import log from './util/log'
2121
import { shared } from './util/disposables'
2222

src/util/hashConfig.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import hash from 'object-hash'
2+
3+
export default function hashConfig(config) {
4+
return hash(config, { ignoreUnknown: true })
5+
}

0 commit comments

Comments
 (0)