Skip to content

Commit

Permalink
fix: prevent incorrectly redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo authored and sokra committed Dec 18, 2019
1 parent df9f3eb commit 156a087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/optimize/SideEffectsFlagPlugin.js
Expand Up @@ -115,7 +115,7 @@ class SideEffectsFlagPlugin {
(dep instanceof HarmonyImportSpecifierDependency &&
!dep.namespaceObjectAsContext)
) {
const mapping = map.get(dep.id);
const mapping = map.get(dep._id);
if (mapping) {
dep.redirectedModule = mapping.module;
dep.redirectedId = mapping.exportName;
Expand Down

0 comments on commit 156a087

Please sign in to comment.