Fix Prettier "No parser" warning while building (#13323)

This commit is contained in:
Bartosz Kaszubowski
2018-08-05 03:50:58 +02:00
committed by Dan Abramov
parent f8456b2ecb
commit 08e32263f9

View File

@@ -350,7 +350,7 @@ function getPlugins(
})
),
// Add the whitespace back if necessary.
shouldStayReadable && prettier(),
shouldStayReadable && prettier({parser: 'babylon'}),
// License and haste headers, top-level `if` blocks.
{
transformBundle(source) {