Skip to content

Commit

Permalink
exclude packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Sep 16, 2024
1 parent e0a7699 commit 51b27ed
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions test/mcr.config.mcr.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,16 @@ module.exports = {

},

entryFilter: (entry) => {
if (entry.url.includes('node_modules')) {
return false;
}

if (entry.url.includes('packages/')) {
return false;
}

return true;
entryFilter: {
'**/node_modules/**': false,
'**/lib/packages/**': false,
'**/lib/**': true
},

// sourceFilter: (sourcePath) => sourcePath.search(/src\/.+/) !== -1,
sourceFilter: {
'**/lib/packages/**': false,
'**/lib/**': true
},

all: {
dir: 'lib',
Expand Down

0 comments on commit 51b27ed

Please sign in to comment.