From 21909cee7690143c0c6b31e2d7b58ef5b48fca05 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 16 Feb 2015 01:01:29 +1100 Subject: [PATCH] rename runtime CLI flag to externalHelpers --- bin/babel/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/babel/index.js b/bin/babel/index.js index 26bfc65a12..7d89de89f7 100755 --- a/bin/babel/index.js +++ b/bin/babel/index.js @@ -11,7 +11,7 @@ commander.option("-t, --source-maps-inline", "Append sourceMappingURL comment to commander.option("-s, --source-maps", "Save source map alongside the compiled code"); commander.option("-f, --filename [filename]", "Filename to use when reading from stdin - this will be used in source-maps, errors etc [stdin]", "stdin"); commander.option("-w, --watch", "Recompile files on changes"); -commander.option("-r, --runtime", "Replace babel helpers with references to a runtime"); +commander.option("-r, --external-helpers", "Replace helpers with references to a `babelHelpers` global"); commander.option("-e, --experimental", "Enable experimental support for proposed ES7 features"); commander.option("-p, --playground", "Enable playground support"); @@ -101,6 +101,7 @@ if (errors.length) { exports.opts = { keepModuleIdExtensions: commander.keepModuleIdExtensions, auxilaryComment: commander.auxilaryComment, + externalHelpers: commander.externalHelpers, sourceMapName: commander.outFile, experimental: commander.experimental, reactCompat: commander.reactCompat, @@ -111,7 +112,6 @@ exports.opts = { sourceMap: commander.sourceMaps || commander.sourceMapsInline, optional: commander.optional, comments: !commander.removeComments, - runtime: commander.runtime, modules: commander.modules, loose: commander.loose };