-
Notifications
You must be signed in to change notification settings - Fork 470
js.raw doesn't accept import.meta #4931
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
Comments
we will have a flag to loosen the checks |
we turned flow parse error into a warning 103 which you can turned off: @@config({
flags: ["-w", "-103"],
})
%%raw(`
if (import.meta.hot){
console.log('es6')
}
`) |
fixed in #4932 |
I can't get this to work in reasonml syntax? I've tried both The code generating the warning is:
(where |
at least the parsing error is now resolved: facebook/flow@0851b3e |
The
import.meta
is a widely supported standard by modern browsers.I recently tried to use it for HMR on Snowpack, but the ReScript compiler ([email protected]) didn't seem to support it.
It seems that this is still not implemented on the Flow side. facebook/flow#6913
Can we add support for this separately?
The text was updated successfully, but these errors were encountered: