Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gluck committed Oct 19, 2021
1 parent 0f8b0b3 commit 20f34e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/vite/package.json
@@ -1,6 +1,6 @@
{
"name": "browser-vite",
"version": "2.5.3-browser.13",
"version": "2.5.3-browser.15",
"license": "MIT",
"author": "Evan You",
"description": "Native-ESM powered web dev build tool",
Expand Down
6 changes: 3 additions & 3 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -1018,9 +1018,9 @@ const scss: SassStylePreprocessor = async (
}
resolvers.sass(url, importer).then((resolved) => {
if (resolved) {
rebaseUrls(resolved, options.filename, options.alias)
.then(done)
.catch(done)
// BROWSER VITE patch: fix https://github.com/vitejs/vite/issues/5337
const file = path.resolve(resolved);
done({file, contents: fs.readFileSync(file, 'utf-8')})
} else {
done(null)
}
Expand Down

0 comments on commit 20f34e3

Please sign in to comment.