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
invoke
A module imported for syntax is currently re-invoked for each module that imports it.
for syntax
For example, given some modules like:
// lib.js export const x = 1; // mod.js import { x } from './lib' for syntax; export syntax m = ctx => { x; return #`1`; } // main.js import { x } from './lib' for syntax; import { m } from './mod'; syntax n = ctx => { x; return #`2`; }
we get an error:
evalmachine.<anonymous>:1 const x_1 = 1; ^ SyntaxError: Identifier 'x_1' has already been declared
/cc @gabejohnson I think this is the root cause of the error you mentioned the other day.
The text was updated successfully, but these errors were encountered:
Only invoke a module once per phase; fixes #721
f3f4b8d
906c76f
9cefcf9
Only invoke a module once per phase; fixes #721 (#724)
3a1ec6c
disnet
Successfully merging a pull request may close this issue.
A module imported
for syntax
is currently re-invoke
d for each module that imports it.For example, given some modules like:
we get an error:
/cc @gabejohnson I think this is the root cause of the error you mentioned the other day.
The text was updated successfully, but these errors were encountered: