-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
set babel sourceType dynamically #183
base: master
Are you sure you want to change the base?
Conversation
Hmm are you mixing requires and imports? Or is this coming from a separate package? |
@jayair No, my projects use only CommonJS, perhaps it is because of some of its dependencies. |
I see. I'd like a test case for this. So if we have a simple setup that has this error and then to be able to show that if we set this option, the error goes away. |
Is there any timeline for when this will be available? My projects also use only CommonJS and receiving the same error. |
Sorry I really didn't have time to provide a sample of this behaviour @hle-aashish You are welcome to provide your case, so this one could be merged |
Currently using CommonJS require produces an error
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
To change this error one can either switch to ES6 modules or set the sourceType in the babel config to "unambiguous"