0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] yarn format

This commit is contained in:
matthewp 2021-05-27 17:55:41 +00:00 committed by GitHub Actions
parent dd7cc798e0
commit c711681cb6
2 changed files with 6 additions and 6 deletions

View file

@ -15,4 +15,4 @@ function doSomething() {
# Paragraph # Paragraph
text here. text here.

View file

@ -449,7 +449,7 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
await transform(ast, { await transform(ast, {
compileOptions, compileOptions,
filename, filename,
fileID fileID,
}); });
// 3. Codegen // 3. Codegen
@ -491,18 +491,18 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
case 'Slot': case 'Slot':
case 'Head': case 'Head':
case 'InlineComponent': { case 'InlineComponent': {
switch(node.name) { switch (node.name) {
case 'Prism': { case 'Prism': {
if(!importExportStatements.has(PRISM_IMPORT)) { if (!importExportStatements.has(PRISM_IMPORT)) {
importExportStatements.add(PRISM_IMPORT); importExportStatements.add(PRISM_IMPORT);
} }
if(!components.has('Prism')) { if (!components.has('Prism')) {
components.set('Prism', { components.set('Prism', {
importSpecifier: { importSpecifier: {
type: 'ImportDefaultSpecifier', type: 'ImportDefaultSpecifier',
local: { type: 'Identifier', name: 'Prism' } as Identifier, local: { type: 'Identifier', name: 'Prism' } as Identifier,
} as ImportDefaultSpecifier, } as ImportDefaultSpecifier,
url: 'astro/components/Prism.astro' url: 'astro/components/Prism.astro',
}); });
} }
break; break;