Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
presets: [[require.resolve('@babel/preset-env'), { modules: 'commonjs' }]],
},
},
],
},
{
test: /\.(stories|story).mdx$/,
use: [
{
loader: 'babel-loader',
options: createBabelOptions(babelOptions, configureJSX),
},
{
loader: '@mdx-js/loader',
options: {
compilers: [createCompiler(options)],
...mdxLoaderOptions,
},
},
],
},
{
test: /\.mdx$/,
exclude: /\.(stories|story).mdx$/,
use: [
{
loader: 'babel-loader',
options: createBabelOptions(babelOptions, configureJSX),
},
{
loader: '@mdx-js/loader',
options: mdxLoaderOptions,