Skip to content

Commit

Permalink
Build system: fix source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Apr 4, 2024
1 parent 0bcd57f commit ba16b7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,16 @@ module.exports = {
const nodeModules = path.resolve('./node_modules');

return Object.assign(libraries, {
commons: {
name: 'commons',
test(module) {
return module.resource?.startsWith(nodeModules);
}
},
core: {
name: 'chunk-core',
test: (module) => {
return module.resource?.startsWith(core) || module.resource?.startsWith(nodeModules);
return module.resource?.startsWith(core);
}
},
paapi: {
Expand Down

0 comments on commit ba16b7d

Please sign in to comment.