From f8ac6b0debdc0065855effbe565a49c905390fde Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 10 Jul 2020 21:17:32 +0800 Subject: [PATCH] Addon-docs: Ignore BOTH babelrc and babel.config.js in MDX handling --- addons/docs/src/frameworks/common/preset.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/docs/src/frameworks/common/preset.ts b/addons/docs/src/frameworks/common/preset.ts index 475da29d792..f580ea0e747 100644 --- a/addons/docs/src/frameworks/common/preset.ts +++ b/addons/docs/src/frameworks/common/preset.ts @@ -31,6 +31,7 @@ function createBabelOptions({ babelOptions, mdxBabelOptions, configureJSX }: Bab return { // don't use the root babelrc by default (users can override this in mdxBabelOptions) babelrc: false, + configFile: false, ...babelOptions, ...mdxBabelOptions, plugins,