mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
3eb96a7ab7
commit
47d15870ff
3 changed files with 8 additions and 4 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/',
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue