[ci] format
This commit is contained in:
parent
0752cf3688
commit
f36bce043f
2 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ export async function runHookConfigSetup({
|
||||||
throw new Error(`Renderer ${bold(renderer.name)} does not provide a serverEntrypoint.`);
|
throw new Error(`Renderer ${bold(renderer.name)} does not provide a serverEntrypoint.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(renderer.name === 'astro:jsx') {
|
if (renderer.name === 'astro:jsx') {
|
||||||
astroJSXRenderer = renderer;
|
astroJSXRenderer = renderer;
|
||||||
} else {
|
} else {
|
||||||
updatedSettings.renderers.push(renderer);
|
updatedSettings.renderers.push(renderer);
|
||||||
|
@ -180,7 +180,7 @@ export async function runHookConfigSetup({
|
||||||
}
|
}
|
||||||
|
|
||||||
// The astro:jsx renderer should come last, to not interfere with others.
|
// The astro:jsx renderer should come last, to not interfere with others.
|
||||||
if(astroJSXRenderer) {
|
if (astroJSXRenderer) {
|
||||||
updatedSettings.renderers.push(astroJSXRenderer);
|
updatedSettings.renderers.push(astroJSXRenderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { loadFixture } from '../../../astro/test/test-utils.js';
|
||||||
function hookError() {
|
function hookError() {
|
||||||
const error = console.error;
|
const error = console.error;
|
||||||
const errors = [];
|
const errors = [];
|
||||||
console.error = function(...args) {
|
console.error = function (...args) {
|
||||||
errors.push(args);
|
errors.push(args);
|
||||||
};
|
};
|
||||||
return () => {
|
return () => {
|
||||||
|
|
Loading…
Reference in a new issue