We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95bd7b7 commit bf9d34dCopy full SHA for bf9d34d
examples/using-preact/next.config.js
@@ -13,13 +13,7 @@ module.exports = {
13
14
// Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155.
15
// Can be removed once there is a new preact-compat release.
16
- config.plugins = config.plugins.filter((plugin) => {
17
- if (plugin.constructor.name === 'UglifyJsPlugin') {
18
- return false
19
- } else {
20
- return true
21
- }
22
- })
+ config.plugins = config.plugins.filter((plugin) => (plugin.constructor.name !== 'UglifyJsPlugin'))
23
24
return config
25
}
0 commit comments