Skip to content

Commit b1ace54

Browse files
committed
Change build from babylon to babel
1 parent df5fadd commit b1ace54

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/rollup/build.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function getPlugins(
410410
// Note that this plugin must be called after closure applies DCE.
411411
isProduction && stripUnusedImports(pureExternalModules),
412412
// Add the whitespace back if necessary.
413-
shouldStayReadable && prettier({parser: 'babylon'}),
413+
shouldStayReadable && prettier({parser: 'babel'}),
414414
// License and haste headers, top-level `if` blocks.
415415
{
416416
transformBundle(source) {
@@ -541,11 +541,6 @@ async function createBundle(bundle, bundleType) {
541541
bundle.moduleType,
542542
pureExternalModules
543543
),
544-
// We can't use getters in www.
545-
legacy:
546-
bundleType === FB_WWW_DEV ||
547-
bundleType === FB_WWW_PROD ||
548-
bundleType === FB_WWW_PROFILING,
549544
};
550545
const [mainOutputPath, ...otherOutputPaths] = Packaging.getBundleOutputPaths(
551546
bundleType,

0 commit comments

Comments
 (0)