Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed May 10, 2024
1 parent 701850a commit 2ba852f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ module.exports = withBundleAnalyzer({
}
config.experiments = { asyncWebAssembly: true, layers: true }

const fileLoaderRule = config.module.rules.find(
(rule) => {
if (rule && Array.isArray(rule.test)) {
return rule.test.find((test) => test.test('.svg'))
} else if (rule && rule.test instanceof RegExp) {
return rule.test.test('.svg')
}
const fileLoaderRule = config.module.rules.find((rule) => {
if (rule && Array.isArray(rule.test)) {
return rule.test.find((test) => test.test('.svg'))
} else if (rule && rule.test instanceof RegExp) {
return rule.test.test('.svg')
}
)
})
fileLoaderRule.exclude = /\.inline\.svg$/
config.module.rules.push({
test: /\.inline\.svg$/,
Expand Down

0 comments on commit 2ba852f

Please sign in to comment.