-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Incomplete tree shaking (cjs?) #898
Comments
@Benjamin-Dobell Like this? |
Thanks, I've added that reproduction as a test case in #902, where it passes (rather than including the |
Fixed in 0.35 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
"rollup version 0.34.13"
Details
I have an ES6 module ("dom") that looks like this:
The tree shaking is detecting that
isDescendant
is not called, and hence:is completely removed from my target CJS bundle.
However, the "transpiled" export referring to
isDescendent
is left in place:Which results in "ReferenceError: isDescendant is not defined".
The text was updated successfully, but these errors were encountered: