-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JSC_CANNOT_CONVERT even with NO_TRANSPILE #3712
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
The output from closure-compiler isn't an ES module. It's a script. As such, If we transpile it, what should we put in it? It's supposed to be populated by the JS engine. What's more, the context is all wrong. When you're authoring a JS module and refer to Suppose, for the sake of argument, that we just allowed We decided that it was much better to be up-front with our users and refuse to compile code containing |
Surprising though it may seem, this is what I want. I am wanting some way to tell the compiler to trust me, that I know what I'm doing, and leave In the case where all modules are being compiled to one output module, any references to "this file location" (via If I have For context, the specific use case I am using for this is compiling an ES module to an ES module, using Totally understand why this approach was taken, just explaining my use case and why I raised this issue. |
I just stumbled across this while using the new dynamic imports support in Closure Compiler, and we need |
Related to #3707, #3708.
With the following flags, we should never see errors about ES6 or unsupported features:
Yet this does not hold for
JSC_CANNOT_CONVERT
error, especially as it relates toimport.meta
. Cannot coerce the compiler to produce output of any kind, sadly. Exits with:The text was updated successfully, but these errors were encountered: