Skip to content

Commit d3691e1

Browse files
refactor: drop the unreachable bare-import evaluation override
1 parent d4f2bd7 commit d3691e1

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎lib/dependencies/HarmonyImportBareSideEffectDependency.js‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const HarmonyImportSideEffectDependency = require("./HarmonyImportSideEffectDepe
1212
/** @import Module from "../Module" */
1313
/** @import ModuleGraph from "../ModuleGraph" */
1414
/** @import { GetConditionFn } from "../Dependency" */
15-
/** @import { ConnectionState } from "../ModuleGraphConnection" */
1615

1716
/**
1817
* Whether a module is emitted as a file of its own, asked of the module so a
@@ -47,20 +46,6 @@ class HarmonyImportBareSideEffectDependency extends HarmonyImportSideEffectDepen
4746
return refModule.getSideEffectsConnectionState(moduleGraph);
4847
};
4948
}
50-
51-
/**
52-
* Gets module evaluation side effects state.
53-
* @param {ModuleGraph} moduleGraph the module graph
54-
* @returns {ConnectionState} how this dependency connects the module to referencing modules
55-
*/
56-
getModuleEvaluationSideEffectsState(moduleGraph) {
57-
const refModule = moduleGraph.getModule(this);
58-
59-
if (!refModule) return true;
60-
if (emitsOwnFile(refModule)) return true;
61-
62-
return refModule.getSideEffectsConnectionState(moduleGraph);
63-
}
6449
}
6550

6651
makeSerializable(

0 commit comments

Comments
 (0)