[babel 8] Use the JSX automatic runtime by default (#12630)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Arun Kumar Mohan <arunmohandm@gmail.com>
This commit is contained in:
@@ -30,7 +30,11 @@ export default function createPlugin({ name, development }) {
|
||||
// TODO (Babel 8): It should throw if this option is used with the automatic runtime
|
||||
filter,
|
||||
|
||||
runtime: RUNTIME_DEFAULT = development ? "automatic" : "classic",
|
||||
runtime: RUNTIME_DEFAULT = process.env.BABEL_8_BREAKING
|
||||
? "automatic"
|
||||
: development
|
||||
? "automatic"
|
||||
: "classic",
|
||||
|
||||
importSource: IMPORT_SOURCE_DEFAULT = DEFAULT.importSource,
|
||||
pragma: PRAGMA_DEFAULT = DEFAULT.pragma,
|
||||
|
||||
Reference in New Issue
Block a user