Skip to content

Commit

Permalink
chore: add region comment (#17370)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Jun 3, 2024
1 parent b3f5bd1 commit a8c7083
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,7 @@ function fixScssBugImportValue(
return data
}

// #region Sass
// .scss/.sass processor
const makeScssWorker = (
resolvers: CSSAtImportResolvers,
Expand Down Expand Up @@ -2222,6 +2223,7 @@ const scssProcessor = (
},
}
}
// #endregion

/**
* relative url() inside \@imported sass and less files must be rebased to use
Expand Down Expand Up @@ -2291,6 +2293,7 @@ async function rebaseUrls(
}
}

// #region Less
// .less
const makeLessWorker = (
resolvers: CSSAtImportResolvers,
Expand Down Expand Up @@ -2480,7 +2483,9 @@ const lessProcessor = (maxWorkers: number | undefined): StylePreprocessor => {
},
}
}
// #endregion

// #region Stylus
// .styl
const makeStylWorker = (maxWorkers: number | undefined) => {
const worker = new WorkerWithFallback(
Expand Down Expand Up @@ -2609,6 +2614,7 @@ function formatStylusSourceMap(

return map
}
// #endregion

async function getSource(
source: string,
Expand Down

0 comments on commit a8c7083

Please sign in to comment.