diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index 47276079f9e224..bbb992c0cdc398 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -2046,6 +2046,7 @@ function fixScssBugImportValue( return data } +// #region Sass // .scss/.sass processor const makeScssWorker = ( resolvers: CSSAtImportResolvers, @@ -2217,6 +2218,7 @@ const scssProcessor = ( }, } } +// #endregion /** * relative url() inside \@imported sass and less files must be rebased to use @@ -2286,6 +2288,7 @@ async function rebaseUrls( } } +// #region Less // .less const makeLessWorker = ( resolvers: CSSAtImportResolvers, @@ -2475,7 +2478,9 @@ const lessProcessor = (maxWorkers: number | undefined): StylePreprocessor => { }, } } +// #endregion +// #region Stylus // .styl const makeStylWorker = (maxWorkers: number | undefined) => { const worker = new WorkerWithFallback( @@ -2604,6 +2609,7 @@ function formatStylusSourceMap( return map } +// #endregion async function getSource( source: string,