Skip to content

Commit

Permalink
Fix bug in component matcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
phyllisstein committed May 27, 2021
1 parent e1b38e2 commit 7d8d7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmd/pack/_client-init.js
Expand Up @@ -11,7 +11,7 @@ function mountComponentModules() {
Object.keys(__webpack_modules__)
.filter(moduleName => /components/.test(moduleName))
.forEach(moduleName => {
const nameExp = /components\/([-A-za-z0-9]+?)\//i.exec(moduleName);
const nameExp = /components\/([-A-za-z0-9]+?)\/client/i.exec(moduleName);

if (!nameExp) return;

Expand Down

0 comments on commit 7d8d7cc

Please sign in to comment.