Fix legacy browser support

Add @remix-run/router to babel-loader.
This commit is contained in:
Dmitry Lyzo 2022-10-07 14:39:16 +03:00
parent f860db701e
commit 82db69c378

View File

@ -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: {