Skip to content

Commit

Permalink
Enable shadowLookup by default
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Sep 21, 2018
1 parent 95f1d90 commit 07223d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions __tests__/applyAtRule.test.js
Expand Up @@ -182,12 +182,7 @@ test('you can apply utility classes that do not actually exist as long as they w
.foo { margin-top: 1rem; }
`

const config = {
...defaultConfig,
experiments: { shadowLookup: true },
}

return run(input, config).then(result => {
return run(input).then(result => {
expect(result.css).toEqual(expected)
expect(result.warnings().length).toBe(0)
})
Expand Down
4 changes: 1 addition & 3 deletions src/lib/substituteClassApplyAtRules.js
Expand Up @@ -59,9 +59,7 @@ function findClass(classToApply, classTable, shadowLookup, onError) {
export default function(config, generatedUtilities) {
return function(css) {
const classLookup = buildClassTable(css)
const shadowLookup = _.get(config, 'experiments.shadowLookup', false)
? buildShadowTable(generatedUtilities)
: {}
const shadowLookup = buildShadowTable(generatedUtilities)

css.walkRules(rule => {
rule.walkAtRules('apply', atRule => {
Expand Down

0 comments on commit 07223d8

Please sign in to comment.