build it
This commit is contained in:
3
examples/sample.gen.ts
Normal file
3
examples/sample.gen.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export default () => {
|
||||
return `console.log("Hello, World!");`;
|
||||
};
|
3
examples/somethingEarly.gen.ts
Normal file
3
examples/somethingEarly.gen.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export default () => {
|
||||
return `export const five = 5;`;
|
||||
};
|
4
examples/somethingLate.gen.ts
Normal file
4
examples/somethingLate.gen.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export default async (context: any) => {
|
||||
const { five } = await context.import("./somethingEarly.ts");
|
||||
return five.toString();
|
||||
};
|
Reference in New Issue
Block a user