From 766176b7d43f57d9fde66bfffad58437b9cf7c3c Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 20 Sep 2024 17:10:28 +0200 Subject: [PATCH] Use @docusaurus/babel/preset for newly init sites + docs --- packages/create-docusaurus/templates/shared/babel.config.js | 2 +- website/docs/configuration.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-docusaurus/templates/shared/babel.config.js b/packages/create-docusaurus/templates/shared/babel.config.js index e00595dae7d6..ca4e55cbf11f 100644 --- a/packages/create-docusaurus/templates/shared/babel.config.js +++ b/packages/create-docusaurus/templates/shared/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], + presets: ['@docusaurus/babel/preset'], }; diff --git a/website/docs/configuration.mdx b/website/docs/configuration.mdx index 239ced56edee..8278b5cc3fe9 100644 --- a/website/docs/configuration.mdx +++ b/website/docs/configuration.mdx @@ -279,7 +279,7 @@ For new Docusaurus projects, we automatically generated a `babel.config.js` in t ```js title="babel.config.js" export default { - presets: ['@docusaurus/core/lib/babel/preset'], + presets: ['@docusaurus/babel/preset'], }; ```