mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Compile all next module files (#6155)
This commit is contained in:
parent
136c37eca9
commit
59280f7747
|
@ -43,7 +43,7 @@ function externalsConfig (isServer, target) {
|
|||
}
|
||||
|
||||
// Default pages have to be transpiled
|
||||
if (res.match(/next[/\\]dist[/\\]pages/) || res.match(/next[/\\]dist[/\\]client/) || res.match(/node_modules[/\\]@babel[/\\]runtime[/\\]/) || res.match(/node_modules[/\\]@babel[/\\]runtime-corejs2[/\\]/)) {
|
||||
if (res.match(/next[/\\]dist[/\\]/) || res.match(/node_modules[/\\]@babel[/\\]runtime[/\\]/) || res.match(/node_modules[/\\]@babel[/\\]runtime-corejs2[/\\]/)) {
|
||||
return callback()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue