@@ -17,7 +17,7 @@ const CommonJsObjectExportDependency = require("./CommonJsObjectExportDependency
1717const CommonJsRequireDependency = require ( "./CommonJsRequireDependency" ) ;
1818const CommonJsSelfReferenceDependency = require ( "./CommonJsSelfReferenceDependency" ) ;
1919const DynamicExports = require ( "./DynamicExports" ) ;
20- const HarmonyExports = require ( "./HarmonyExports " ) ;
20+ const ESMExports = require ( "./ESMExports " ) ;
2121const ModuleDecoratorDependency = require ( "./ModuleDecoratorDependency" ) ;
2222const RuntimeRequirementsDependency = require ( "./RuntimeRequirementsDependency" ) ;
2323
@@ -467,7 +467,7 @@ class CommonJsExportsParserPlugin {
467467 * @returns {boolean | undefined } true, when the expression was handled
468468 */
469469 const handleAssignExport = ( expr , base , members ) => {
470- if ( HarmonyExports . isEnabled ( parser . state ) ) return ;
470+ if ( ESMExports . isEnabled ( parser . state ) ) return ;
471471 // Handle reexporting
472472 const requireCall = parseRequireCall ( parser , expr . right ) ;
473473 if (
@@ -743,7 +743,7 @@ class CommonJsExportsParserPlugin {
743743 * @returns {boolean | void } true, when the expression was handled
744744 */
745745 const handleAccessExport = ( expr , base , members , call ) => {
746- if ( HarmonyExports . isEnabled ( parser . state ) ) return ;
746+ if ( ESMExports . isEnabled ( parser . state ) ) return ;
747747 if ( members . length === 0 ) {
748748 bailout (
749749 `${ base } is used directly at ${ formatLocation (
@@ -833,8 +833,8 @@ class CommonJsExportsParserPlugin {
833833
834834 // Bailouts //
835835 parser . hooks . expression . for ( "module" ) . tap ( PLUGIN_NAME , ( expr ) => {
836- const isHarmony = HarmonyExports . isEnabled ( parser . state ) ;
837- // Silent under ESM, where `HarmonyExports ` governs and nothing was lost.
836+ const isHarmony = ESMExports . isEnabled ( parser . state ) ;
837+ // Silent under ESM, where `ESMExports ` governs and nothing was lost.
838838 bailout (
839839 isHarmony
840840 ? undefined
0 commit comments