Skip to content

Commit

Permalink
chore: revert debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jul 30, 2024
1 parent 7829fe3 commit 57f48f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ jobs:
if: steps.changed-files.outputs.only_changed != 'true'
run: pnpm run test-unit

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

- name: Test build
if: steps.changed-files.outputs.only_changed != 'true'
Expand Down
5 changes: 2 additions & 3 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ const makeModernCompilerScssWorker = (
const worker: Awaited<ReturnType<typeof makeModernScssWorker>> = {
async run(sassPath, data, options) {
// workaround for windows since import("D:...") fails
const sass: typeof Sass = createRequire(import.meta.url)(sassPath);
const sass: typeof Sass = createRequire(import.meta.url)(sassPath)
compiler ??= await sass.initAsyncCompiler()

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

if (!workerMap.has(options.alias)) {
workerMap.set(
Expand Down Expand Up @@ -2437,7 +2437,6 @@ const scssProcessor = (
}
} catch (e) {
// normalize SASS error
console.error(e);
e.message = `[sass] ${e.message}`
e.id = e.file
e.frame = e.formatted
Expand Down

0 comments on commit 57f48f7

Please sign in to comment.