Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and actions-user committed Jan 28, 2022
1 parent 69d5b70 commit 0a112e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/vite-plugin-astro/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function compile(config: AstroConfig, filename: string, source: string, vi
let prefix = '';
// In the static build, strip away at-imports so that they can be resolved
// by the pseudo-module that gets created.
if(config.buildOptions.experimentalStaticBuild) {
if (config.buildOptions.experimentalStaticBuild) {
value = value.replace(/(?:@import)\s(?:url\()?\s?["\'](.*?)["\']\s?\)?(?:[^;]*);?/gi, (match) => {
prefix += match;
// Replace with an empty string of the same length, to preserve source maps.
Expand All @@ -79,7 +79,7 @@ async function compile(config: AstroConfig, filename: string, source: string, vi
map = result.map.toString();
}
}
const code = prefix += result.code;
const code = (prefix += result.code);
return { code, map };
} catch (err) {
// save error to throw in plugin context
Expand Down

0 comments on commit 0a112e1

Please sign in to comment.