Rollup requires that the custom es2015-rollup preset be specified in .babelrc or that transform-es2015-modules-commonjs is omitted when specifying specific transforms. However the Babel Tape Runner project requires the CommonJS module. As a result it's not possible to run both Rollup and Babel Tape Runner using the same .babelrc file.
The Babel documentation states that Babel will search up the tree from the current directory, implying that the test directory could have it's own .babelrc file. This is not the case as Babel Tape Runner — or the babel module(s) it utilises — don't seem to respect this rule.
Rollup requires that the custom
es2015-rollup
preset be specified in.babelrc
or thattransform-es2015-modules-commonjs
is omitted when specifying specific transforms. However the Babel Tape Runner project requires the CommonJS module. As a result it's not possible to run both Rollup and Babel Tape Runner using the same.babelrc
file.The Babel documentation states that Babel will search up the tree from the current directory, implying that the test directory could have it's own
.babelrc
file. This is not the case as Babel Tape Runner — or the babel module(s) it utilises — don't seem to respect this rule.