pass config

This commit is contained in:
Henry Zhu
2017-03-27 16:44:42 -04:00
parent f3ef03abfd
commit 7935dd6642
2 changed files with 19 additions and 53 deletions

View File

@@ -1,11 +1,11 @@
"use strict";
const register = require("babel-register").default;
register();
register({
const config = require("../.babelrc");
register(Object.assign({}, config, {
extensions: [".js"],
// Only js files in the test folder but not in the subfolder fixtures.
only: [/packages\/.+\/test\/(?!fixtures\/).+\.js$/],
babelrc: false,
compact: true,
});
}));