From 82db69c378709fde8b71aed6189c5a69eac2bebf Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 7 Oct 2022 14:39:16 +0300 Subject: [PATCH] Fix legacy browser support Add @remix-run/router to babel-loader. --- webpack.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.common.js b/webpack.common.js index fddcfe66a..b7c3ad6f4 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -121,7 +121,7 @@ const config = { }, { test: /\.(js|jsx)$/, - exclude: /node_modules[\\/](?!@uupaa[\\/]dynamic-import-polyfill|blurhash|date-fns|epubjs|flv.js|libarchive.js|marked|react-router|screenfull)/, + exclude: /node_modules[\\/](?!@uupaa[\\/]dynamic-import-polyfill|@remix-run[\\/]router|blurhash|date-fns|epubjs|flv.js|libarchive.js|marked|react-router|screenfull)/, use: [{ loader: 'babel-loader', options: {