Commit dea80b85 authored by Felix Mosheev's avatar Felix Mosheev Committed by Joe Haddad

Allow libs that ends with `next/dist` such as `i18next`, `next-i18next`,…

Allow libs that ends with `next/dist` such as `i18next`, `next-i18next`, `react-i18next` to be external (#9956)

fixes #9022
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 501587ab
......@@ -476,7 +476,7 @@ export default async function getBaseWebpackConfig(
// Default pages have to be transpiled
if (
!res.match(/next[/\\]dist[/\\]next-server[/\\]/) &&
(res.match(/next[/\\]dist[/\\]/) ||
(res.match(/[/\\]next[/\\]dist[/\\]/) ||
res.match(/node_modules[/\\]@babel[/\\]runtime[/\\]/) ||
res.match(/node_modules[/\\]@babel[/\\]runtime-corejs2[/\\]/))
) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment