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
Module's function gets rewritten #3382
Labels
Comments
Hi @lukastaegert is there any update on this? |
Did not find time to look into this yet |
9 tasks
Thanks for spotting it, there was indeed a small but nasty bug at the source of it, fix at #3438 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm creating a react component using
fabric-ui-react
lib and for some reason a function from fabric modules gets its body rewritten when bundling (and won't work after that). I'm using two pluginsrollup-plugin-babel
and@rollup/plugin-node-resolve
.Babel plugin has the option
exclude: 'node_modules/**'
so it's not affecting the dependencies.This is the function of fabric module:
This is the function after bundling with rollup:
Expected Behavior
Modules functions shouldn't be changed
Actual Behavior
The function body is rewritten and many lines are stripped out
I noticed that if I manually edit the source module and change this
to this:
The bundled output is correct and the function is not changed.
The text was updated successfully, but these errors were encountered: