-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
[WIP] Better .babelrc support #620
Conversation
@@ -202,7 +202,7 @@ gulp.task('release', (cb) => { | |||
'compile', | |||
'build', | |||
'copy', | |||
'test' |
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.
Currently, tests are failing.
I'll work on a fix.
8034978
to
8f8b5a7
Compare
@@ -187,7 +193,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false | |||
resolve: { | |||
modules: [ | |||
nextNodeModulesDir, | |||
'node_modules' | |||
appNodeModulesDir |
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.
Had to set this, otherwise webpack raise issues that, it can't find next/*
apis.
@@ -0,0 +1,3 @@ | |||
{ |
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.
This is just to to fool our .babelrc
finding logic to stop here.
I'm not sure if we shoud do this since it mean to change the behavior babel users might expect. |
Yeah. I am not sure about this either. Let's keep this open until it's really really needed. |
For now, we'll fix our examples, and re-consider this if it creates problems for others. I'll favor less code an maintain the (undesirable!) babel default |
With this, we are only looking for
.babelrc
upto the closest directory with apackage.json
.This will fix the
.babelrc
issue discussed in #560