We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054141f commit b576dfeCopy full SHA for b576dfe
scripts/rollup/build.js
@@ -382,6 +382,12 @@ function getPlugins(
382
// https://github.com/facebook/react/issues/10909
383
assume_function_wrapper: !isUMDBundle,
384
renaming: !shouldStayReadable,
385
+ language_out:
386
+ bundleType === BROWSER_SCRIPT
387
+ ? // Setting it to ES5 removes the automatic 'use strict'
388
+ 'ECMASCRIPT5'
389
+ : // TODO: What should the default output format be?
390
+ null,
391
})
392
),
393
// HACK to work around the fact that Rollup isn't removing unused, pure-module imports.
0 commit comments