Skip to content

Commit

Permalink
fix(transformer-directives): enforce pre by default (unocss#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng authored and praburangki committed Jan 12, 2023
1 parent aa88e93 commit fb1bd46
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 fb1bd46

Please sign in to comment.