diff --git a/lib/module.js b/lib/module.js
index <HASH>..<HASH> 100644
--- a/lib/module.js
+++ b/lib/module.js
@@ -10,7 +10,7 @@ async function redirectModule(moduleOptions) {
   const initialRules = Object.assign([], this.options.redirect, moduleOptions)
 
   // Transform each "from" value to a RegExp for later test
-  const regExpRules = initialRules.map(o => Object.assign(o, { from: new RegExp(o.from) }))
+  const regExpRules = initialRules.map(o => ({ ...o, from: new RegExp(o.from) }))
   const middleware = require('./middleware.js')(regExpRules)
 
   this.addServerMiddleware(middleware)
refactor: use object spread (#<I>)