Skip to content

Commit

Permalink
Import only the actually used PostCSS exports (WordPress#66379)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr authored Oct 29, 2024
1 parent 471900b commit 648c458
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/utils/transform-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* External dependencies
*/
import * as parsel from 'parsel-js';
import postcss, { CssSyntaxError } from 'postcss';
import Processor from 'postcss/lib/processor';
import CssSyntaxError from 'postcss/lib/css-syntax-error';
import prefixSelector from 'postcss-prefix-selector';
import rebaseUrl from 'postcss-urlrebase';

Expand Down Expand Up @@ -100,7 +101,7 @@ function transformStyle(
wrapperSelector,
];

return postcss(
return new Processor(
[
wrapperSelector &&
prefixSelector( {
Expand Down

0 comments on commit 648c458

Please sign in to comment.