Skip to content

Commit

Permalink
fix: check file:// not file:
Browse files Browse the repository at this point in the history
Co-authored-by: patak <583075+patak-dev@users.noreply.github.com>
  • Loading branch information
hi-ogawa and patak-dev committed Aug 21, 2024
1 parent e4babed commit 67d0bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ function createCSSResolvers(config: ResolvedConfig): CSSAtImportResolvers {
})
sassResolve = async (...args) => {
const id = args[0]
if (id.startsWith('file:')) {
if (id.startsWith('file://')) {
const fileUrl = new URL(id)
if (fs.existsSync(fileUrl)) {
return fileURLToPath(fileUrl)
Expand Down

0 comments on commit 67d0bb4

Please sign in to comment.