Skip to content

Commit

Permalink
fix(index): process files to scope plugin #7
Browse files Browse the repository at this point in the history
  • Loading branch information
oklas committed Nov 21, 2020
1 parent 08f3595 commit 831e5de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aliasDangerous.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function aliasDangerous(aliasMap) {
return function(config) {
expandResolveAlias(config.resolve, aliasLocal)
expandRulesInclude(config.module.rules, Object.values(aliasLocal))
expandPluginsScope(config.resolve.plugins, Object.values(aliasLocal))
expandPluginsScope(config.resolve.plugins, Object.values(aliasLocal), Object.values(aliasLocal))
return config
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function alias(aliasMap) {
return function(config) {
expandResolveAlias(config.resolve, aliasLocal)
expandRulesInclude(config.module.rules, Object.values(aliasLocal))
expandPluginsScope(config.resolve.plugins, Object.values(aliasLocal))
expandPluginsScope(config.resolve.plugins, Object.values(aliasLocal), Object.values(aliasLocal))
return config
}
}
Expand Down

0 comments on commit 831e5de

Please sign in to comment.