diff --git a/bin/packages/build-worker.js b/bin/packages/build-worker.js index 31e5c3bb17ed8..c3ed399bb08fa 100644 --- a/bin/packages/build-worker.js +++ b/bin/packages/build-worker.js @@ -110,9 +110,10 @@ const BUILD_TASK_BY_EXTENSION = { ] // Editor styles should be excluded from the default CSS vars output. .concat( - file.includes( 'editor-styles.scss' ) - ? [] - : [ 'default-custom-properties' ] + file.includes( 'common.scss' ) || + ! file.includes( 'block-library' ) + ? [ 'default-custom-properties' ] + : [] ) .map( ( imported ) => `@import "${ imported }";` ) .join( ' ' ) + contents,