0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Matt Kane 2024-09-18 14:16:40 +00:00 committed by astrobot-houston
parent 53cb41e30e
commit 8d4eb95086
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ export function astroContentVirtualModPlugin({
const fileName = params.get('fileName'); const fileName = params.get('fileName');
let importPath = undefined; let importPath = undefined;
if (fileName && URL.canParse(fileName, settings.config.root.toString())) { if (fileName && URL.canParse(fileName, settings.config.root.toString())) {
importPath = fileURLToPath(new URL(fileName, settings.config.root)) importPath = fileURLToPath(new URL(fileName, settings.config.root));
} }
if (importPath) { if (importPath) {
return await this.resolve(`${importPath}?${CONTENT_RENDER_FLAG}`); return await this.resolve(`${importPath}?${CONTENT_RENDER_FLAG}`);

View file

@ -15,7 +15,7 @@ describe('Head injection w/ MDX', () => {
integrations: [mdx()], integrations: [mdx()],
// test suite was authored when inlineStylesheets defaulted to never // test suite was authored when inlineStylesheets defaulted to never
build: { inlineStylesheets: 'never' }, build: { inlineStylesheets: 'never' },
experimental: { contentLayer: true } experimental: { contentLayer: true },
}); });
}); });