mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
ECMAScript = {
|
|
compileForShell(command, cacheOptions) {
|
|
const babelOptions = Babel.getDefaultOptions({
|
|
nodeMajorVersion: parseInt(process.versions.node, 10)
|
|
});
|
|
delete babelOptions.sourceMap;
|
|
delete babelOptions.sourceMaps;
|
|
babelOptions.ast = false;
|
|
return Babel.compile(command, babelOptions, cacheOptions).code;
|
|
}
|
|
};
|