From e54ede52843ba5f430dcf1e025387dbeaf27adff Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 23 Feb 2020 11:22:24 +0100 Subject: [PATCH] fix(v2): add @babel/preset-typescript to babel-loader (#2310) --- packages/docusaurus/src/webpack/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docusaurus/src/webpack/utils.ts b/packages/docusaurus/src/webpack/utils.ts index 124bd666febc..5396ebc791ef 100644 --- a/packages/docusaurus/src/webpack/utils.ts +++ b/packages/docusaurus/src/webpack/utils.ts @@ -120,6 +120,7 @@ export function getBabelLoader(isServer: boolean, babelOptions?: {}): Loader { }, ], '@babel/react', + '@babel/preset-typescript', ], plugins: [ // Polyfills the runtime needed for async/await, generators, and friends