Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function finish(features, presets) {
const options = {
compact: false,
sourceMaps: false,
ast: false,
// Disable .babelrc lookup and processing.
babelrc: false,
// Disable babel.config.js lookup and processing.
configFile: false,
parserOpts: util.deepClone(parserOpts),
presets: presets
};
if (features && features.typescript) {
// This additional option will be consumed by the meteorBabel.compile
// function before the options are passed to Babel.
options.typescript = true;
}
return options;
}