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:
parent
0ae132b362
commit
40390e5fe6
@ -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',
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user