Skip to content

Commit bf9d34d

Browse files
timneutkensrauchg
authored andcommitted
Disable uglify the pretty way (vercel#1351)
1 parent 95bd7b7 commit bf9d34d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/using-preact/next.config.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@ module.exports = {
1313

1414
// Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155.
1515
// 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-
})
16+
config.plugins = config.plugins.filter((plugin) => (plugin.constructor.name !== 'UglifyJsPlugin'))
2317

2418
return config
2519
}

0 commit comments

Comments
 (0)