Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packager/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ const {compactMapping} = require('./src/Bundler/source-map');
*/
const getBabelRC = (function() {
let babelRC = null;
let pr = null;

return function _getBabelRC(projectRoots) {
if (babelRC !== null) {
if (babelRC !== null && pr === projectRoots) {
return babelRC;
}

pr = projectRoots;
babelRC = {plugins: []}; // empty babelrc

// Let's look for the .babelrc in the first project root.
Expand Down