Skip to content

Commit

Permalink
Allow libs that ends with next/dist such as i18next, `next-i18nex…
Browse files Browse the repository at this point in the history
…t`, `react-i18next` to be external (#9956)

fixes #9022

Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
felixmosh and Timer committed Jan 6, 2020
1 parent 501587a commit dea80b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[/\\]/))
) {
Expand Down

0 comments on commit dea80b8

Please sign in to comment.