mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] yarn format
This commit is contained in:
parent
0a7b6deaec
commit
c0d4e8430f
2 changed files with 7 additions and 7 deletions
|
@ -223,7 +223,7 @@ function getComponentWrapper(_name: string, hydration: HydrationAttributes, { ur
|
||||||
const importInfo = method
|
const importInfo = method
|
||||||
? {
|
? {
|
||||||
componentUrl: getComponentUrl(astroConfig, url, pathToFileURL(filename)),
|
componentUrl: getComponentUrl(astroConfig, url, pathToFileURL(filename)),
|
||||||
componentExport: getComponentExport()
|
componentExport: getComponentExport(),
|
||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default function (opts: TransformOptions): Transformer {
|
||||||
InlineComponent: {
|
InlineComponent: {
|
||||||
enter(node) {
|
enter(node) {
|
||||||
if (hasComponents) {
|
if (hasComponents) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.attributes && node.attributes.some(({ name }: any) => name.startsWith('client:'))) {
|
if (node.attributes && node.attributes.some(({ name }: any) => name.startsWith('client:'))) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue