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
The babel implementation currently requires both babel-plugin-codegen & babel-plugin-preval leading to a verbose 2-line format:
babel-plugin-codegen
babel-plugin-preval
const filename = preval`module.exports = __filename`; const Layout = codegen.require("@ceteio/next-layout-loader", filename);
Is there a way to remove the need for preval?
preval
When I try to add __filename directly as the second parameter to codegen.require, I get an error:
__filename
codegen.require
const Layout = codegen.require("@ceteio/next-layout-loader", __filename);
Error: codegen cannot determine the value of an argument in codegen.require at Array.map (<anonymous>)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The babel implementation currently requires both
babel-plugin-codegen
&babel-plugin-preval
leading to a verbose 2-line format:Is there a way to remove the need for
preval
?When I try to add
__filename
directly as the second parameter tocodegen.require
, I get an error:The text was updated successfully, but these errors were encountered: