Skip to content

Commit

Permalink
Override babel ignore defaults to transpile internal node_modules dir…
Browse files Browse the repository at this point in the history
…ectories (closes cloverfield-tools#41).
  • Loading branch information
zebulonj committed Jul 22, 2015
1 parent 1b3bb7f commit acb1c5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ignore": [
"^./node_modules"
]
}

2 comments on commit acb1c5a

@zebulonj
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the ignore option for babel should accomplish that, it you really need to. I generally ignore node_modules now. What do you have in node_modules that you need to compile?

Note that this commit is still ignoring the node_modules in the project root. It's designed to include secondary node_modules folders nested in the project—a pattern in cloverfield-tools/universal-react-boilerplate that was used to avoid ugly relative paths in requires (require '../../../module/file.js';). I do that now using explicitly defined resolve roots in Babel or Webpack.

@zebulonj
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid I've been as much help as I can. Perhaps look for assistance in a Babel channel.

Please sign in to comment.