diff --git a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts index d1a24004e4dd..c370976a7ecb 100644 --- a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts +++ b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts @@ -84,10 +84,10 @@ export function astroContentVirtualModPlugin({ const fileName = params.get('fileName'); let importPath = undefined; 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) { - return await this.resolve(`${importPath}?${CONTENT_RENDER_FLAG}`); + return await this.resolve(`${importPath}?${CONTENT_RENDER_FLAG}`); } } diff --git a/packages/integrations/mdx/test/css-head-mdx.test.js b/packages/integrations/mdx/test/css-head-mdx.test.js index 6e31d972d2de..4d4df5cec402 100644 --- a/packages/integrations/mdx/test/css-head-mdx.test.js +++ b/packages/integrations/mdx/test/css-head-mdx.test.js @@ -15,7 +15,7 @@ describe('Head injection w/ MDX', () => { integrations: [mdx()], // test suite was authored when inlineStylesheets defaulted to never build: { inlineStylesheets: 'never' }, - experimental: { contentLayer: true } + experimental: { contentLayer: true }, }); });