diff --git a/examples/using-preact/next.config.js b/examples/using-preact/next.config.js index 02e8a329..5a7cd53f 100644 --- a/examples/using-preact/next.config.js +++ b/examples/using-preact/next.config.js @@ -13,13 +13,7 @@ module.exports = { // Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155. // Can be removed once there is a new preact-compat release. - config.plugins = config.plugins.filter((plugin) => { - if (plugin.constructor.name === 'UglifyJsPlugin') { - return false - } else { - return true - } - }) + config.plugins = config.plugins.filter((plugin) => (plugin.constructor.name !== 'UglifyJsPlugin')) return config }