0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
tony-sull 2022-06-07 21:22:13 +00:00 committed by github-actions[bot]
parent 3eb96a7ab7
commit 47d15870ff
3 changed files with 8 additions and 4 deletions

View file

@ -63,7 +63,9 @@ async function compile({
// For Windows compat, prepend the module ID with `/@fs`
pathname: `/@fs${prependForwardSlash(moduleId)}`,
projectRoot: config.root.toString(),
site: config.site ? new URL(config.base, config.site).toString() : `http://localhost:${config.server.port}/`,
site: config.site
? new URL(config.base, config.site).toString()
: `http://localhost:${config.server.port}/`,
sourcefile: filename,
sourcemap: 'both',
internalURL: `/@fs${prependForwardSlash(

View file

@ -165,7 +165,9 @@ ${setup}`.trim();
let { code: tsResult } = await transform(astroResult, {
pathname: '/@fs' + prependForwardSlash(fileUrl.pathname),
projectRoot: config.root.toString(),
site: config.site ? new URL(config.base, config.site).toString() : `http://localhost:${config.server.port}/`,
site: config.site
? new URL(config.base, config.site).toString()
: `http://localhost:${config.server.port}/`,
sourcefile: id,
sourcemap: 'inline',
// TODO: baseline flag

View file

@ -9,7 +9,7 @@ describe('Astro Global', () => {
fixture = await loadFixture({
root: './fixtures/astro-global/',
site: 'https://mysite.dev/',
base: '/blog'
base: '/blog',
});
});
@ -93,7 +93,7 @@ describe('Astro Global Defaults', () => {
before(async () => {
fixture = await loadFixture({
root: './fixtures/astro-global/'
root: './fixtures/astro-global/',
});
});