mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Move styled-jsx to external modules (#5403)
This commit is contained in:
parent
8ac4561745
commit
409cf71a4d
|
@ -32,7 +32,7 @@ function externalsConfig (dir, isServer) {
|
||||||
return externals
|
return externals
|
||||||
}
|
}
|
||||||
|
|
||||||
const notExternalModules = ['next/app', 'next/document', 'next/error', 'http-status']
|
const notExternalModules = ['next/app', 'next/document', 'next/error', 'http-status', 'styled-jsx']
|
||||||
|
|
||||||
externals.push((context, request, callback) => {
|
externals.push((context, request, callback) => {
|
||||||
if (notExternalModules.indexOf(request) !== -1) {
|
if (notExternalModules.indexOf(request) !== -1) {
|
||||||
|
|
Loading…
Reference in a new issue