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
when setting optimization.providedExports
to false, outputModule wouldn't generate export statement
#18056
when setting optimization.providedExports
to false, outputModule wouldn't generate export statement
#18056
Comments
@hardfist Feel free to send a PR |
I found that the issue has always existed since version 5.41.0 which add EcmaScript modules support. I'm willing to fix this issue, and I've spent some time looking at it. The problem I found is that when
I have a solution that when But I also feel that doing so violates the meaning of |
@hai-x yeah, feel free to send a pr |
Discussed in #17902
Originally posted by hardfist December 28, 2023
I'm not sure whether it's by design or bug, it seems outputModule relys on setting
optimization.providedExports
to true, otherwise it wouldn't generate the export statementyou can reproduce here https://github.com/web-infra-dev/rspack-repro/tree/esm-output
The text was updated successfully, but these errors were encountered: