Skip to content

Commit

Permalink
Other: Use the "2021" edition as a default preset for CKEditor 5 file…
Browse files Browse the repository at this point in the history
…s (`postcss-nesting`).
  • Loading branch information
pomek committed Sep 23, 2024
1 parent 3c85828 commit ce3902d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/ckeditor5-dev-build-tools/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export async function getRollupConfig( options: BuildOptions ) {
plugins: [
postcssMixins,
postcssNesting( {
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} )
],
minimize: minify,
Expand Down
3 changes: 2 additions & 1 deletion packages/ckeditor5-dev-utils/lib/styles/getpostcssconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default function getPostCssConfig( options = {} ) {
postCssMixins(),
postCssNesting( {
// https://github.com/ckeditor/ckeditor5/issues/11730
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} ),
themeLogger()
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ describe( 'getPostCssConfig()', () => {
getPostCssConfig();

expect( vi.mocked( postCssNesting ) ).toHaveBeenCalledExactlyOnceWith( {
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} );
} );

Expand Down

0 comments on commit ce3902d

Please sign in to comment.