This commit is contained in:
Zef Hemel
2023-01-01 11:28:25 -08:00
committed by GitHub
parent 8d3688b2fd
commit e4ebaa2cf4
9 changed files with 24 additions and 10 deletions
+4 -2
View File
@@ -76,11 +76,13 @@ export async function bundle(
continue;
}
let jsFunctionName = "default",
filePath = path.join(rootPath, def.path);
filePath: string = def.path;
if (filePath.indexOf(":") !== -1) {
[filePath, jsFunctionName] = filePath.split(":");
}
// Resolve path
filePath = path.join(rootPath, filePath);
def.code = await compile(
filePath,
jsFunctionName,