This commit is contained in:
Dylan Pizzo
2024-11-23 14:18:52 -08:00
parent 9593e21f3c
commit 25687860cc
8 changed files with 104 additions and 0 deletions

3
examples/sample.gen.ts Normal file
View File

@ -0,0 +1,3 @@
export default () => {
return `console.log("Hello, World!");`;
};

View File

@ -0,0 +1,3 @@
export default () => {
return `export const five = 5;`;
};

View File

@ -0,0 +1,4 @@
export default async (context: any) => {
const { five } = await context.import("./somethingEarly.ts");
return five.toString();
};