diff options
author | 2021-03-25 14:06:08 -0400 | |
---|---|---|
committer | 2021-03-25 14:06:08 -0400 | |
commit | 3db595937719b89956c594e4a76ee68ae8de098a (patch) | |
tree | e463889925f71539f28730f957b195b1806b3cb0 /src/compiler/index.ts | |
parent | 18e7cc5af903543ac6f46780bfea67c13c6517df (diff) | |
download | astro-3db595937719b89956c594e4a76ee68ae8de098a.tar.gz astro-3db595937719b89956c594e4a76ee68ae8de098a.tar.zst astro-3db595937719b89956c594e4a76ee68ae8de098a.zip |
First pass at the build (#27)
This updates `astro build` to do a production build. It works! No optimizations yet.
Diffstat (limited to 'src/compiler/index.ts')
-rw-r--r-- | src/compiler/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/index.ts b/src/compiler/index.ts index e09664a19..fea6b8a29 100644 --- a/src/compiler/index.ts +++ b/src/compiler/index.ts @@ -15,12 +15,12 @@ import { codegen } from './codegen.js'; interface CompileOptions { logging: LogOptions; - resolve: (p: string) => string; + resolve: (p: string) => Promise<string>; } const defaultCompileOptions: CompileOptions = { logging: defaultLogOptions, - resolve: (p: string) => p, + resolve: (p: string) => Promise.resolve(p), }; function internalImport(internalPath: string) { |