Addon-docs: Ignore BOTH babelrc and babel.config.js in MDX handling

This commit is contained in:
Michael Shilman 2020-07-10 21:17:32 +08:00
parent 57e5092dd5
commit f8ac6b0deb

View File

@ -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,