Skip to content

Commit 07223d8

Browse files
committed
Enable shadowLookup by default
1 parent 95f1d90 commit 07223d8

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

__tests__/applyAtRule.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,7 @@ test('you can apply utility classes that do not actually exist as long as they w
182182
.foo { margin-top: 1rem; }
183183
`
184184

185-
const config = {
186-
...defaultConfig,
187-
experiments: { shadowLookup: true },
188-
}
189-
190-
return run(input, config).then(result => {
185+
return run(input).then(result => {
191186
expect(result.css).toEqual(expected)
192187
expect(result.warnings().length).toBe(0)
193188
})

src/lib/substituteClassApplyAtRules.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ function findClass(classToApply, classTable, shadowLookup, onError) {
5959
export default function(config, generatedUtilities) {
6060
return function(css) {
6161
const classLookup = buildClassTable(css)
62-
const shadowLookup = _.get(config, 'experiments.shadowLookup', false)
63-
? buildShadowTable(generatedUtilities)
64-
: {}
62+
const shadowLookup = buildShadowTable(generatedUtilities)
6563

6664
css.walkRules(rule => {
6765
rule.walkAtRules('apply', atRule => {

0 commit comments

Comments
 (0)