-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Override babelrc for the node related code #4451
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4451 +/- ##
==========================================
- Coverage 35.96% 35.94% -0.03%
==========================================
Files 555 555
Lines 6653 6658 +5
Branches 871 869 -2
==========================================
Hits 2393 2393
- Misses 3813 3820 +7
+ Partials 447 445 -2
Continue to review full report at Codecov.
|
You can use |
Oh, that's much better |
"./addons/storyshots", | ||
"./addons/storysource/src/loader", | ||
"./app/**/src/server/**" | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can also add lib/cli
here, and remove lib/cli/.babelrc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib-codemod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added codemod.
lib/cli
seems not transpiled like other packages (there is no src dir in)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's using babel-register
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but the "scripts/compile-js" is not handling this I think... I mean, do you think I need to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's nothing special about lib/cli
package, so we can switch it from babel-register
to transpiling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Will wait for #4236 to be finished. Then will move it to src
dir.
Issue: We may optimize the Node related code to be transpired for Node. That will reduce the package size a bit and will ease a debugging
What I did
I've added the Node specific.babelrc
in a few placesOverridden the root babelrc for the Node related code