Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Dec 12, 2023
1 parent 546d92c commit 4137927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/vite-plugin-fileurl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ export default function vitePluginFileURL({}): VitePlugin {
return {
name: 'astro:vite-plugin-file-url',
resolveId(source, importer) {
if(source.startsWith('file://')) {
if (source.startsWith('file://')) {
const rest = source.slice(7);
return this.resolve(rest, importer);
}
}
}
},
};
}
1 change: 0 additions & 1 deletion packages/astro/test/astro-basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ describe('Astro basics', () => {
expect(content2).to.be.ok;
});


it('allows file:// urls as module specifiers', async () => {
const html = await fixture.readFile('/fileurl/index.html');
const $ = cheerio.load(html);
Expand Down

0 comments on commit 4137927

Please sign in to comment.