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