@tetcoin/dev
Version:
A collection of shared CI scripts and development environment used by @tetcoin projects
23 lines (20 loc) • 646 B
JavaScript
// Copyright 2017-2020 @polkadot/dev authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// Restore old babylon behavior for istanbul.
// https://github.com/babel/babel/pull/6836
// https://github.com/istanbuljs/istanbuljs/issues/119
module.exports = function () {
return {
visitor: {
Program (programPath) {
programPath.traverse({
ArrowFunctionExpression (path) {
const node = path.node;
node.expression = node.body.type !== 'BlockStatement';
}
});
}
}
};
};