rsnext/examples/svg-components/next.config.js
Rubens Armôa Lopes 9ceccbcf82
docs: svg as component example leveraging swc instead of babeljs (#36410)
## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-05-22 21:01:16 +00:00

13 lines
250 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
})
return config
},
}