[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`
|
// For Windows compat, prepend the module ID with `/@fs`
|
||||||
pathname: `/@fs${prependForwardSlash(moduleId)}`,
|
pathname: `/@fs${prependForwardSlash(moduleId)}`,
|
||||||
projectRoot: config.root.toString(),
|
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,
|
sourcefile: filename,
|
||||||
sourcemap: 'both',
|
sourcemap: 'both',
|
||||||
internalURL: `/@fs${prependForwardSlash(
|
internalURL: `/@fs${prependForwardSlash(
|
||||||
|
|
|
@ -165,7 +165,9 @@ ${setup}`.trim();
|
||||||
let { code: tsResult } = await transform(astroResult, {
|
let { code: tsResult } = await transform(astroResult, {
|
||||||
pathname: '/@fs' + prependForwardSlash(fileUrl.pathname),
|
pathname: '/@fs' + prependForwardSlash(fileUrl.pathname),
|
||||||
projectRoot: config.root.toString(),
|
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,
|
sourcefile: id,
|
||||||
sourcemap: 'inline',
|
sourcemap: 'inline',
|
||||||
// TODO: baseline flag
|
// TODO: baseline flag
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe('Astro Global', () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/astro-global/',
|
root: './fixtures/astro-global/',
|
||||||
site: 'https://mysite.dev/',
|
site: 'https://mysite.dev/',
|
||||||
base: '/blog'
|
base: '/blog',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ describe('Astro Global Defaults', () => {
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/astro-global/'
|
root: './fixtures/astro-global/',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue