Skip to content

Commit

Permalink
Core: fix build for node 12 (#11299)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored Apr 5, 2024
1 parent e405ca9 commit a76da0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ module.exports = {
common_deps: {
name: 'common_deps',
test(module) {
return module.resource?.startsWith(nodeModules);
return module.resource && module.resource.startsWith(nodeModules);
}
},
core: {
name: 'chunk-core',
test: (module) => {
return module.resource?.startsWith(core);
return module.resource && module.resource.startsWith(core);
}
},
paapi: {
Expand Down

0 comments on commit a76da0e

Please sign in to comment.