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;
}
`)
The
import.meta
is used to getimport.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
Relevant references