Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 57f48f7

Browse files
committedJul 30, 2024··
chore: revert debug
1 parent 7829fe3 commit 57f48f7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ jobs:
118118
if: steps.changed-files.outputs.only_changed != 'true'
119119
run: pnpm run test-unit
120120

121-
# - name: Test serve
122-
# if: steps.changed-files.outputs.only_changed != 'true'
123-
# run: pnpm run test-serve
121+
- name: Test serve
122+
if: steps.changed-files.outputs.only_changed != 'true'
123+
run: pnpm run test-serve
124124

125125
- name: Test build
126126
if: steps.changed-files.outputs.only_changed != 'true'

‎packages/vite/src/node/plugins/css.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ const makeModernCompilerScssWorker = (
23112311
const worker: Awaited<ReturnType<typeof makeModernScssWorker>> = {
23122312
async run(sassPath, data, options) {
23132313
// workaround for windows since import("D:...") fails
2314-
const sass: typeof Sass = createRequire(import.meta.url)(sassPath);
2314+
const sass: typeof Sass = createRequire(import.meta.url)(sassPath)
23152315
compiler ??= await sass.initAsyncCompiler()
23162316

23172317
const sassOptions = { ...options } as Sass.StringOptions<'async'>
@@ -2393,7 +2393,7 @@ const scssProcessor = (
23932393
const sassPackage = loadSassPackage(root)
23942394
// TODO: change default in v6
23952395
// options.api ?? sassPackage.name === "sass-embedded" ? "modern-compiler" : "modern";
2396-
let api = options.api ?? 'legacy'
2396+
const api = options.api ?? 'legacy'
23972397

23982398
if (!workerMap.has(options.alias)) {
23992399
workerMap.set(
@@ -2437,7 +2437,6 @@ const scssProcessor = (
24372437
}
24382438
} catch (e) {
24392439
// normalize SASS error
2440-
console.error(e);
24412440
e.message = `[sass] ${e.message}`
24422441
e.id = e.file
24432442
e.frame = e.formatted

0 commit comments

Comments
 (0)
Please sign in to comment.