Skip to content

Commit fc394a6

Browse files
committed
fix(driver-pages): some module may not have mod.context like require( 'vertx' ) in es6-promise
1 parent cfb7704 commit fc394a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/driver-pages/lib/webpack/create-base-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function createBaseConfig( nutConfig = {}, appId ) {
4040
cacheGroups: {
4141
vendors: {
4242
test( mod, chunks ) {
43-
if ( !mod.context.includes( 'node_modules' ) ) {
43+
if ( !mod.context || !mod.context.includes( 'node_modules' ) ) {
4444
return false
4545
}
4646

0 commit comments

Comments
 (0)