-
Notifications
You must be signed in to change notification settings - Fork 0
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
Advanced JavaScript Topics Workshop #12
Comments
@maneesht Hey, I was wondering if you could take a look at an issue I was having the calculator. So, it seems like when Babel transpiles ES2015 to ES5, it doesn't support CommonJS import and export statements. I uploaded the code with the bug to the calculator branch if you want to take a look at it. Here is a SO thread for reference to the issue I am talking about. https://stackoverflow.com/questions/29434978/babel-generated-code-causes-error-exports-is-undefined It seems like the solution would be to use a bundler like webpack, so do you want to do that? I don't think the students would know how to go about configuring webpack by this point would they? Alternatively, if there is a simpler way to work around this or I've just missed something, let me know and I'll fix it. |
Just wanted to add - there might be a simple workaround here (https://babeljs.io/docs/plugins/transform-es2015-modules-commonjs/). I haven't tried it yet, I'll get to it tomorrow. |
I think your options are:
|
Also, can you adhere to the linting? |
Option 3 sounds good to me. It might make the code messy, but that's just something to deal with. And by linting, do you mean just running the code through ESLint? |
Yes. I believe I have an eslintrc
…On Tue, Jul 25, 2017, 10:20 PM Zaid Humayun ***@***.***> wrote:
Option 3 sounds good to me. It might make the code messy, but that's just
something to deal with.
And by linting, do you mean just running the code through ESLint?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJyQqJKkSvXIFmQ7CqSQScbBuz0TKSrks5sRsyOgaJpZM4OX4gN>
.
|
No description provided.
The text was updated successfully, but these errors were encountered: