We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ad0f01 + 0d52d86 commit 040f006Copy full SHA for 040f006
lib/compileStyle.ts
@@ -62,11 +62,11 @@ export function doCompileStyle(
62
const source = preProcessedSource ? preProcessedSource.code : options.source
63
64
const plugins = (postcssPlugins || []).slice()
65
- if (trim) {
66
- plugins.push(trimPlugin())
67
- }
68
if (scoped) {
69
- plugins.push(scopedPlugin(id))
+ plugins.unshift(scopedPlugin(id))
+ }
+ if (trim) {
+ plugins.unshift(trimPlugin())
70
}
71
72
const postCSSOptions: ProcessOptions = {
0 commit comments