diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index e4c517632..dd33919d8 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -331,7 +331,9 @@ function resolveFlags(flags: Partial): CLIFlags { typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined, experimentalSsr: typeof flags.experimentalSsr === 'boolean' ? flags.experimentalSsr : undefined, experimentalIntegrations: - typeof flags.experimentalIntegrations === 'boolean' ? flags.experimentalIntegrations : undefined, + typeof flags.experimentalIntegrations === 'boolean' + ? flags.experimentalIntegrations + : undefined, drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false, }; } diff --git a/packages/astro/test/custom-elements.test.js b/packages/astro/test/custom-elements.test.js index cecf72d63..a00ea6887 100644 --- a/packages/astro/test/custom-elements.test.js +++ b/packages/astro/test/custom-elements.test.js @@ -9,8 +9,8 @@ describe('Custom Elements', () => { fixture = await loadFixture({ root: './fixtures/custom-elements/', experimental: { - integrations: true - } + integrations: true, + }, }); await fixture.build(); }); diff --git a/packages/webapi/src/lib/Element.ts b/packages/webapi/src/lib/Element.ts index 1553f2863..c1b6f781d 100644 --- a/packages/webapi/src/lib/Element.ts +++ b/packages/webapi/src/lib/Element.ts @@ -2,9 +2,9 @@ import * as _ from './utils' export class Element extends Node { constructor() { - super(); - - if(_.INTERNALS.has(new.target)) { + super() + + if (_.INTERNALS.has(new.target)) { const internals = _.internalsOf(new.target, 'Element', 'localName') _.INTERNALS.set(this, { attributes: {},