Expose information about Meteor target architecture to Babel plugins (#10211)

http://babeljs.io/docs/en/options#caller
This commit is contained in:
Márius Rak
2018-09-12 17:46:48 +02:00
committed by Ben Newman
parent b5208c7786
commit c8ff49ae64

View File

@@ -105,6 +105,7 @@ BCp.processOneFileForTarget = function (inputFile, source) {
}
var babelOptions = Babel.getDefaultOptions(extraFeatures);
babelOptions.caller = { name: "meteor", arch };
this.inferExtraBabelOptions(
inputFile,