Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add region comment #17370

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2046,6 +2046,7 @@ function fixScssBugImportValue(
return data
}

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

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

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

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

return map
}
// #endregion

async function getSource(
source: string,
Expand Down