Merge pull request #11495 from storybookjs/8096-mdx-ignore-babel-config

Addon-docs: Fix MDX handling to ignore babel.config.js
This commit is contained in:
Michael Shilman 2020-07-10 21:35:23 +08:00 committed by GitHub
commit b205f31183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ function createBabelOptions({ babelOptions, mdxBabelOptions, configureJSX }: Bab
return { return {
// don't use the root babelrc by default (users can override this in mdxBabelOptions) // don't use the root babelrc by default (users can override this in mdxBabelOptions)
babelrc: false, babelrc: false,
configFile: false,
...babelOptions, ...babelOptions,
...mdxBabelOptions, ...mdxBabelOptions,
plugins, plugins,