-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
babel-plugin error when using domain() #580
Comments
Our plugin has options to disable particular transformations, in your case it will looks like that {
"plugins": [
["effector/babel-plugin", {
"domainMethods": {
"domain": ["createDomain"]
}
}]
]
} This reads as "when parsing source code, treat as creation of subdomain calls of And as for isolation, I was hoping for babel, that users would configure exceptions through it, but apparently babel is not up to this task and we' ll have to add options to the plugin itself |
@zerobias I did not found this info in effector docs. maybe we can add it |
full set of options of that group:
honestly, I don’t quite like the naming, for example inconsistent |
@egorguscha there is another supported alias for |
What is the current behavior:
When use visx with d3 domain() function, app crashed because of conflicts with function naming. Need isolation of babel-plugin from another code. Without babel-plugin I can't use normally logging.
Please provide the steps to reproduce and if possible a minimal demo of the problem via https://share.effector.dev, https://codesandbox.io or similar
What is the expected behavior:
no errors
Which versions of effector packages, and which browser and OS are affected by this issue? Did this work in previous versions of effector?:
"effector": "21.8.12",
"effector-react": "^21.3.3",
The text was updated successfully, but these errors were encountered: