[ci] yarn format
This commit is contained in:
parent
a7e66666e4
commit
ed83424fdb
2 changed files with 2 additions and 4 deletions
|
@ -86,7 +86,7 @@ export function setupBuild(Suite, fixturePath) {
|
||||||
context.build = () => astroBuild(astroConfig, { level: 'error', dest: process.stderr });
|
context.build = () => astroBuild(astroConfig, { level: 'error', dest: process.stderr });
|
||||||
context.readFile = async (path) => {
|
context.readFile = async (path) => {
|
||||||
const resolved = fileURLToPath(new URL(`${fixturePath}/${astroConfig.dist}${path}`, import.meta.url));
|
const resolved = fileURLToPath(new URL(`${fixturePath}/${astroConfig.dist}${path}`, import.meta.url));
|
||||||
return readFileSync(resolved, {encoding: 'utf8'});
|
return readFileSync(resolved, { encoding: 'utf8' });
|
||||||
};
|
};
|
||||||
|
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
|
|
|
@ -3,9 +3,7 @@ async function polyfill() {
|
||||||
hydrateShadowRoots(document.body);
|
hydrateShadowRoots(document.body);
|
||||||
}
|
}
|
||||||
|
|
||||||
const polyfillCheckEl = new DOMParser()
|
const polyfillCheckEl = new DOMParser().parseFromString(`<p><template shadowroot="open"></template></p>`, 'text/html', { includeShadowRoots: true }).querySelector('p');
|
||||||
.parseFromString(`<p><template shadowroot="open"></template></p>`, 'text/html', {includeShadowRoots: true})
|
|
||||||
.querySelector('p');
|
|
||||||
|
|
||||||
if (!polyfillCheckEl || !polyfillCheckEl.shadowRoot) {
|
if (!polyfillCheckEl || !polyfillCheckEl.shadowRoot) {
|
||||||
polyfill();
|
polyfill();
|
||||||
|
|
Loading…
Reference in a new issue