We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently this throws on runtime
// index.js import.meta.compileTime("./codegen.js", "someName"); // TypeError: (intermediate value).compileTime is not a function
expected: "someName" should be passed to the codegen function
"someName"
// codegen.js export default async ({ root, args }) => { // currently only "root" is passed const name = args[0]; return { code: `const ${name} = 42;`, } }
use case: generate code like
// static code /** @type {Record<string, () => any>} */ const someFiles = {}; // generated code someFiles["./a.js"] = () => import("./a.js"); someFiles["./b.js"] = () => import("./b.js");
... to allow some type-checking of the generated code
The text was updated successfully, but these errors were encountered:
No branches or pull requests
currently this throws on runtime
expected:
"someName"
should be passed to the codegen functionuse case: generate code like
... to allow some type-checking of the generated code
The text was updated successfully, but these errors were encountered: