Skip to content
New issue

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

Fails to parse access to import.meta #2108

Closed
ghost opened this issue Jan 13, 2022 · 1 comment
Closed

Fails to parse access to import.meta #2108

ghost opened this issue Jan 13, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 13, 2022

The import.meta is used to get import.meta.url in JS generated by wasm-pack. Some webpack plugins (like gas-webpack-plugin of @fossamagna) use esprima and can not be added because that error.

Steps to reproduce

esprima.parse(`
f () {
  return import.meta.url;
}
`)

Relevant references

@ghost
Copy link
Author

ghost commented Feb 1, 2022

I found the ´esprima.parseModule´ in the doc, then I move the issue to gas-webpack-plugin.

@ghost ghost closed this as completed Feb 1, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants