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.
1 parent c494c69 commit 0d52d86Copy full SHA for 0d52d86
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