Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(transformer-directives): enforce pre by default (#1923)
Fixes #1849
  • Loading branch information
sibbng committed Nov 29, 2022
1 parent f48862b commit d2c9c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transformer-directives/src/index.ts
Expand Up @@ -37,7 +37,7 @@ export interface TransformerDirectivesContext {
export default function transformerDirectives(options: TransformerDirectivesOptions = {}): SourceCodeTransformer {
return {
name: 'css-directive',
enforce: options?.enforce,
enforce: options?.enforce || 'pre',
idFilter: id => !!id.match(cssIdRE),
transform: (code, id, ctx) => {
return transformDirectives(code, ctx.uno, options, id)
Expand Down

0 comments on commit d2c9c5a

Please sign in to comment.