From 53e044d440ca29508529ae5cb3f6511bcbd7ac67 Mon Sep 17 00:00:00 2001 From: Constantine Genchevsky Date: Thu, 13 Jan 2022 19:11:17 +0200 Subject: [PATCH] Preserve immutability for options.historyFallback Fixes warnings of DefinePlugin --- lib/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware.js b/lib/middleware.js index e8c6c78..e07a66b 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -120,7 +120,7 @@ const getBuiltins = (app, options) => { await next(); }); - app.use(convert(historyApiFallback(options.historyFallback))); + app.use(convert(historyApiFallback({...options.historyFallback}))); } };