Skip to content

Commit

Permalink
Ignore unknown types when hashing config
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed May 6, 2021
1 parent 52e0830 commit 82f4eaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jit/lib/setupContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import path from 'path'
import crypto from 'crypto'
import chokidar from 'chokidar'
import postcss from 'postcss'
import hash from 'object-hash'
import dlv from 'dlv'
import selectorParser from 'postcss-selector-parser'
import LRU from 'quick-lru'
import normalizePath from 'normalize-path'

import hash from '../../util/hashConfig'
import transformThemeValue from '../../util/transformThemeValue'
import parseObjectStyles from '../../util/parseObjectStyles'
import getModuleDependencies from '../../lib/getModuleDependencies'
Expand Down
2 changes: 1 addition & 1 deletion src/processTailwindFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import processPlugins from './util/processPlugins'
import cloneNodes from './util/cloneNodes'
import { issueFlagNotices } from './featureFlags.js'

import hash from 'object-hash'
import hash from './util/hashConfig'
import log from './util/log'
import { shared } from './util/disposables'

Expand Down
5 changes: 5 additions & 0 deletions src/util/hashConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import hash from 'object-hash'

export default function hashConfig(config) {
return hash(config, { ignoreUnknown: true })
}

0 comments on commit 82f4eaa

Please sign in to comment.