diff options
author | 2021-03-24 11:45:38 -0400 | |
---|---|---|
committer | 2021-03-24 11:45:38 -0400 | |
commit | 3c24faa8cab428b17ba2f8e083f5296b1b931fe1 (patch) | |
tree | 940e2b6b68c2d7e895802fd451c7777f60c56eb6 /src/codegen | |
parent | 5c1cd5b1da446f51e535030072756126f7b038d7 (diff) | |
download | astro-3c24faa8cab428b17ba2f8e083f5296b1b931fe1.tar.gz astro-3c24faa8cab428b17ba2f8e083f5296b1b931fe1.tar.zst astro-3c24faa8cab428b17ba2f8e083f5296b1b931fe1.zip |
hmx ☞ astro (#22)
This changes all hmx files to astro files and updates all code to not reference hmx any more.
Diffstat (limited to 'src/codegen')
-rw-r--r-- | src/codegen/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codegen/index.ts b/src/codegen/index.ts index a9fc433f4..d248b2a60 100644 --- a/src/codegen/index.ts +++ b/src/codegen/index.ts @@ -25,7 +25,7 @@ interface CodeGenOptions { } function internalImport(internalPath: string) { - return `/__hmx_internal__/${internalPath}`; + return `/_astro_internal/${internalPath}`; } function getAttributes(attrs: Attribute[]): Record<string, string> { @@ -96,7 +96,7 @@ interface ComponentInfo { } const defaultExtensions: Readonly<Record<string, ValidExtensionPlugins>> = { - '.hmx': 'hmx', + '.astro': 'astro', '.jsx': 'react', '.vue': 'vue', '.svelte': 'svelte' @@ -117,9 +117,9 @@ function getComponentWrapper(_name: string, { type, url }: ComponentInfo, compil } switch (plugin) { - case 'hmx': { + case 'astro': { if (kind) { - throw new Error(`HMX does not support :${kind}`); + throw new Error(`Astro does not support :${kind}`); } return { wrapper: name, |