[ci] yarn format
This commit is contained in:
parent
8ff79981db
commit
3dc141b868
2 changed files with 24 additions and 23 deletions
|
@ -58,16 +58,16 @@ export default function (opts: TransformOptions): Transformer {
|
|||
|
||||
if (isHmrEnabled) {
|
||||
const { hmrPort } = opts.compileOptions;
|
||||
children.push({
|
||||
children.push(
|
||||
{
|
||||
type: 'Element',
|
||||
name: 'script',
|
||||
attributes: [],
|
||||
children: [
|
||||
{ type: 'Text', data: `window.HMR_WEBSOCKET_URL = 'ws://localhost:${hmrPort}'`, start: 0, end: 0 }
|
||||
],
|
||||
children: [{ type: 'Text', data: `window.HMR_WEBSOCKET_URL = 'ws://localhost:${hmrPort}'`, start: 0, end: 0 }],
|
||||
start: 0,
|
||||
end: 0
|
||||
}, {
|
||||
end: 0,
|
||||
},
|
||||
{
|
||||
type: 'Element',
|
||||
name: 'script',
|
||||
attributes: [
|
||||
|
@ -76,8 +76,9 @@ export default function (opts: TransformOptions): Transformer {
|
|||
],
|
||||
children: [],
|
||||
start: 0,
|
||||
end: 0
|
||||
})
|
||||
end: 0,
|
||||
}
|
||||
);
|
||||
}
|
||||
head.children = head.children ?? [];
|
||||
head.children.push(...children);
|
||||
|
|
|
@ -284,11 +284,11 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
|
|||
resolvePackageUrl?: (s: string) => Promise<string>;
|
||||
renderers?: { name: string; client: string; server: string }[];
|
||||
astroConfig: AstroConfig;
|
||||
hmrPort?: number
|
||||
hmrPort?: number;
|
||||
} = {
|
||||
astroConfig,
|
||||
resolvePackageUrl,
|
||||
hmrPort: isHmrEnabled ? DEFAULT_HMR_PORT : undefined
|
||||
hmrPort: isHmrEnabled ? DEFAULT_HMR_PORT : undefined,
|
||||
};
|
||||
|
||||
const mountOptions = {
|
||||
|
|
Loading…
Add table
Reference in a new issue