1
1
mirror of https://github.com/primer/css.git synced 2025-01-07 06:51:03 +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({ config.module.rules.push({
test: /\.svg$/, test: /\.svg$/,
use: {loader: '@svgr/webpack'} use: '@svgr/webpack'
}) })
config.module.rules.push({ config.module.rules.push({
test, test,
use: [ use: [
options.defaultLoaders.babel, options.defaultLoaders.babel,
{ 'mdx-loader'
loader: 'mdx-loader',
}
] ]
}) })