@bitrix/cli
Version:
Bitrix CLI tools
16 lines (14 loc) • 322 B
JavaScript
const getDefinePropertySrc = require('rewire/lib/getDefinePropertySrc');
const babel = require('@babel/core');
const src = getDefinePropertySrc();
module.exports = function() {
return {
visitor: {
Program: {
enter(path) {
path.pushContainer('body', babel.parse(src).program.body);
},
},
},
};
};