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
Mangled generated code mixing ExportAllDeclaration and external source #2489
Comments
This is indeed a tricky one. Your expected result is wrong IMO since if you do import * as c from 'file:///c.js'; with A valid solution would be import * as c from 'file:///c.js';
export { c as $b }; However, this is no longer possible if // b.js
export * from 'file:///c.js';
export const dontKnowWhatToDoWithThis = 4; My feeling is that we should try to use the first solution if possible but throw an error in the second case until someone figures out a nice solution that scales well. |
Interestingly enough, rollup 0.66 refuses to bundle this code with an internal error... |
Not really a fix but a better error message: #2499 |
Closing this in favour of #2165 as with the correct error message, this missing feature is all that remains. |
How Do We Reproduce?
Here's a fairly simple reproduction, call it
repro.js
Run the repro:
Expected Behavior
I'd expect something along the lines of the following, but would be happy with anything that achieves
Actual Behavior
Generates the following mess.
The text was updated successfully, but these errors were encountered: