rename runtime option to externalHelpers
This commit is contained in:
parent
1d34d03ac8
commit
02046c5448
@ -85,7 +85,7 @@ File.validOptions = [
|
|||||||
"playground",
|
"playground",
|
||||||
"experimental",
|
"experimental",
|
||||||
"resolveModuleSource",
|
"resolveModuleSource",
|
||||||
"runtime",
|
"externalHelpers",
|
||||||
"auxilaryComment",
|
"auxilaryComment",
|
||||||
|
|
||||||
// these are used by plugins
|
// these are used by plugins
|
||||||
@ -107,6 +107,7 @@ File.prototype.normalizeOptions = function (opts) {
|
|||||||
defaults(opts, {
|
defaults(opts, {
|
||||||
keepModuleIdExtensions: false,
|
keepModuleIdExtensions: false,
|
||||||
resolveModuleSource: null,
|
resolveModuleSource: null,
|
||||||
|
externalHelpers: false,
|
||||||
auxilaryComment: "",
|
auxilaryComment: "",
|
||||||
experimental: false,
|
experimental: false,
|
||||||
reactCompat: false,
|
reactCompat: false,
|
||||||
@ -120,7 +121,6 @@ File.prototype.normalizeOptions = function (opts) {
|
|||||||
comments: true,
|
comments: true,
|
||||||
filename: "unknown",
|
filename: "unknown",
|
||||||
modules: "common",
|
modules: "common",
|
||||||
runtime: false,
|
|
||||||
loose: [],
|
loose: [],
|
||||||
code: true,
|
code: true,
|
||||||
ast: true
|
ast: true
|
||||||
@ -164,7 +164,7 @@ File.prototype.normalizeOptions = function (opts) {
|
|||||||
opts.experimental = true;
|
opts.experimental = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.runtime) {
|
if (opts.externalHelpers) {
|
||||||
this.set("runtimeIdentifier", t.identifier("babelHelpers"));
|
this.set("runtimeIdentifier", t.identifier("babelHelpers"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user