-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support CommonJS style requires #62
Comments
Hmm the simplified commonjs wrapper is supposed to be supported, it's not documented in the README but there are a bunch of test cases which describe how it gets transformed. Have you tried the plugin out in your environment? It's possible there are some bugs with the commonjs wrapper transformation since I don't think its usage is very common, so if you could post any specific errors you encounter that would be great. |
Oh really? I was still seeing errors but it could be my set up. EDIT - Yeah I see you've got tests for the style I use. So probably my fault. |
Yup, sorry was me. Works! |
Awesome good to hear! Glad someone is actually making use of the simplified commonjs wrapper stuff :) |
We have been writing our code in the CommonJS style as documented in the RequireJS area https://requirejs.org/docs/commonjs.html which doesn't seem like that style works in this plugin. I'm not a babel expert but I could try submitting a PR if it is something worthy to be included.
The text was updated successfully, but these errors were encountered: