summaryrefslogtreecommitdiff
path: root/src/compiler/index.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-01 10:20:57 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-01 10:20:57 -0600
commitf6a7ac67befff863e34133673efb78ea7ac0fe48 (patch)
treec66fa89ca110c17c06432d028ee746615f2b9b23 /src/compiler/index.ts
parent7c10d563f2fc921ee66ee4820b85c4b871d218fd (diff)
downloadastro-f6a7ac67befff863e34133673efb78ea7ac0fe48.tar.gz
astro-f6a7ac67befff863e34133673efb78ea7ac0fe48.tar.zst
astro-f6a7ac67befff863e34133673efb78ea7ac0fe48.zip
Add runtime mode (#48)
Diffstat (limited to 'src/compiler/index.ts')
-rw-r--r--src/compiler/index.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/compiler/index.ts b/src/compiler/index.ts
index 0ba5657cd..88ea5caf9 100644
--- a/src/compiler/index.ts
+++ b/src/compiler/index.ts
@@ -1,5 +1,5 @@
-import type { LogOptions } from '../logger.js';
-import type { AstroConfig, CompileResult, TransformResult } from '../@types/astro';
+import type { CompileResult, TransformResult } from '../@types/astro';
+import type { CompileOptions } from '../@types/compiler.js';
import path from 'path';
import micromark from 'micromark';
@@ -13,12 +13,6 @@ import { encodeMarkdown } from '../micromark-encode.js';
import { optimize } from './optimize/index.js';
import { codegen } from './codegen.js';
-interface CompileOptions {
- astroConfig: AstroConfig;
- logging: LogOptions;
- resolve: (p: string) => Promise<string>;
-}
-
function internalImport(internalPath: string) {
return `/_astro_internal/${internalPath}`;
}