1
1
mirror of https://github.com/primer/css.git synced 2025-01-05 21:22:57 +03:00

simplify webpack rules

This commit is contained in:
Shawn Allen 2018-12-05 00:59:45 -08:00
parent 0ae132b362
commit 40390e5fe6

View File

@ -11,16 +11,14 @@ module.exports = (pluginOptions = {}) => (nextConfig = {}) => {
config.module.rules.push({
test: /\.svg$/,
use: {loader: '@svgr/webpack'}
use: '@svgr/webpack'
})
config.module.rules.push({
test,
use: [
options.defaultLoaders.babel,
{
loader: 'mdx-loader',
}
'mdx-loader'
]
})