1
0
Fork 0
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:
Shu Ding 2018-10-08 09:26:05 -05:00 committed by Tim Neutkens
parent 8ac4561745
commit 409cf71a4d

View file

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