mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
5acf77dd22
commit
16e0ada70f
3 changed files with 8 additions and 6 deletions
|
@ -331,7 +331,9 @@ function resolveFlags(flags: Partial<Flags>): CLIFlags {
|
||||||
typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined,
|
typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined,
|
||||||
experimentalSsr: typeof flags.experimentalSsr === 'boolean' ? flags.experimentalSsr : undefined,
|
experimentalSsr: typeof flags.experimentalSsr === 'boolean' ? flags.experimentalSsr : undefined,
|
||||||
experimentalIntegrations:
|
experimentalIntegrations:
|
||||||
typeof flags.experimentalIntegrations === 'boolean' ? flags.experimentalIntegrations : undefined,
|
typeof flags.experimentalIntegrations === 'boolean'
|
||||||
|
? flags.experimentalIntegrations
|
||||||
|
: undefined,
|
||||||
drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false,
|
drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@ describe('Custom Elements', () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/custom-elements/',
|
root: './fixtures/custom-elements/',
|
||||||
experimental: {
|
experimental: {
|
||||||
integrations: true
|
integrations: true,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,9 +2,9 @@ import * as _ from './utils'
|
||||||
|
|
||||||
export class Element extends Node {
|
export class Element extends Node {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super()
|
||||||
|
|
||||||
if(_.INTERNALS.has(new.target)) {
|
if (_.INTERNALS.has(new.target)) {
|
||||||
const internals = _.internalsOf(new.target, 'Element', 'localName')
|
const internals = _.internalsOf(new.target, 'Element', 'localName')
|
||||||
_.INTERNALS.set(this, {
|
_.INTERNALS.set(this, {
|
||||||
attributes: {},
|
attributes: {},
|
||||||
|
|
Loading…
Add table
Reference in a new issue