From a13a78e3fe2f81f0cbbe4a98da9cbb5a48b6cbed Mon Sep 17 00:00:00 2001 From: magic-akari Date: Tue, 4 Apr 2023 11:05:47 +0800 Subject: [PATCH] feat(es/helpers): Use named export and unify import path (#7182) **BREAKING CHANGE:** Breaking changes for `@swc/helpers`. A new major version `0.5.0` is required. **Related issue:** - Closes https://github.com/swc-project/swc/issues/7157 --- .../codegen/comment-1/es5/output/index.tsx | 2 +- .../regenerator/import-path/1/output/index.js | 2 +- .../deno/paths/issue-2724/output/src/index.ts | 4 +- .../globals/typeofs-declared/output/index.js | 2 +- .../fixture/interop/babel/output/index.js | 8 +- .../fixture/interop/node/output/index.js | 10 +- .../tests/fixture/interop/swc/output/index.js | 8 +- .../issues-0xxx/846/case1/output/index.js | 14 +- .../issues-1xxx/1107/1/output/index.js | 2 +- .../issues-1xxx/1135/1/output/index.ts | 4 +- .../fixture/issues-1xxx/1160/output/entry.ts | 12 +- .../fixture/issues-1xxx/1213/output/index.js | 4 +- .../issues-1xxx/1216/case-1/output/index.js | 4 +- .../issues-1xxx/1216/case-2/output/index.js | 4 +- .../issues-1xxx/1216/case-3/output/index.js | 2 +- .../fixture/issues-1xxx/1219/output/index.ts | 2 +- .../issues-1xxx/1232/cjs/output/index.js | 4 +- .../fixture/issues-1xxx/1259/output/index.js | 4 +- .../fixture/issues-1xxx/1278/output/index.ts | 8 +- .../issues-1xxx/1279/case1/output/index.ts | 2 +- .../issues-1xxx/1306/case1/output/index.ts | 10 +- .../issues-1xxx/1306/case2/output/index.js | 10 +- .../fixture/issues-1xxx/1307/output/index.ts | 4 +- .../issues-1xxx/1333/case1/output/index.js | 10 +- .../issues-1xxx/1333/case2/output/index.js | 120 ++--- .../issues-1xxx/1333/case3/output/index.js | 16 +- .../issues-1xxx/1341/case1/output/index.ts | 10 +- .../fixture/issues-1xxx/1345/output/index.ts | 6 +- .../issues-1xxx/1362/case1/output/index.ts | 26 +- .../issues-1xxx/1421/case1/output/index.ts | 12 +- .../issues-1xxx/1449/case1/output/index.js | 6 +- .../issues-1xxx/1454/case3/output/index.ts | 2 +- .../issues-1xxx/1455/case1/output/index.ts | 4 +- .../issues-1xxx/1455/case2/output/index.ts | 4 +- .../issues-1xxx/1456/case1/output/index.ts | 56 +-- .../issues-1xxx/1456/case2/output/index.ts | 34 +- .../issues-1xxx/1477/case1/output/index.js | 6 +- .../issues-1xxx/1490/case1/output/index.js | 22 +- .../issues-1xxx/1490/full/output/index.js | 44 +- .../issues-1xxx/1505/case1/output/index.ts | 8 +- .../issues-1xxx/1505/case2/output/index.ts | 6 +- .../issues-1xxx/1505/case3/output/index.tsx | 8 +- .../issues-1xxx/1505/case4/output/index.tsx | 6 +- .../issues-1xxx/1505/case5/output/index.tsx | 8 +- .../1505/tsx-default/output/index.ts | 6 +- .../fixture/issues-1xxx/1507/output/index.ts | 2 +- .../issues-1xxx/1515/case1/output/index.ts | 10 +- .../issues-1xxx/1525/case1/output/index.tsx | 4 +- .../issues-1xxx/1554/case1/output/index.js | 4 +- .../issues-1xxx/1554/case2/output/index.js | 4 +- .../issues-1xxx/1557/case1/output/index.js | 2 +- .../issues-1xxx/1575/case1/output/index.js | 4 +- .../issues-1xxx/1575/case2/output/index.js | 4 +- .../issues-1xxx/1612/case1/output/index.ts | 4 +- .../issues-1xxx/1614/case1/output/index.ts | 4 +- .../issues-1xxx/1660/case1/output/index.js | 4 +- .../issues-1xxx/1660/case2/output/index.js | 2 +- .../issues-1xxx/1660/case3/output/index.js | 4 +- .../issues-1xxx/1660/es3/output/index.js | 4 +- .../issues-1xxx/1660/es5/output/index.js | 4 +- .../issues-1xxx/1681/es3/output/input.js | 2 +- .../issues-1xxx/1681/es5/output/input.js | 2 +- .../issues-1xxx/1682/case1/output/index.ts | 4 +- .../issues-1xxx/1682/case2/output/index.ts | 4 +- .../issues-1xxx/1694/case1/output/index.js | 6 +- .../issues-1xxx/1714/case1/output/index.js | 4 +- .../issues-1xxx/1718/case1/output/index.ts | 4 +- .../issues-1xxx/1718/case2/output/index.ts | 2 +- .../case1/async-generator/output/index.js | 4 +- .../issues-1xxx/1721/case1/output/index.js | 8 +- .../issues-1xxx/1722/case1/output/index.js | 4 +- .../issues-1xxx/1729/case1/output/index.ts | 6 +- .../issues-1xxx/1734/case1-B/output/index.js | 4 +- .../issues-1xxx/1734/case2-C/output/index.js | 4 +- .../issues-1xxx/1734/case3-D/output/index.js | 4 +- .../issues-1xxx/1742/case1/output/index.js | 12 +- .../issues-1xxx/1799/case1/output/index.js | 12 +- .../1799/case2-no-loose/output/index.js | 8 +- .../issues-1xxx/1799/case2/output/index.js | 8 +- .../issues-1xxx/1799/case3/output/index.js | 8 +- .../issues-1xxx/1799/case4/output/index.js | 4 +- .../issues-1xxx/1799/case5/output/index.js | 4 +- .../1799/case6-no-jsx/output/index.js | 12 +- .../1799/case7-no-async/output/index.js | 4 +- .../issues-1xxx/1859/case1-js/output/index.js | 6 +- .../issues-1xxx/1859/case2-ts/output/index.ts | 6 +- .../issues-1xxx/1859/case3/output/index.ts | 4 +- .../issues-1xxx/1859/case3/output/lib.ts | 6 +- .../1869/decorator/output/index.ts | 6 +- .../issues-1xxx/1918/es2016/output/index.js | 4 +- .../1918/es5-after-other/output/index.js | 10 +- .../issues-1xxx/1918/es5/output/index.js | 20 +- .../issues-1xxx/1924/case1/output/index.js | 4 +- .../issues-1xxx/1938/cjs/output/index.js | 4 +- .../pr-1524/comment-1/output/index.tsx | 2 +- .../pr-1579/checkingExtend/output/index.js | 4 +- .../issues-2xxx/2021/es2016/output/index.js | 2 +- .../issues-2xxx/2021/es2017/output/index.js | 2 +- .../issues-2xxx/2021/es2018/output/index.js | 2 +- .../issues-2xxx/2021/es2019/output/index.js | 2 +- .../issues-2xxx/2021/es2020/output/index.js | 2 +- .../issues-2xxx/2021/es2021/output/index.js | 2 +- .../issues-2xxx/2021/full/output/index.js | 4 +- .../issues-2xxx/2024/es2016/output/index.js | 2 +- .../issues-2xxx/2024/full/output/index.js | 8 +- .../2024/no-module/output/index.js | 4 +- .../fixture/issues-2xxx/2050/output/index.ts | 4 +- .../issues-2xxx/2056/1/output/index.js | 4 +- .../issues-2xxx/2091/case1/output/index.js | 2 +- .../fixture/issues-2xxx/2139/output/index.tsx | 2 +- .../issues-2xxx/2164/es2015/output/index.js | 2 +- .../issues-2xxx/2164/es2016/output/index.js | 2 +- .../issues-2xxx/2164/es5/output/index.js | 4 +- .../issues-2xxx/2232/case1/output/index.js | 10 +- .../issues-2xxx/2232/case2/output/index.ts | 6 +- .../issues-2xxx/2248/es5/output/index.js | 4 +- .../fixture/issues-2xxx/2336/output/input.tsx | 2 +- .../issues-2xxx/2413/1/output/index.js | 4 +- .../issues-2xxx/2428/1/output/index.ts | 28 +- .../issues-2xxx/2468/1/output/index.js | 2 +- .../issues-2xxx/2476/1/output/index.js | 2 +- .../issues-2xxx/2531/1/output/index.js | 2 +- .../issues-2xxx/2531/2/output/index.js | 2 +- .../fixture/issues-2xxx/2717/output/index.ts | 22 +- .../issues-2xxx/2758/1/output/index.js | 2 +- .../issues-2xxx/2822/1/output/index.js | 2 +- .../fixture/issues-2xxx/2844/output/index.js | 4 +- .../issues-2xxx/2856/1/output/index.js | 4 +- .../issues-2xxx/2964/case-2/output/index.ts | 4 +- .../issues-2xxx/2964/case-3/output/index.ts | 4 +- .../issues-2xxx/2964/case-5/output/index.ts | 6 +- .../issues-2xxx/2990/1/output/index.ts | 2 +- .../issues-2xxx/2990/2/output/index.ts | 2 +- .../issues-3xxx/3055/1/output/index.ts | 6 +- .../issues-3xxx/3272/1/output/index.js | 4 +- .../fixture/issues-3xxx/3337/output/index.ts | 20 +- .../issues-3xxx/3609/1/output/index.js | 2 +- .../issues-3xxx/3686/1/output/index.ts | 6 +- .../issues-4xxx/4006/1/output/index.ts | 2 +- .../fixture/issues-4xxx/4021/output/index.ts | 2 +- .../issues-4xxx/4063/1/output/index.ts | 10 +- .../issues-4xxx/4108/1/output/index.ts | 12 +- .../issues-4xxx/4127/1/output/index.ts | 4 +- .../issues-4xxx/4127/2/output/index.ts | 2 +- .../issues-4xxx/4208/1/output/index.ts | 8 +- .../issues-4xxx/4224/1/output/index.js | 6 +- .../issues-4xxx/4224/2/output/index.js | 2 +- .../issues-4xxx/4224/3/output/index.js | 8 +- .../fixture/issues-4xxx/4226/1/output/exec.js | 4 +- .../fixture/issues-4xxx/4226/2/output/exec.js | 2 +- .../fixture/issues-4xxx/4226/3/output/exec.js | 8 +- .../fixture/issues-4xxx/4891/output/index.ts | 4 +- .../fixture/issues-4xxx/4899/output/index.ts | 5 +- .../fixture/issues-4xxx/4988/output/index.ts | 4 +- .../issues-5xxx/5068/1/output/index.js | 2 +- .../issues-5xxx/5068/2/output/index.js | 6 +- .../fixture/issues-5xxx/5102/output/index.js | 4 +- .../issues-5xxx/5189/1/output/index.ts | 4 +- .../fixture/issues-5xxx/5258/output/index.ts | 10 +- .../issues-5xxx/5313/1/output/index.js | 4 +- .../fixture/issues-5xxx/5556/output/index.js | 2 +- .../fixture/issues-5xxx/5557/output/index.js | 4 +- .../issues-5xxx/5558/1/output/index.js | 2 +- .../issues-5xxx/5558/2/output/index.js | 8 +- .../fixture/issues-5xxx/5596/output/index.js | 8 +- .../fixture/issues-5xxx/5608/output/index.js | 2 +- .../fixture/issues-5xxx/5626/output/index.ts | 8 +- .../fixture/issues-5xxx/5859/output/index.js | 8 +- .../fixture/issues-6xxx/6028/output/index.js | 4 +- .../fixture/issues-6xxx/6306/output/index.js | 2 +- .../fixture/issues-6xxx/6309/output/input.js | 10 +- .../fixture/issues-6xxx/6330/output/input.js | 2 +- .../fixture/issues-6xxx/6353/output/input.js | 2 +- .../fixture/issues-6xxx/6373/output/input.js | 2 +- .../fixture/issues-6xxx/6390/output/input.js | 4 +- .../issues-6xxx/6392/1/output/index.js | 2 +- .../issues-6xxx/6392/2/output/index.js | 2 +- .../issues-6xxx/6508/2/output/index.js | 4 +- .../fixture/issues-6xxx/6727/output/index.js | 12 +- .../fixture/issues-6xxx/6730/output/index.ts | 2 +- .../fixture/issues-6xxx/6871/output/index.js | 2 +- .../issues-6xxx/6951/1/output/index.ts | 6 +- .../issues-6xxx/6951/2/output/index.ts | 2 +- .../issues-6xxx/6951/3/output/index.ts | 4 +- .../issues-6xxx/6951/4/output/index.ts | 6 +- .../2020_JS/output/index.js | 4 +- .../2020_TS/output/index.ts | 6 +- .../2020_JS/output/index.js | 4 +- .../2020_TS/output/index.ts | 4 +- .../fixture/jest/issue-6540/output/index.ts | 4 +- .../module/ignore-dynamic/1/output/index.js | 4 +- .../new-target/output/class-extends-error.ts | 12 +- .../fixture/next.js/40399/1/output/index.js | 4 +- .../fixture/next.js/40399/2/output/index.js | 4 +- .../fixture/next.js/40399/3/output/index.js | 14 +- .../shared/lib/router/1/output/index.ts | 8 +- .../next.js/slack-2/es5/output/index.js | 4 +- .../tests/fixture/shopify/001/output/index.js | 6 +- .../tests/fixture/shopify/002/output/index.js | 8 +- .../fixture/shopify/003-env/output/index.js | 8 +- .../fixture/shopify/004-jest/output/index.js | 8 +- .../shopify/005-no-module/output/index.js | 2 +- .../fixture/sourcemap/002/output/index.js | 4 +- .../fixture/sourcemap/003/output/index.js | 2 +- .../fixture/sourcemap/003/output/index.map | 2 +- .../fixture/sourcemap/005/output/index.js | 4 +- .../fixture/sourcemap/006/output/index.js | 4 +- .../011/output/CommentControlller.ts | 6 +- .../sourcemap/012/output/CommentService.ts | 6 +- .../sourcemap/013/output/PistController.ts | 6 +- .../sourcemap/014/output/UserController.ts | 6 +- .../issue-3854/1-true/output/index.map | 2 +- .../issue-3854/1-true/output/index.ts | 130 ++--- .../issue-3854/2-inline/output/index.ts | 132 ++--- .../swc-node-335/case1/output/index.js | 2 +- ...ClassWithSameNameAndCommonRoot.1.normal.js | 2 +- ...assWithSameNameAndCommonRoot.2.minified.js | 2 +- ...mberThatUsesClassTypeParameter.1.normal.js | 2 +- ...erThatUsesClassTypeParameter.2.minified.js | 2 +- ...assStaticFunctionOfTheSameName.1.normal.js | 2 +- ...sStaticFunctionOfTheSameName.2.minified.js | 2 +- ...assStaticFunctionOfTheSameName.1.normal.js | 2 +- ...sStaticFunctionOfTheSameName.2.minified.js | 2 +- ...nctionUsingClassPrivateStatics.1.normal.js | 2 +- ...tionUsingClassPrivateStatics.2.minified.js | 2 +- ...ExportedFunctionThatShareAName.1.normal.js | 2 +- ...portedFunctionThatShareAName.2.minified.js | 2 +- ...ExportedFunctionThatShareAName.1.normal.js | 2 +- ...portedFunctionThatShareAName.2.minified.js | 2 +- ...leAndExportedVarThatShareAName.1.normal.js | 2 +- ...AndExportedVarThatShareAName.2.minified.js | 2 +- ...ndNonExportedVarThatShareAName.1.normal.js | 2 +- ...NonExportedVarThatShareAName.2.minified.js | 2 +- ...oduleWithSameNameAndCommonRoot.1.normal.js | 4 +- ...uleWithSameNameAndCommonRoot.2.minified.js | 4 +- .../tsc-references/ES5For-of26.1.normal.js | 2 +- .../tsc-references/ES5For-of26.2.minified.js | 2 +- .../tsc-references/ES5For-of28.1.normal.js | 2 +- .../tsc-references/ES5For-of28.2.minified.js | 2 +- .../tsc-references/ES5For-of30.1.normal.js | 2 +- .../tsc-references/ES5For-of30.2.minified.js | 2 +- .../tsc-references/ES5For-of36.1.normal.js | 2 +- .../tsc-references/ES5For-of36.2.minified.js | 2 +- .../ES5For-ofTypeCheck10.1.normal.js | 2 +- .../ES5For-ofTypeCheck10.2.minified.js | 2 +- .../ES5SymbolProperty1.1.normal.js | 2 +- .../ES5SymbolProperty1.2.minified.js | 2 +- .../ES5SymbolProperty2.1.normal.js | 2 +- .../ES5SymbolProperty2.2.minified.js | 2 +- .../ES5SymbolProperty3.1.normal.js | 2 +- .../ES5SymbolProperty3.2.minified.js | 2 +- .../ES5SymbolProperty4.1.normal.js | 2 +- .../ES5SymbolProperty4.2.minified.js | 2 +- .../ES5SymbolProperty5.1.normal.js | 2 +- .../ES5SymbolProperty5.2.minified.js | 2 +- .../ES5SymbolProperty6.1.normal.js | 2 +- .../ES5SymbolProperty6.2.minified.js | 2 +- .../ES5SymbolProperty7.1.normal.js | 2 +- .../ES5SymbolProperty7.2.minified.js | 2 +- ...oduleWithSameNameAndCommonRoot.1.normal.js | 2 +- ...uleWithSameNameAndCommonRoot.2.minified.js | 2 +- ...sInterfaceWithInaccessibleType.1.normal.js | 2 +- ...nterfaceWithInaccessibleType.2.minified.js | 2 +- ...itageListMemberTypeAnnotations.1.normal.js | 6 +- ...ageListMemberTypeAnnotations.2.minified.js | 6 +- ...leTypeInIndexerTypeAnnotations.1.normal.js | 2 +- ...TypeInIndexerTypeAnnotations.2.minified.js | 2 +- ...eTypeInTypeParameterConstraint.1.normal.js | 6 +- ...ypeInTypeParameterConstraint.2.minified.js | 6 +- ...rameterAndReturnTypeAnnotation.1.normal.js | 2 +- ...meterAndReturnTypeAnnotation.2.minified.js | 2 +- ...TypesInParameterTypeAnnotation.1.normal.js | 2 +- ...pesInParameterTypeAnnotation.2.minified.js | 2 +- ...bleTypesInReturnTypeAnnotation.1.normal.js | 2 +- ...eTypesInReturnTypeAnnotation.2.minified.js | 2 +- ...sibleTypesOnItsExportedMembers.1.normal.js | 2 +- ...bleTypesOnItsExportedMembers.2.minified.js | 2 +- ...leTypesInMemberTypeAnnotations.1.normal.js | 2 +- ...TypesInMemberTypeAnnotations.2.minified.js | 2 +- ...sInNestedMemberTypeAnnotations.1.normal.js | 2 +- ...nNestedMemberTypeAnnotations.2.minified.js | 2 +- ...InaccessibleTypeAsTypeArgument.1.normal.js | 2 +- ...accessibleTypeAsTypeArgument.2.minified.js | 2 +- ...ClassWithSameNameAndCommonRoot.1.normal.js | 4 +- ...assWithSameNameAndCommonRoot.2.minified.js | 4 +- ...dEnumWithSameNameAndCommonRoot.1.normal.js | 2 +- ...numWithSameNameAndCommonRoot.2.minified.js | 2 +- ...hExportedAndNonExportedClasses.1.normal.js | 2 +- ...xportedAndNonExportedClasses.2.minified.js | 2 +- ...ortedAndNonExportedImportAlias.1.normal.js | 2 +- ...tedAndNonExportedImportAlias.2.minified.js | 2 +- .../tsc-references/Protected3.1.normal.js | 2 +- .../tsc-references/Protected3.2.minified.js | 2 +- .../tsc-references/Protected5.1.normal.js | 2 +- .../tsc-references/Protected5.2.minified.js | 2 +- .../tsc-references/Protected9.1.normal.js | 2 +- .../tsc-references/Protected9.2.minified.js | 2 +- ...onExportedClassesOfTheSameName.1.normal.js | 2 +- ...ExportedClassesOfTheSameName.2.minified.js | 2 +- ...ExportedLocalVarsOfTheSameName.1.normal.js | 2 +- ...portedLocalVarsOfTheSameName.2.minified.js | 2 +- ...thExportedClassesOfTheSameName.1.normal.js | 2 +- ...ExportedClassesOfTheSameName.2.minified.js | 2 +- ...ExportedLocalVarsOfTheSameName.1.normal.js | 2 +- ...portedLocalVarsOfTheSameName.2.minified.js | 2 +- ...thExportedModulesOfTheSameName.1.normal.js | 2 +- ...ExportedModulesOfTheSameName.2.minified.js | 2 +- ...SameNameAndDifferentCommonRoot.1.normal.js | 2 +- ...meNameAndDifferentCommonRoot.2.minified.js | 2 +- ...thTheSameNameAndSameCommonRoot.1.normal.js | 2 +- ...TheSameNameAndSameCommonRoot.2.minified.js | 2 +- .../TypeGuardWithArrayUnion.1.normal.js | 4 +- .../TypeGuardWithArrayUnion.2.minified.js | 4 +- ...bstractProperty(target=es2015).1.normal.js | 2 +- ...tractProperty(target=es2015).2.minified.js | 2 +- .../accessorWithES5.1.normal.js | 4 +- .../accessorWithES5.2.minified.js | 4 +- ...smatchedAccessibilityModifiers.1.normal.js | 4 +- ...atchedAccessibilityModifiers.2.minified.js | 4 +- ...cessorsAreNotContextuallyTyped.1.normal.js | 4 +- ...ssorsAreNotContextuallyTyped.2.minified.js | 4 +- ...ionOperatorWithAnyAndEveryType.1.normal.js | 2 +- ...nOperatorWithAnyAndEveryType.2.minified.js | 2 +- ...ionOperatorWithInvalidOperands.1.normal.js | 2 +- ...nOperatorWithInvalidOperands.2.minified.js | 2 +- .../tests/tsc-references/ambient.1.normal.js | 2 +- .../tsc-references/ambient.2.minified.js | 2 +- ...mdImportNotAsPrimaryExpression.1.normal.js | 5 +- ...ImportNotAsPrimaryExpression.2.minified.js | 6 +- ...ropertyInitializerDoesntNarrow.1.normal.js | 2 +- ...pertyInitializerDoesntNarrow.2.minified.js | 2 +- .../anyAsGenericFunctionCall.1.normal.js | 2 +- .../anyAsGenericFunctionCall.2.minified.js | 2 +- .../anyAssignabilityInInheritance.1.normal.js | 2 +- ...nyAssignabilityInInheritance.2.minified.js | 2 +- .../anyAssignableToEveryType.1.normal.js | 2 +- .../anyAssignableToEveryType.2.minified.js | 2 +- .../anyAssignableToEveryType2.1.normal.js | 2 +- .../anyAssignableToEveryType2.2.minified.js | 2 +- .../apparentTypeSubtyping.1.normal.js | 6 +- .../apparentTypeSubtyping.2.minified.js | 6 +- .../apparentTypeSupertype.1.normal.js | 6 +- .../apparentTypeSupertype.2.minified.js | 6 +- ...mentExpressionContextualTyping.1.normal.js | 4 +- ...ntExpressionContextualTyping.2.minified.js | 4 +- .../arityAndOrderCompatibility01.1.normal.js | 2 +- ...arityAndOrderCompatibility01.2.minified.js | 2 +- .../arrayAssignmentPatternWithAny.1.normal.js | 2 +- ...rrayAssignmentPatternWithAny.2.minified.js | 2 +- ...eralExpressionContextualTyping.1.normal.js | 2 +- ...alExpressionContextualTyping.2.minified.js | 2 +- .../arrayLiteralSpread.1.normal.js | 2 +- .../arrayLiteralSpread.2.minified.js | 2 +- .../arrayLiteralSpreadES5iterable.1.normal.js | 2 +- ...rrayLiteralSpreadES5iterable.2.minified.js | 2 +- .../tsc-references/arrayLiterals.1.normal.js | 6 +- .../arrayLiterals.2.minified.js | 6 +- .../arrayLiterals2ES5.1.normal.js | 2 +- .../arrayLiterals2ES5.2.minified.js | 2 +- .../tsc-references/arrayLiterals3.1.normal.js | 2 +- .../arrayLiterals3.2.minified.js | 2 +- ...yLiteralsWithRecursiveGenerics.1.normal.js | 6 +- ...iteralsWithRecursiveGenerics.2.minified.js | 6 +- .../arrayOfFunctionTypes3.1.normal.js | 2 +- .../arrayOfFunctionTypes3.2.minified.js | 2 +- .../arraySpreadImportHelpers.1.normal.js | 2 +- .../arraySpreadImportHelpers.2.minified.js | 2 +- .../arrowFunctionExpressions.1.normal.js | 6 +- .../arrowFunctionExpressions.2.minified.js | 6 +- .../tsc-references/asOperator3.1.normal.js | 2 +- .../tsc-references/asOperator3.2.minified.js | 2 +- .../tsc-references/asOperatorASI.1.normal.js | 4 +- .../asOperatorASI.2.minified.js | 4 +- .../assignAnyToEveryType.1.normal.js | 2 +- .../assignAnyToEveryType.2.minified.js | 2 +- .../assignEveryTypeToAny.1.normal.js | 2 +- .../assignEveryTypeToAny.2.minified.js | 2 +- ...nmentCompatWithCallSignatures3.1.normal.js | 6 +- ...entCompatWithCallSignatures3.2.minified.js | 6 +- ...nmentCompatWithCallSignatures4.1.normal.js | 6 +- ...entCompatWithCallSignatures4.2.minified.js | 6 +- ...nmentCompatWithCallSignatures5.1.normal.js | 6 +- ...entCompatWithCallSignatures5.2.minified.js | 6 +- ...nmentCompatWithCallSignatures6.1.normal.js | 6 +- ...entCompatWithCallSignatures6.2.minified.js | 6 +- ...CompatWithConstructSignatures3.1.normal.js | 6 +- ...mpatWithConstructSignatures3.2.minified.js | 6 +- ...CompatWithConstructSignatures4.1.normal.js | 6 +- ...mpatWithConstructSignatures4.2.minified.js | 6 +- ...CompatWithConstructSignatures5.1.normal.js | 6 +- ...mpatWithConstructSignatures5.2.minified.js | 6 +- ...CompatWithConstructSignatures6.1.normal.js | 6 +- ...mpatWithConstructSignatures6.2.minified.js | 6 +- ...gnaturesWithOptionalParameters.1.normal.js | 2 +- ...aturesWithOptionalParameters.2.minified.js | 2 +- ...gnmentCompatWithNumericIndexer.1.normal.js | 6 +- ...mentCompatWithNumericIndexer.2.minified.js | 6 +- ...nmentCompatWithNumericIndexer3.1.normal.js | 6 +- ...entCompatWithNumericIndexer3.2.minified.js | 6 +- ...ignmentCompatWithObjectMembers.1.normal.js | 2 +- ...nmentCompatWithObjectMembers.2.minified.js | 2 +- ...gnmentCompatWithObjectMembers2.1.normal.js | 2 +- ...mentCompatWithObjectMembers2.2.minified.js | 2 +- ...gnmentCompatWithObjectMembers3.1.normal.js | 2 +- ...mentCompatWithObjectMembers3.2.minified.js | 2 +- ...gnmentCompatWithObjectMembers4.1.normal.js | 6 +- ...mentCompatWithObjectMembers4.2.minified.js | 6 +- ...gnmentCompatWithObjectMembers5.1.normal.js | 2 +- ...mentCompatWithObjectMembers5.2.minified.js | 2 +- ...WithObjectMembersAccessibility.1.normal.js | 2 +- ...thObjectMembersAccessibility.2.minified.js | 2 +- ...tWithObjectMembersNumericNames.1.normal.js | 2 +- ...ithObjectMembersNumericNames.2.minified.js | 2 +- ...atWithObjectMembersOptionality.1.normal.js | 6 +- ...WithObjectMembersOptionality.2.minified.js | 6 +- ...tWithObjectMembersOptionality2.1.normal.js | 6 +- ...ithObjectMembersOptionality2.2.minified.js | 6 +- ...bjectMembersStringNumericNames.1.normal.js | 2 +- ...ectMembersStringNumericNames.2.minified.js | 2 +- ...ignmentCompatWithStringIndexer.1.normal.js | 6 +- ...nmentCompatWithStringIndexer.2.minified.js | 6 +- ...gnmentCompatWithStringIndexer3.1.normal.js | 2 +- ...mentCompatWithStringIndexer3.2.minified.js | 2 +- ...mentToParenthesizedIdentifiers.1.normal.js | 2 +- ...ntToParenthesizedIdentifiers.2.minified.js | 2 +- .../tsc-references/assignments.1.normal.js | 2 +- .../tsc-references/assignments.2.minified.js | 2 +- .../asyncAliasReturnType_es5.1.normal.js | 4 +- .../asyncAliasReturnType_es5.2.minified.js | 4 +- .../asyncAliasReturnType_es6.1.normal.js | 2 +- .../asyncAliasReturnType_es6.2.minified.js | 2 +- .../asyncArrowFunction10_es5.1.normal.js | 4 +- .../asyncArrowFunction10_es5.2.minified.js | 4 +- .../asyncArrowFunction10_es6.1.normal.js | 2 +- .../asyncArrowFunction10_es6.2.minified.js | 2 +- .../asyncArrowFunction11_es5.1.normal.js | 8 +- .../asyncArrowFunction11_es5.2.minified.js | 8 +- .../asyncArrowFunction1_es5.1.normal.js | 4 +- .../asyncArrowFunction1_es5.2.minified.js | 4 +- .../asyncArrowFunction1_es6.1.normal.js | 2 +- .../asyncArrowFunction1_es6.2.minified.js | 2 +- ...wFunctionCapturesArguments_es5.1.normal.js | 6 +- ...unctionCapturesArguments_es5.2.minified.js | 6 +- ...wFunctionCapturesArguments_es6.1.normal.js | 2 +- ...unctionCapturesArguments_es6.2.minified.js | 2 +- ...cArrowFunctionCapturesThis_es5.1.normal.js | 6 +- ...rrowFunctionCapturesThis_es5.2.minified.js | 6 +- ...cArrowFunctionCapturesThis_es6.1.normal.js | 2 +- ...rrowFunctionCapturesThis_es6.2.minified.js | 2 +- .../asyncAwaitIsolatedModules_es5.1.normal.js | 6 +- ...syncAwaitIsolatedModules_es5.2.minified.js | 6 +- .../asyncAwaitIsolatedModules_es6.1.normal.js | 2 +- ...syncAwaitIsolatedModules_es6.2.minified.js | 2 +- .../asyncAwaitNestedClasses_es5.1.normal.js | 6 +- .../asyncAwaitNestedClasses_es5.2.minified.js | 6 +- .../tsc-references/asyncAwait_es5.1.normal.js | 6 +- .../asyncAwait_es5.2.minified.js | 6 +- .../tsc-references/asyncAwait_es6.1.normal.js | 2 +- .../asyncAwait_es6.2.minified.js | 2 +- ...asyncFunctionDeclaration13_es5.1.normal.js | 4 +- ...yncFunctionDeclaration13_es5.2.minified.js | 4 +- ...asyncFunctionDeclaration13_es6.1.normal.js | 2 +- ...yncFunctionDeclaration13_es6.2.minified.js | 2 +- ...asyncFunctionDeclaration14_es5.1.normal.js | 4 +- ...yncFunctionDeclaration14_es5.2.minified.js | 4 +- ...asyncFunctionDeclaration14_es6.1.normal.js | 2 +- ...yncFunctionDeclaration14_es6.2.minified.js | 2 +- .../asyncFunctionDeclaration1_es5.1.normal.js | 4 +- ...syncFunctionDeclaration1_es5.2.minified.js | 4 +- .../asyncFunctionDeclaration1_es6.1.normal.js | 2 +- ...syncFunctionDeclaration1_es6.2.minified.js | 2 +- ...clarationCapturesArguments_es5.1.normal.js | 6 +- ...arationCapturesArguments_es5.2.minified.js | 6 +- .../asyncImportedPromise_es5.1.normal.js | 28 +- .../asyncImportedPromise_es5.2.minified.js | 12 +- .../asyncImportedPromise_es6.1.normal.js | 4 +- .../asyncImportedPromise_es6.2.minified.js | 2 +- ...yncMethodWithSuperConflict_es6.1.normal.js | 2 +- ...cMethodWithSuperConflict_es6.2.minified.js | 2 +- .../asyncMethodWithSuper_es5.1.normal.js | 16 +- .../asyncMethodWithSuper_es5.2.minified.js | 16 +- .../asyncMethodWithSuper_es6.1.normal.js | 4 +- .../asyncMethodWithSuper_es6.2.minified.js | 4 +- .../asyncMultiFile_es5.1.normal.js | 4 +- .../asyncMultiFile_es5.2.minified.js | 4 +- .../asyncMultiFile_es6.1.normal.js | 2 +- .../asyncMultiFile_es6.2.minified.js | 2 +- ...ParenthesizedArrowFunction_es5.1.normal.js | 4 +- ...renthesizedArrowFunction_es5.2.minified.js | 4 +- ...ParenthesizedArrowFunction_es6.1.normal.js | 2 +- ...renthesizedArrowFunction_es6.2.minified.js | 2 +- .../asyncUseStrict_es5.1.normal.js | 4 +- .../asyncUseStrict_es5.2.minified.js | 4 +- .../asyncUseStrict_es6.1.normal.js | 2 +- .../asyncUseStrict_es6.2.minified.js | 2 +- .../asyncWithVarShadowing_es6.1.normal.js | 6 +- .../asyncWithVarShadowing_es6.2.minified.js | 6 +- .../awaitBinaryExpression1_es5.1.normal.js | 4 +- .../awaitBinaryExpression1_es5.2.minified.js | 4 +- .../awaitBinaryExpression1_es6.1.normal.js | 2 +- .../awaitBinaryExpression1_es6.2.minified.js | 2 +- .../awaitBinaryExpression2_es5.1.normal.js | 4 +- .../awaitBinaryExpression2_es5.2.minified.js | 4 +- .../awaitBinaryExpression2_es6.1.normal.js | 2 +- .../awaitBinaryExpression2_es6.2.minified.js | 2 +- .../awaitBinaryExpression3_es5.1.normal.js | 4 +- .../awaitBinaryExpression3_es5.2.minified.js | 4 +- .../awaitBinaryExpression3_es6.1.normal.js | 2 +- .../awaitBinaryExpression3_es6.2.minified.js | 2 +- .../awaitBinaryExpression4_es5.1.normal.js | 4 +- .../awaitBinaryExpression4_es5.2.minified.js | 4 +- .../awaitBinaryExpression4_es6.1.normal.js | 2 +- .../awaitBinaryExpression4_es6.2.minified.js | 2 +- .../awaitBinaryExpression5_es5.1.normal.js | 4 +- .../awaitBinaryExpression5_es5.2.minified.js | 4 +- .../awaitBinaryExpression5_es6.1.normal.js | 2 +- .../awaitBinaryExpression5_es6.2.minified.js | 2 +- .../awaitCallExpression1_es5.1.normal.js | 4 +- .../awaitCallExpression1_es5.2.minified.js | 4 +- .../awaitCallExpression1_es6.1.normal.js | 2 +- .../awaitCallExpression1_es6.2.minified.js | 2 +- .../awaitCallExpression2_es5.1.normal.js | 4 +- .../awaitCallExpression2_es5.2.minified.js | 4 +- .../awaitCallExpression2_es6.1.normal.js | 2 +- .../awaitCallExpression2_es6.2.minified.js | 2 +- .../awaitCallExpression3_es5.1.normal.js | 4 +- .../awaitCallExpression3_es5.2.minified.js | 4 +- .../awaitCallExpression3_es6.1.normal.js | 2 +- .../awaitCallExpression3_es6.2.minified.js | 2 +- .../awaitCallExpression4_es5.1.normal.js | 4 +- .../awaitCallExpression4_es5.2.minified.js | 4 +- .../awaitCallExpression4_es6.1.normal.js | 2 +- .../awaitCallExpression4_es6.2.minified.js | 2 +- .../awaitCallExpression5_es5.1.normal.js | 4 +- .../awaitCallExpression5_es5.2.minified.js | 4 +- .../awaitCallExpression5_es6.1.normal.js | 2 +- .../awaitCallExpression5_es6.2.minified.js | 2 +- .../awaitCallExpression6_es5.1.normal.js | 4 +- .../awaitCallExpression6_es5.2.minified.js | 4 +- .../awaitCallExpression6_es6.1.normal.js | 2 +- .../awaitCallExpression6_es6.2.minified.js | 2 +- .../awaitCallExpression7_es5.1.normal.js | 4 +- .../awaitCallExpression7_es5.2.minified.js | 4 +- .../awaitCallExpression7_es6.1.normal.js | 2 +- .../awaitCallExpression7_es6.2.minified.js | 2 +- .../awaitCallExpression8_es5.1.normal.js | 4 +- .../awaitCallExpression8_es5.2.minified.js | 4 +- .../awaitCallExpression8_es6.1.normal.js | 2 +- .../awaitCallExpression8_es6.2.minified.js | 2 +- .../awaitClassExpression_es5.1.normal.js | 10 +- .../awaitClassExpression_es5.2.minified.js | 10 +- .../awaitClassExpression_es6.1.normal.js | 2 +- .../awaitClassExpression_es6.2.minified.js | 2 +- .../tsc-references/awaitUnion_es5.1.normal.js | 4 +- .../awaitUnion_es5.2.minified.js | 4 +- .../tsc-references/awaitUnion_es6.1.normal.js | 2 +- .../awaitUnion_es6.2.minified.js | 2 +- .../await_unaryExpression_es6.1.normal.js | 2 +- .../await_unaryExpression_es6.2.minified.js | 2 +- ...onTypeOfConditionalExpressions.1.normal.js | 6 +- ...TypeOfConditionalExpressions.2.minified.js | 6 +- ...nTypeOfConditionalExpressions2.1.normal.js | 6 +- ...ypeOfConditionalExpressions2.2.minified.js | 6 +- .../bestCommonTypeOfTuple2.1.normal.js | 6 +- .../bestCommonTypeOfTuple2.2.minified.js | 6 +- ...wiseNotOperatorWithBooleanType.1.normal.js | 2 +- ...seNotOperatorWithBooleanType.2.minified.js | 2 +- ...twiseNotOperatorWithNumberType.1.normal.js | 2 +- ...iseNotOperatorWithNumberType.2.minified.js | 2 +- ...twiseNotOperatorWithStringType.1.normal.js | 2 +- ...iseNotOperatorWithStringType.2.minified.js | 2 +- ...callChainWithSuper(target=es5).1.normal.js | 10 +- ...llChainWithSuper(target=es5).2.minified.js | 10 +- ...IncorrectNumberOfTypeArguments.1.normal.js | 2 +- ...correctNumberOfTypeArguments.2.minified.js | 2 +- ...cFunctionWithZeroTypeArguments.1.normal.js | 2 +- ...unctionWithZeroTypeArguments.2.minified.js | 2 +- ...nericFunctionWithTypeArguments.1.normal.js | 2 +- ...ricFunctionWithTypeArguments.2.minified.js | 2 +- .../tsc-references/callOverload.1.normal.js | 2 +- .../tsc-references/callOverload.2.minified.js | 2 +- ...ureAssignabilityInInheritance2.1.normal.js | 6 +- ...eAssignabilityInInheritance2.2.minified.js | 6 +- ...ureAssignabilityInInheritance3.1.normal.js | 6 +- ...eAssignabilityInInheritance3.2.minified.js | 6 +- ...ureAssignabilityInInheritance4.1.normal.js | 6 +- ...eAssignabilityInInheritance4.2.minified.js | 6 +- ...ureAssignabilityInInheritance5.1.normal.js | 6 +- ...eAssignabilityInInheritance5.2.minified.js | 6 +- ...ureAssignabilityInInheritance6.1.normal.js | 6 +- ...eAssignabilityInInheritance6.2.minified.js | 6 +- ...tReturnTypeAnnotationInference.1.normal.js | 4 +- ...eturnTypeAnnotationInference.2.minified.js | 4 +- ...gnaturesWithOptionalParameters.1.normal.js | 2 +- ...aturesWithOptionalParameters.2.minified.js | 2 +- ...naturesWithOptionalParameters2.1.normal.js | 2 +- ...turesWithOptionalParameters2.2.minified.js | 2 +- .../callWithMissingVoid.1.normal.js | 2 +- .../callWithMissingVoid.2.minified.js | 2 +- .../tsc-references/callWithSpread.1.normal.js | 12 +- .../callWithSpread.2.minified.js | 12 +- .../callWithSpread2.1.normal.js | 2 +- .../callWithSpread2.2.minified.js | 2 +- .../callWithSpread3.1.normal.js | 2 +- .../callWithSpread3.2.minified.js | 2 +- .../callWithSpread5.1.normal.js | 2 +- .../callWithSpread5.2.minified.js | 2 +- .../tsc-references/callbackTag2.1.normal.js | 2 +- .../tsc-references/callbackTag2.2.minified.js | 2 +- .../tsc-references/castingTuple.1.normal.js | 6 +- .../tsc-references/castingTuple.2.minified.js | 6 +- .../tests/tsc-references/chained.1.normal.js | 2 +- .../tsc-references/chained.2.minified.js | 2 +- .../tests/tsc-references/chained2.1.normal.js | 2 +- .../tsc-references/chained2.2.minified.js | 2 +- .../checkJsdocTypeTag7.1.normal.js | 2 +- .../checkJsdocTypeTag7.2.minified.js | 2 +- ...kJsdocTypeTagOnObjectProperty1.1.normal.js | 2 +- ...sdocTypeTagOnObjectProperty1.2.minified.js | 2 +- ...checkJsxChildrenCanBeTupleType.1.normal.js | 6 +- ...eckJsxChildrenCanBeTupleType.2.minified.js | 6 +- .../checkJsxChildrenProperty10.1.normal.js | 2 +- .../checkJsxChildrenProperty10.2.minified.js | 2 +- .../checkJsxChildrenProperty11.1.normal.js | 2 +- .../checkJsxChildrenProperty11.2.minified.js | 2 +- ...sxIntersectionElementPropsType.1.normal.js | 6 +- ...IntersectionElementPropsType.2.minified.js | 6 +- ...xSubtleSkipContextSensitiveBug.1.normal.js | 10 +- ...ubtleSkipContextSensitiveBug.2.minified.js | 10 +- ...heckSpecialPropertyAssignments.1.normal.js | 2 +- ...ckSpecialPropertyAssignments.2.minified.js | 2 +- .../circularImportAlias.1.normal.js | 6 +- .../circularImportAlias.2.minified.js | 6 +- .../circularIndexedAccessErrors.1.normal.js | 2 +- .../circularIndexedAccessErrors.2.minified.js | 2 +- ...ularTypeAliasForUnionWithClass.1.normal.js | 2 +- ...arTypeAliasForUnionWithClass.2.minified.js | 2 +- .../classAbstractAsIdentifier.1.normal.js | 2 +- .../classAbstractAsIdentifier.2.minified.js | 2 +- ...signabilityConstructorFunction.1.normal.js | 2 +- ...gnabilityConstructorFunction.2.minified.js | 2 +- ...stractClinterfaceAssignability.1.normal.js | 2 +- ...ractClinterfaceAssignability.2.minified.js | 2 +- ...stractConstructorAssignability.1.normal.js | 6 +- ...ractConstructorAssignability.2.minified.js | 6 +- .../classAbstractExtends.1.normal.js | 6 +- .../classAbstractExtends.2.minified.js | 6 +- .../classAbstractFactoryFunction.1.normal.js | 6 +- ...classAbstractFactoryFunction.2.minified.js | 6 +- .../classAbstractGeneric.1.normal.js | 6 +- .../classAbstractGeneric.2.minified.js | 6 +- ...assAbstractImportInstantiation.1.normal.js | 2 +- ...sAbstractImportInstantiation.2.minified.js | 2 +- .../classAbstractInAModule.1.normal.js | 6 +- .../classAbstractInAModule.2.minified.js | 6 +- .../classAbstractInheritance.1.normal.js | 6 +- .../classAbstractInheritance.2.minified.js | 6 +- .../classAbstractInstantiations1.1.normal.js | 6 +- ...classAbstractInstantiations1.2.minified.js | 6 +- .../classAbstractOverloads.1.normal.js | 2 +- .../classAbstractOverloads.2.minified.js | 2 +- ...ssAbstractOverrideWithAbstract.1.normal.js | 6 +- ...AbstractOverrideWithAbstract.2.minified.js | 6 +- .../classAbstractSingleLineDecl.1.normal.js | 2 +- .../classAbstractSingleLineDecl.2.minified.js | 2 +- .../classAbstractSuperCalls.1.normal.js | 10 +- .../classAbstractSuperCalls.2.minified.js | 10 +- ...ssAbstractUsingAbstractMethod1.1.normal.js | 6 +- ...AbstractUsingAbstractMethod1.2.minified.js | 6 +- .../classAndInterfaceWithSameName.1.normal.js | 2 +- ...lassAndInterfaceWithSameName.2.minified.js | 2 +- ...ssAppearsToHaveMembersOfObject.1.normal.js | 2 +- ...AppearsToHaveMembersOfObject.2.minified.js | 2 +- ...ssCanExtendConstructorFunction.1.normal.js | 22 +- ...CanExtendConstructorFunction.2.minified.js | 22 +- .../classConstructorAccessibility.1.normal.js | 2 +- ...lassConstructorAccessibility.2.minified.js | 2 +- ...classConstructorAccessibility2.1.normal.js | 6 +- ...assConstructorAccessibility2.2.minified.js | 6 +- ...classConstructorAccessibility3.1.normal.js | 2 +- ...assConstructorAccessibility3.2.minified.js | 2 +- ...classConstructorAccessibility4.1.normal.js | 6 +- ...assConstructorAccessibility4.2.minified.js | 6 +- ...classConstructorAccessibility5.1.normal.js | 6 +- ...assConstructorAccessibility5.2.minified.js | 6 +- ...structorOverloadsAccessibility.1.normal.js | 2 +- ...ructorOverloadsAccessibility.2.minified.js | 2 +- ...tructorParametersAccessibility.1.normal.js | 6 +- ...uctorParametersAccessibility.2.minified.js | 6 +- ...ructorParametersAccessibility2.1.normal.js | 6 +- ...ctorParametersAccessibility2.2.minified.js | 6 +- ...ructorParametersAccessibility3.1.normal.js | 6 +- ...ctorParametersAccessibility3.2.minified.js | 6 +- .../classDeclarationLoop.1.normal.js | 2 +- .../classDeclarationLoop.2.minified.js | 2 +- .../classDoesNotDependOnBaseTypes.1.normal.js | 6 +- ...lassDoesNotDependOnBaseTypes.2.minified.js | 6 +- ...ssDoesNotDependOnPrivateMember.1.normal.js | 2 +- ...DoesNotDependOnPrivateMember.2.minified.js | 2 +- .../classExpression.1.normal.js | 2 +- .../classExpression.2.minified.js | 2 +- .../classExpression1.1.normal.js | 2 +- .../classExpression1.2.minified.js | 2 +- .../classExpression2.1.normal.js | 6 +- .../classExpression2.2.minified.js | 6 +- .../classExpression3.1.normal.js | 6 +- .../classExpression3.2.minified.js | 6 +- .../classExpression4.1.normal.js | 2 +- .../classExpression4.2.minified.js | 2 +- .../classExpression5.1.normal.js | 2 +- .../classExpression5.2.minified.js | 2 +- .../classExpressionLoop.1.normal.js | 2 +- .../classExpressionLoop.2.minified.js | 2 +- .../classExtendingBuiltinType.1.normal.js | 8 +- .../classExtendingBuiltinType.2.minified.js | 8 +- .../classExtendingClass.1.normal.js | 6 +- .../classExtendingClass.2.minified.js | 6 +- .../classExtendingClassLikeType.1.normal.js | 6 +- .../classExtendingClassLikeType.2.minified.js | 6 +- .../classExtendingNonConstructor.1.normal.js | 6 +- ...classExtendingNonConstructor.2.minified.js | 6 +- .../classExtendingNull.1.normal.js | 6 +- .../classExtendingNull.2.minified.js | 6 +- .../classExtendsItself.1.normal.js | 6 +- .../classExtendsItself.2.minified.js | 6 +- .../classExtendsItselfIndirectly.1.normal.js | 6 +- ...classExtendsItselfIndirectly.2.minified.js | 6 +- .../classExtendsItselfIndirectly2.1.normal.js | 6 +- ...lassExtendsItselfIndirectly2.2.minified.js | 6 +- .../classExtendsItselfIndirectly3.1.normal.js | 36 +- ...lassExtendsItselfIndirectly3.2.minified.js | 36 +- ...ndsShadowedConstructorFunction.1.normal.js | 6 +- ...sShadowedConstructorFunction.2.minified.js | 6 +- ...xtendsValidConstructorFunction.1.normal.js | 6 +- ...endsValidConstructorFunction.2.minified.js | 6 +- ...ImplementsMergedClassInterface.1.normal.js | 2 +- ...plementsMergedClassInterface.2.minified.js | 2 +- .../classInsideBlock.1.normal.js | 2 +- .../classInsideBlock.2.minified.js | 2 +- .../classIsSubtypeOfBaseType.1.normal.js | 6 +- .../classIsSubtypeOfBaseType.2.minified.js | 6 +- .../classPropertyAsPrivate.1.normal.js | 4 +- .../classPropertyAsPrivate.2.minified.js | 4 +- .../classPropertyAsProtected.1.normal.js | 4 +- .../classPropertyAsProtected.2.minified.js | 4 +- ...classPropertyIsPublicByDefault.1.normal.js | 4 +- ...assPropertyIsPublicByDefault.2.minified.js | 4 +- .../classStaticBlock1(target=es5).1.normal.js | 2 +- ...lassStaticBlock1(target=es5).2.minified.js | 2 +- ...classStaticBlock10(target=es5).1.normal.js | 2 +- ...assStaticBlock10(target=es5).2.minified.js | 2 +- ...ssStaticBlock11(target=es2015).1.normal.js | 6 +- ...StaticBlock11(target=es2015).2.minified.js | 6 +- .../classStaticBlock12.1.normal.js | 2 +- .../classStaticBlock12.2.minified.js | 2 +- ...ssStaticBlock13(target=es2015).1.normal.js | 2 +- ...StaticBlock13(target=es2015).2.minified.js | 2 +- .../classStaticBlock17.1.normal.js | 6 +- .../classStaticBlock17.2.minified.js | 6 +- ...classStaticBlock18(target=es5).1.normal.js | 2 +- ...assStaticBlock18(target=es5).2.minified.js | 2 +- .../classStaticBlock2(target=es5).1.normal.js | 2 +- ...lassStaticBlock2(target=es5).2.minified.js | 2 +- .../classStaticBlock21.1.normal.js | 2 +- .../classStaticBlock21.2.minified.js | 2 +- ...classStaticBlock24(module=amd).1.normal.js | 5 +- ...assStaticBlock24(module=amd).2.minified.js | 6 +- ...StaticBlock24(module=commonjs).1.normal.js | 4 +- ...aticBlock24(module=commonjs).2.minified.js | 4 +- ...classStaticBlock24(module=es6).1.normal.js | 2 +- ...assStaticBlock24(module=es6).2.minified.js | 2 +- ...ssStaticBlock24(module=system).1.normal.js | 4 +- ...StaticBlock24(module=system).2.minified.js | 4 +- ...classStaticBlock24(module=umd).1.normal.js | 9 +- ...assStaticBlock24(module=umd).2.minified.js | 10 +- .../classStaticBlock27.1.normal.js | 2 +- .../classStaticBlock27.2.minified.js | 2 +- .../classStaticBlock28.1.normal.js | 2 +- .../classStaticBlock28.2.minified.js | 2 +- ...assStaticBlock5(target=es2015).1.normal.js | 4 +- ...sStaticBlock5(target=es2015).2.minified.js | 4 +- .../classStaticBlock5(target=es5).1.normal.js | 10 +- ...lassStaticBlock5(target=es5).2.minified.js | 10 +- .../classStaticBlock9(target=es5).1.normal.js | 2 +- ...lassStaticBlock9(target=es5).2.minified.js | 2 +- .../classStaticBlockUseBeforeDef3.1.normal.js | 2 +- ...lassStaticBlockUseBeforeDef3.2.minified.js | 2 +- ...sWithBaseClassButNoConstructor.1.normal.js | 6 +- ...ithBaseClassButNoConstructor.2.minified.js | 6 +- .../classWithConstructors.1.normal.js | 6 +- .../classWithConstructors.2.minified.js | 6 +- .../classWithEmptyBody.1.normal.js | 2 +- .../classWithEmptyBody.2.minified.js | 2 +- ...ssWithNoConstructorOrBaseClass.1.normal.js | 2 +- ...WithNoConstructorOrBaseClass.2.minified.js | 2 +- ...icMembersEquivalentToInterface.1.normal.js | 4 +- ...MembersEquivalentToInterface.2.minified.js | 4 +- ...cMembersEquivalentToInterface2.1.normal.js | 4 +- ...embersEquivalentToInterface2.2.minified.js | 4 +- .../classWithOptionalParameter.1.normal.js | 2 +- .../classWithOptionalParameter.2.minified.js | 2 +- .../classWithPrivateProperty.1.normal.js | 2 +- .../classWithPrivateProperty.2.minified.js | 2 +- .../classWithProtectedProperty.1.normal.js | 6 +- .../classWithProtectedProperty.2.minified.js | 6 +- .../classWithPublicProperty.1.normal.js | 2 +- .../classWithPublicProperty.2.minified.js | 2 +- ...lassWithSemicolonClassElement1.1.normal.js | 2 +- ...ssWithSemicolonClassElement1.2.minified.js | 2 +- ...lassWithSemicolonClassElement2.1.normal.js | 2 +- ...ssWithSemicolonClassElement2.2.minified.js | 2 +- ...eterBindingPattern(target=es5).1.normal.js | 2 +- ...erBindingPattern(target=es5).2.minified.js | 2 +- ...erBindingPattern.2(target=es5).1.normal.js | 6 +- ...BindingPattern.2(target=es5).2.minified.js | 6 +- ...rameterInitializer(target=es5).1.normal.js | 2 +- ...meterInitializer(target=es5).2.minified.js | 2 +- ...meterInitializer.2(target=es5).1.normal.js | 6 +- ...terInitializer.2(target=es5).2.minified.js | 6 +- .../classWithStaticMembers.1.normal.js | 8 +- .../classWithStaticMembers.2.minified.js | 8 +- ...lassWithoutExplicitConstructor.1.normal.js | 2 +- ...ssWithoutExplicitConstructor.2.minified.js | 2 +- ...torWithSecondOperandObjectType.1.normal.js | 2 +- ...rWithSecondOperandObjectType.2.minified.js | 2 +- ...monJSImportAsPrimaryExpression.1.normal.js | 4 +- ...nJSImportAsPrimaryExpression.2.minified.js | 4 +- ...mmonJSImportClassTypeReference.1.normal.js | 2 +- ...onJSImportClassTypeReference.2.minified.js | 2 +- ...SImportExportedClassExpression.1.normal.js | 2 +- ...mportExportedClassExpression.2.minified.js | 2 +- ...ImportNestedClassTypeReference.1.normal.js | 2 +- ...portNestedClassTypeReference.2.minified.js | 2 +- ...JSImportNotAsPrimaryExpression.1.normal.js | 4 +- ...ImportNotAsPrimaryExpression.2.minified.js | 4 +- ...onOperatorWithIdenticalObjects.1.normal.js | 6 +- ...OperatorWithIdenticalObjects.2.minified.js | 6 +- ...tionshipObjectsOnCallSignature.1.normal.js | 6 +- ...onshipObjectsOnCallSignature.2.minified.js | 6 +- ...pObjectsOnConstructorSignature.1.normal.js | 6 +- ...bjectsOnConstructorSignature.2.minified.js | 6 +- ...ionshipObjectsOnIndexSignature.1.normal.js | 6 +- ...nshipObjectsOnIndexSignature.2.minified.js | 6 +- ...ctsOnInstantiatedCallSignature.1.normal.js | 6 +- ...sOnInstantiatedCallSignature.2.minified.js | 6 +- ...stantiatedConstructorSignature.1.normal.js | 6 +- ...antiatedConstructorSignature.2.minified.js | 6 +- ...oRelationshipObjectsOnProperty.1.normal.js | 2 +- ...elationshipObjectsOnProperty.2.minified.js | 2 +- ...thSubtypeObjectOnCallSignature.1.normal.js | 6 +- ...SubtypeObjectOnCallSignature.2.minified.js | 6 +- ...peObjectOnConstructorSignature.1.normal.js | 6 +- ...ObjectOnConstructorSignature.2.minified.js | 6 +- ...hSubtypeObjectOnIndexSignature.1.normal.js | 6 +- ...ubtypeObjectOnIndexSignature.2.minified.js | 6 +- ...ectOnInstantiatedCallSignature.1.normal.js | 6 +- ...tOnInstantiatedCallSignature.2.minified.js | 6 +- ...stantiatedConstructorSignature.1.normal.js | 6 +- ...antiatedConstructorSignature.2.minified.js | 6 +- ...torWithSubtypeObjectOnProperty.1.normal.js | 6 +- ...rWithSubtypeObjectOnProperty.2.minified.js | 6 +- .../computedPropertyNames10_ES5.1.normal.js | 2 +- .../computedPropertyNames10_ES5.2.minified.js | 2 +- .../computedPropertyNames11_ES5.1.normal.js | 2 +- .../computedPropertyNames11_ES5.2.minified.js | 2 +- .../computedPropertyNames13_ES5.1.normal.js | 2 +- .../computedPropertyNames13_ES5.2.minified.js | 2 +- .../computedPropertyNames14_ES5.1.normal.js | 2 +- .../computedPropertyNames14_ES5.2.minified.js | 2 +- .../computedPropertyNames15_ES5.1.normal.js | 2 +- .../computedPropertyNames15_ES5.2.minified.js | 2 +- .../computedPropertyNames16_ES5.1.normal.js | 4 +- .../computedPropertyNames16_ES5.2.minified.js | 4 +- .../computedPropertyNames17_ES5.1.normal.js | 4 +- .../computedPropertyNames17_ES5.2.minified.js | 4 +- .../computedPropertyNames18_ES5.1.normal.js | 2 +- .../computedPropertyNames18_ES5.2.minified.js | 2 +- .../computedPropertyNames19_ES5.1.normal.js | 2 +- .../computedPropertyNames19_ES5.2.minified.js | 2 +- .../computedPropertyNames1_ES5.1.normal.js | 2 +- .../computedPropertyNames1_ES5.2.minified.js | 2 +- .../computedPropertyNames20_ES5.1.normal.js | 2 +- .../computedPropertyNames20_ES5.2.minified.js | 2 +- .../computedPropertyNames21_ES5.1.normal.js | 2 +- .../computedPropertyNames21_ES5.2.minified.js | 2 +- .../computedPropertyNames22_ES5.1.normal.js | 4 +- .../computedPropertyNames22_ES5.2.minified.js | 4 +- .../computedPropertyNames23_ES5.1.normal.js | 4 +- .../computedPropertyNames23_ES5.2.minified.js | 4 +- .../computedPropertyNames24_ES5.1.normal.js | 6 +- .../computedPropertyNames24_ES5.2.minified.js | 6 +- .../computedPropertyNames25_ES5.1.normal.js | 12 +- .../computedPropertyNames25_ES5.2.minified.js | 12 +- .../computedPropertyNames26_ES5.1.normal.js | 8 +- .../computedPropertyNames26_ES5.2.minified.js | 8 +- .../computedPropertyNames27_ES5.1.normal.js | 6 +- .../computedPropertyNames27_ES5.2.minified.js | 6 +- .../computedPropertyNames28_ES5.1.normal.js | 8 +- .../computedPropertyNames28_ES5.2.minified.js | 8 +- .../computedPropertyNames29_ES5.1.normal.js | 4 +- .../computedPropertyNames29_ES5.2.minified.js | 4 +- .../computedPropertyNames2_ES5.1.normal.js | 4 +- .../computedPropertyNames2_ES5.2.minified.js | 4 +- .../computedPropertyNames30_ES5.1.normal.js | 8 +- .../computedPropertyNames30_ES5.2.minified.js | 8 +- .../computedPropertyNames31_ES5.1.normal.js | 12 +- .../computedPropertyNames31_ES5.2.minified.js | 12 +- .../computedPropertyNames32_ES5.1.normal.js | 2 +- .../computedPropertyNames32_ES5.2.minified.js | 2 +- .../computedPropertyNames33_ES5.1.normal.js | 4 +- .../computedPropertyNames33_ES5.2.minified.js | 4 +- .../computedPropertyNames34_ES5.1.normal.js | 4 +- .../computedPropertyNames34_ES5.2.minified.js | 4 +- .../computedPropertyNames36_ES5.1.normal.js | 4 +- .../computedPropertyNames36_ES5.2.minified.js | 4 +- .../computedPropertyNames37_ES5.1.normal.js | 4 +- .../computedPropertyNames37_ES5.2.minified.js | 4 +- .../computedPropertyNames38_ES5.1.normal.js | 4 +- .../computedPropertyNames38_ES5.2.minified.js | 4 +- .../computedPropertyNames39_ES5.1.normal.js | 4 +- .../computedPropertyNames39_ES5.2.minified.js | 4 +- .../computedPropertyNames40_ES5.1.normal.js | 2 +- .../computedPropertyNames40_ES5.2.minified.js | 2 +- .../computedPropertyNames41_ES5.1.normal.js | 2 +- .../computedPropertyNames41_ES5.2.minified.js | 2 +- .../computedPropertyNames42_ES5.1.normal.js | 2 +- .../computedPropertyNames42_ES5.2.minified.js | 2 +- .../computedPropertyNames43_ES5.1.normal.js | 8 +- .../computedPropertyNames43_ES5.2.minified.js | 8 +- .../computedPropertyNames44_ES5.1.normal.js | 8 +- .../computedPropertyNames44_ES5.2.minified.js | 8 +- .../computedPropertyNames45_ES5.1.normal.js | 8 +- .../computedPropertyNames45_ES5.2.minified.js | 8 +- .../computedPropertyNames46_ES5.1.normal.js | 2 +- .../computedPropertyNames46_ES5.2.minified.js | 2 +- .../computedPropertyNames47_ES5.1.normal.js | 2 +- .../computedPropertyNames47_ES5.2.minified.js | 2 +- .../computedPropertyNames48_ES5.1.normal.js | 2 +- .../computedPropertyNames48_ES5.2.minified.js | 2 +- .../computedPropertyNames4_ES5.1.normal.js | 2 +- .../computedPropertyNames4_ES5.2.minified.js | 2 +- .../computedPropertyNames51_ES5.1.normal.js | 2 +- .../computedPropertyNames51_ES5.2.minified.js | 2 +- .../computedPropertyNames5_ES5.1.normal.js | 2 +- .../computedPropertyNames5_ES5.2.minified.js | 2 +- .../computedPropertyNames6_ES5.1.normal.js | 2 +- .../computedPropertyNames6_ES5.2.minified.js | 2 +- .../computedPropertyNames7_ES5.1.normal.js | 2 +- .../computedPropertyNames7_ES5.2.minified.js | 2 +- .../computedPropertyNames8_ES5.1.normal.js | 2 +- .../computedPropertyNames8_ES5.2.minified.js | 2 +- .../computedPropertyNames9_ES5.1.normal.js | 2 +- .../computedPropertyNames9_ES5.2.minified.js | 2 +- ...pertyNamesContextualType10_ES5.1.normal.js | 2 +- ...rtyNamesContextualType10_ES5.2.minified.js | 2 +- ...opertyNamesContextualType1_ES5.1.normal.js | 2 +- ...ertyNamesContextualType1_ES5.2.minified.js | 2 +- ...opertyNamesContextualType2_ES5.1.normal.js | 2 +- ...ertyNamesContextualType2_ES5.2.minified.js | 2 +- ...opertyNamesContextualType3_ES5.1.normal.js | 2 +- ...ertyNamesContextualType3_ES5.2.minified.js | 2 +- ...opertyNamesContextualType4_ES5.1.normal.js | 2 +- ...ertyNamesContextualType4_ES5.2.minified.js | 2 +- ...opertyNamesContextualType5_ES5.1.normal.js | 2 +- ...ertyNamesContextualType5_ES5.2.minified.js | 2 +- ...opertyNamesContextualType6_ES5.1.normal.js | 2 +- ...ertyNamesContextualType6_ES5.2.minified.js | 2 +- ...opertyNamesContextualType7_ES5.1.normal.js | 2 +- ...ertyNamesContextualType7_ES5.2.minified.js | 2 +- ...opertyNamesContextualType8_ES5.1.normal.js | 2 +- ...ertyNamesContextualType8_ES5.2.minified.js | 2 +- ...opertyNamesContextualType9_ES5.1.normal.js | 2 +- ...ertyNamesContextualType9_ES5.2.minified.js | 2 +- ...pertyNamesDeclarationEmit1_ES5.1.normal.js | 4 +- ...rtyNamesDeclarationEmit1_ES5.2.minified.js | 4 +- ...pertyNamesDeclarationEmit2_ES5.1.normal.js | 4 +- ...rtyNamesDeclarationEmit2_ES5.2.minified.js | 4 +- ...pertyNamesDeclarationEmit5_ES5.1.normal.js | 4 +- ...rtyNamesDeclarationEmit5_ES5.2.minified.js | 4 +- ...pertyNamesDeclarationEmit6_ES5.1.normal.js | 2 +- ...rtyNamesDeclarationEmit6_ES5.2.minified.js | 2 +- ...tedPropertyNamesSourceMap1_ES5.1.normal.js | 4 +- ...dPropertyNamesSourceMap1_ES5.2.minified.js | 4 +- ...tedPropertyNamesSourceMap2_ES5.1.normal.js | 4 +- ...dPropertyNamesSourceMap2_ES5.2.minified.js | 4 +- ...ropertyNamesWithStaticProperty.1.normal.js | 2 +- ...pertyNamesWithStaticProperty.2.minified.js | 2 +- ...lOperatorConditoinIsStringType.1.normal.js | 2 +- ...peratorConditoinIsStringType.2.minified.js | 2 +- ...tionalOperatorWithIdenticalBCT.1.normal.js | 6 +- ...onalOperatorWithIdenticalBCT.2.minified.js | 6 +- ...nalOperatorWithoutIdenticalBCT.1.normal.js | 6 +- ...lOperatorWithoutIdenticalBCT.2.minified.js | 6 +- .../conditionalTypes2.1.normal.js | 2 +- .../conditionalTypes2.2.minified.js | 2 +- .../constraintSatisfactionWithAny.1.normal.js | 2 +- ...onstraintSatisfactionWithAny.2.minified.js | 2 +- ...intSatisfactionWithEmptyObject.1.normal.js | 2 +- ...tSatisfactionWithEmptyObject.2.minified.js | 2 +- ...ureAssignabilityInInheritance2.1.normal.js | 6 +- ...eAssignabilityInInheritance2.2.minified.js | 6 +- ...ureAssignabilityInInheritance3.1.normal.js | 6 +- ...eAssignabilityInInheritance3.2.minified.js | 6 +- ...ureAssignabilityInInheritance4.1.normal.js | 6 +- ...eAssignabilityInInheritance4.2.minified.js | 6 +- ...ureAssignabilityInInheritance5.1.normal.js | 6 +- ...eAssignabilityInInheritance5.2.minified.js | 6 +- ...ureAssignabilityInInheritance6.1.normal.js | 6 +- ...eAssignabilityInInheritance6.2.minified.js | 6 +- ...gnaturesWithIdenticalOverloads.1.normal.js | 2 +- ...aturesWithIdenticalOverloads.2.minified.js | 2 +- ...nstructSignaturesWithOverloads.1.normal.js | 2 +- ...tructSignaturesWithOverloads.2.minified.js | 2 +- ...structSignaturesWithOverloads2.1.normal.js | 2 +- ...ructSignaturesWithOverloads2.2.minified.js | 2 +- ...oadsThatDifferOnlyByReturnType.1.normal.js | 2 +- ...dsThatDifferOnlyByReturnType.2.minified.js | 2 +- ...orDefaultValuesReferencingThis.1.normal.js | 2 +- ...DefaultValuesReferencingThis.2.minified.js | 2 +- ...structorFunctionMergeWithClass.1.normal.js | 2 +- ...ructorFunctionMergeWithClass.2.minified.js | 2 +- ...tionTypeIsAssignableToBaseType.1.normal.js | 6 +- ...onTypeIsAssignableToBaseType.2.minified.js | 6 +- ...ionTypeIsAssignableToBaseType2.1.normal.js | 8 +- ...nTypeIsAssignableToBaseType2.2.minified.js | 8 +- .../constructorFunctions.1.normal.js | 4 +- .../constructorFunctions.2.minified.js | 4 +- .../constructorFunctionsStrict.1.normal.js | 2 +- .../constructorFunctionsStrict.2.minified.js | 2 +- ...onstructorHasPrototypeProperty.1.normal.js | 6 +- ...structorHasPrototypeProperty.2.minified.js | 6 +- ...mplementationWithDefaultValues.1.normal.js | 2 +- ...lementationWithDefaultValues.2.minified.js | 2 +- ...plementationWithDefaultValues2.1.normal.js | 2 +- ...ementationWithDefaultValues2.2.minified.js | 2 +- ...verloadsWithOptionalParameters.1.normal.js | 2 +- ...rloadsWithOptionalParameters.2.minified.js | 2 +- ...constructorParameterProperties.1.normal.js | 2 +- ...nstructorParameterProperties.2.minified.js | 2 +- ...onstructorParameterProperties2.1.normal.js | 2 +- ...structorParameterProperties2.2.minified.js | 2 +- ...torParameterShadowsOuterScopes.1.normal.js | 2 +- ...rParameterShadowsOuterScopes.2.minified.js | 2 +- ...nstructorTagOnClassConstructor.1.normal.js | 2 +- ...tructorTagOnClassConstructor.2.minified.js | 2 +- ...WithAssignableReturnExpression.1.normal.js | 2 +- ...thAssignableReturnExpression.2.minified.js | 2 +- ...ructorWithExpressionLessReturn.1.normal.js | 2 +- ...ctorWithExpressionLessReturn.2.minified.js | 2 +- .../contextualTypeWithTuple.1.normal.js | 2 +- .../contextualTypeWithTuple.2.minified.js | 2 +- ...ntextualTypedSpecialAssignment.1.normal.js | 2 +- ...extualTypedSpecialAssignment.2.minified.js | 2 +- ...sExpressionMethodDeclaration01.1.normal.js | 2 +- ...xpressionMethodDeclaration01.2.minified.js | 2 +- ...sExpressionMethodDeclaration02.1.normal.js | 2 +- ...xpressionMethodDeclaration02.2.minified.js | 2 +- .../controlFlowAliasing.1.normal.js | 2 +- .../controlFlowAliasing.2.minified.js | 2 +- .../controlFlowGenericTypes.1.normal.js | 2 +- .../controlFlowGenericTypes.2.minified.js | 2 +- ...lFlowInstanceOfGuardPrimitives.1.normal.js | 2 +- ...lowInstanceOfGuardPrimitives.2.minified.js | 2 +- ...lFlowInstanceofExtendsFunction.1.normal.js | 4 +- ...lowInstanceofExtendsFunction.2.minified.js | 4 +- ...ontrolFlowIterationErrorsAsync.1.normal.js | 4 +- ...trolFlowIterationErrorsAsync.2.minified.js | 4 +- .../controlFlowOptionalChain.1.normal.js | 4 +- .../controlFlowOptionalChain.2.minified.js | 4 +- ...controlFlowSuperPropertyAccess.1.normal.js | 10 +- ...ntrolFlowSuperPropertyAccess.2.minified.js | 10 +- ...orrectlyMarkAliasAsReferences4.1.normal.js | 4 +- ...rectlyMarkAliasAsReferences4.2.minified.js | 4 +- .../declarationEmitReadonly.1.normal.js | 2 +- .../declarationEmitReadonly.2.minified.js | 2 +- ...eclarationEmitThisPredicates01.1.normal.js | 18 +- ...larationEmitThisPredicates01.2.minified.js | 12 +- ...hisPredicatesWithPrivateName01.1.normal.js | 18 +- ...sPredicatesWithPrivateName01.2.minified.js | 12 +- ...tionEmitWorkWithInlineComments.1.normal.js | 2 +- ...onEmitWorkWithInlineComments.2.minified.js | 2 +- .../declarationFiles.1.normal.js | 2 +- .../declarationFiles.2.minified.js | 2 +- .../declarationsAndAssignments.1.normal.js | 6 +- .../declarationsAndAssignments.2.minified.js | 6 +- ...rementOperatorWithAnyOtherType.1.normal.js | 2 +- ...mentOperatorWithAnyOtherType.2.minified.js | 2 +- ...ecrementOperatorWithNumberType.1.normal.js | 2 +- ...rementOperatorWithNumberType.2.minified.js | 2 +- ...faultExportInAwaitExpression01.1.normal.js | 14 +- ...ultExportInAwaitExpression01.2.minified.js | 10 +- ...faultExportInAwaitExpression02.1.normal.js | 8 +- ...ultExportInAwaitExpression02.2.minified.js | 4 +- .../defaultExportsCannotMerge01.1.normal.js | 4 +- .../defaultExportsCannotMerge01.2.minified.js | 2 +- .../defaultExportsCannotMerge02.1.normal.js | 8 +- .../defaultExportsCannotMerge02.2.minified.js | 6 +- .../defaultExportsCannotMerge03.1.normal.js | 8 +- .../defaultExportsCannotMerge03.2.minified.js | 6 +- .../defineProperty(target=es5).1.normal.js | 12 +- .../defineProperty(target=es5).2.minified.js | 12 +- .../definePropertyOutputES3.1.normal.js | 4 +- .../definePropertyOutputES3.2.minified.js | 4 +- ...dependentDestructuredVariables.1.normal.js | 4 +- ...pendentDestructuredVariables.2.minified.js | 4 +- ...assConstructorWithoutSuperCall.1.normal.js | 8 +- ...sConstructorWithoutSuperCall.2.minified.js | 8 +- ...tionOverridesBaseClassAccessor.1.normal.js | 8 +- ...onOverridesBaseClassAccessor.2.minified.js | 8 +- ...dClassIncludesInheritedMembers.1.normal.js | 8 +- ...lassIncludesInheritedMembers.2.minified.js | 8 +- ...ersWithAssignmentCompatibility.1.normal.js | 6 +- ...sWithAssignmentCompatibility.2.minified.js | 6 +- .../derivedClassOverridesPrivates.1.normal.js | 6 +- ...erivedClassOverridesPrivates.2.minified.js | 6 +- ...ClassOverridesProtectedMembers.1.normal.js | 8 +- ...assOverridesProtectedMembers.2.minified.js | 8 +- ...lassOverridesProtectedMembers2.1.normal.js | 8 +- ...ssOverridesProtectedMembers2.2.minified.js | 8 +- ...lassOverridesProtectedMembers3.1.normal.js | 8 +- ...ssOverridesProtectedMembers3.2.minified.js | 8 +- ...lassOverridesProtectedMembers4.1.normal.js | 6 +- ...ssOverridesProtectedMembers4.2.minified.js | 6 +- ...vedClassOverridesPublicMembers.1.normal.js | 8 +- ...dClassOverridesPublicMembers.2.minified.js | 8 +- ...edClassOverridesWithoutSubtype.1.normal.js | 6 +- ...ClassOverridesWithoutSubtype.2.minified.js | 6 +- .../derivedClassTransitivity.1.normal.js | 6 +- .../derivedClassTransitivity.2.minified.js | 6 +- .../derivedClassTransitivity2.1.normal.js | 6 +- .../derivedClassTransitivity2.2.minified.js | 6 +- .../derivedClassTransitivity3.1.normal.js | 6 +- .../derivedClassTransitivity3.2.minified.js | 6 +- .../derivedClassTransitivity4.1.normal.js | 6 +- .../derivedClassTransitivity4.2.minified.js | 6 +- .../derivedClassWithAny.1.normal.js | 8 +- .../derivedClassWithAny.2.minified.js | 8 +- ...anceShadowingProtectedInstance.1.normal.js | 8 +- ...ceShadowingProtectedInstance.2.minified.js | 8 +- ...nstanceShadowingPublicInstance.1.normal.js | 8 +- ...tanceShadowingPublicInstance.2.minified.js | 8 +- ...StaticShadowingProtectedStatic.1.normal.js | 8 +- ...aticShadowingProtectedStatic.2.minified.js | 8 +- ...ateStaticShadowingPublicStatic.1.normal.js | 8 +- ...eStaticShadowingPublicStatic.2.minified.js | 8 +- ...lassWithoutExplicitConstructor.1.normal.js | 6 +- ...ssWithoutExplicitConstructor.2.minified.js | 6 +- ...assWithoutExplicitConstructor2.1.normal.js | 6 +- ...sWithoutExplicitConstructor2.2.minified.js | 6 +- ...assWithoutExplicitConstructor3.1.normal.js | 6 +- ...sWithoutExplicitConstructor3.2.minified.js | 6 +- .../derivedGenericClassWithAny.1.normal.js | 8 +- .../derivedGenericClassWithAny.2.minified.js | 8 +- ...BaseCallViaSuperPropertyAccess.1.normal.js | 10 +- ...seCallViaSuperPropertyAccess.2.minified.js | 10 +- ...ypeDoesNotRequireExtendsClause.1.normal.js | 6 +- ...eDoesNotRequireExtendsClause.2.minified.js | 6 +- ...indingPatternAndAssignment1ES5.1.normal.js | 6 +- ...dingPatternAndAssignment1ES5.2.minified.js | 6 +- ...tternAndAssignment1ES5iterable.1.normal.js | 6 +- ...ernAndAssignment1ES5iterable.2.minified.js | 6 +- ...ayBindingPatternAndAssignment2.1.normal.js | 4 +- ...BindingPatternAndAssignment2.2.minified.js | 4 +- ...ayBindingPatternAndAssignment3.1.normal.js | 2 +- ...BindingPatternAndAssignment3.2.minified.js | 2 +- ...ayBindingPatternAndAssignment4.1.normal.js | 2 +- ...BindingPatternAndAssignment4.2.minified.js | 2 +- ...estructuringAssignabilityCheck.1.normal.js | 4 +- ...tructuringAssignabilityCheck.2.minified.js | 4 +- .../destructuringCatch.1.normal.js | 2 +- .../destructuringCatch.2.minified.js | 2 +- .../destructuringControlFlow.1.normal.js | 2 +- .../destructuringControlFlow.2.minified.js | 2 +- ...EvaluationOrder(target=es2015).1.normal.js | 8 +- ...aluationOrder(target=es2015).2.minified.js | 8 +- ...ingEvaluationOrder(target=es5).1.normal.js | 10 +- ...gEvaluationOrder(target=es5).2.minified.js | 10 +- .../destructuringInFunctionType.1.normal.js | 2 +- .../destructuringInFunctionType.2.minified.js | 2 +- ...ithNestedSpread(target=es2015).1.normal.js | 2 +- ...hNestedSpread(target=es2015).2.minified.js | 2 +- ...rnWithNestedSpread(target=es5).1.normal.js | 2 +- ...WithNestedSpread(target=es5).2.minified.js | 2 +- ...ctBindingPatternAndAssignment5.1.normal.js | 2 +- ...BindingPatternAndAssignment5.2.minified.js | 2 +- ...ternAndAssignment6(target=es5).1.normal.js | 2 +- ...rnAndAssignment6(target=es5).2.minified.js | 2 +- ...ternAndAssignment7(target=es5).1.normal.js | 2 +- ...rnAndAssignment7(target=es5).2.minified.js | 2 +- ...ternAndAssignment8(target=es5).1.normal.js | 2 +- ...rnAndAssignment8(target=es5).2.minified.js | 2 +- ...rameterDeclaration3ES5iterable.1.normal.js | 6 +- ...meterDeclaration3ES5iterable.2.minified.js | 6 +- ...ructuringParameterDeclaration5.1.normal.js | 6 +- ...cturingParameterDeclaration5.2.minified.js | 6 +- ...turingParameterDeclaration7ES5.1.normal.js | 4 +- ...ringParameterDeclaration7ES5.2.minified.js | 4 +- ...rameterDeclaration7ES5iterable.1.normal.js | 4 +- ...meterDeclaration7ES5iterable.2.minified.js | 4 +- .../destructuringSpread.1.normal.js | 4 +- .../destructuringSpread.2.minified.js | 4 +- ...cturingVariableDeclaration1ES5.1.normal.js | 4 +- ...uringVariableDeclaration1ES5.2.minified.js | 4 +- ...ariableDeclaration1ES5iterable.1.normal.js | 4 +- ...iableDeclaration1ES5iterable.2.minified.js | 4 +- .../destructuringVoid.1.normal.js | 2 +- .../destructuringVoid.2.minified.js | 2 +- ...tructuringVoidStrictNullChecks.1.normal.js | 2 +- ...ucturingVoidStrictNullChecks.2.minified.js | 2 +- ...cturingWithLiteralInitializers.1.normal.js | 2 +- ...uringWithLiteralInitializers.2.minified.js | 2 +- ...turingWithLiteralInitializers2.1.normal.js | 2 +- ...ringWithLiteralInitializers2.2.minified.js | 2 +- ...ctDependenceBetweenTypeAliases.1.normal.js | 2 +- ...DependenceBetweenTypeAliases.2.minified.js | 2 +- .../duplicateNumericIndexers.1.normal.js | 2 +- .../duplicateNumericIndexers.2.minified.js | 2 +- .../duplicateStringIndexers.1.normal.js | 2 +- .../duplicateStringIndexers.2.minified.js | 2 +- ...ropertyAccessInHeritageClause1.1.normal.js | 6 +- ...pertyAccessInHeritageClause1.2.minified.js | 6 +- .../emitDefaultParametersMethod.1.normal.js | 2 +- .../emitDefaultParametersMethod.2.minified.js | 2 +- ...ationOperatorInTempalteString4.1.normal.js | 2 +- ...ionOperatorInTempalteString4.2.minified.js | 2 +- ...ationOperatorInTemplateString1.1.normal.js | 2 +- ...ionOperatorInTemplateString1.2.minified.js | 2 +- ...ationOperatorInTemplateString2.1.normal.js | 2 +- ...ionOperatorInTemplateString2.2.minified.js | 2 +- ...ationOperatorInTemplateString3.1.normal.js | 2 +- ...ionOperatorInTemplateString3.2.minified.js | 2 +- .../emitRestParametersMethod.1.normal.js | 2 +- .../emitRestParametersMethod.2.minified.js | 2 +- ...eforeSuperCallWithDefineFields.1.normal.js | 2 +- ...oreSuperCallWithDefineFields.2.minified.js | 2 +- ...Generators.classMethods.es2015.1.normal.js | 32 +- ...nerators.classMethods.es2015.2.minified.js | 32 +- ...yncGenerators.classMethods.es5.1.normal.js | 80 +-- ...cGenerators.classMethods.es5.2.minified.js | 80 +-- ...rs.functionDeclarations.es2015.1.normal.js | 28 +- ....functionDeclarations.es2015.2.minified.js | 28 +- ...ators.functionDeclarations.es5.1.normal.js | 46 +- ...ors.functionDeclarations.es5.2.minified.js | 46 +- ...ors.functionExpressions.es2015.1.normal.js | 28 +- ...s.functionExpressions.es2015.2.minified.js | 28 +- ...rators.functionExpressions.es5.1.normal.js | 46 +- ...tors.functionExpressions.es5.2.minified.js | 46 +- ...rs.objectLiteralMethods.es2015.1.normal.js | 28 +- ....objectLiteralMethods.es2015.2.minified.js | 28 +- ...ators.objectLiteralMethods.es5.1.normal.js | 46 +- ...ors.objectLiteralMethods.es5.2.minified.js | 46 +- ...mitter.forAwait(target=es2015).1.normal.js | 36 +- ...tter.forAwait(target=es2015).2.minified.js | 36 +- .../emitter.forAwait(target=es5).1.normal.js | 50 +- ...emitter.forAwait(target=es5).2.minified.js | 50 +- ...ArrayBindingPatternParameter01.1.normal.js | 2 +- ...rayBindingPatternParameter01.2.minified.js | 2 +- ...ArrayBindingPatternParameter02.1.normal.js | 2 +- ...rayBindingPatternParameter02.2.minified.js | 2 +- ...ArrayBindingPatternParameter03.1.normal.js | 2 +- ...rayBindingPatternParameter03.2.minified.js | 2 +- ...ArrayBindingPatternParameter04.1.normal.js | 2 +- ...rayBindingPatternParameter04.2.minified.js | 2 +- .../emptyAssignmentPatterns01_ES5.1.normal.js | 4 +- ...mptyAssignmentPatterns01_ES5.2.minified.js | 4 +- ...signmentPatterns01_ES5iterable.1.normal.js | 4 +- ...gnmentPatterns01_ES5iterable.2.minified.js | 4 +- .../emptyAssignmentPatterns02_ES5.1.normal.js | 4 +- ...mptyAssignmentPatterns02_ES5.2.minified.js | 4 +- ...signmentPatterns02_ES5iterable.1.normal.js | 4 +- ...gnmentPatterns02_ES5iterable.2.minified.js | 4 +- .../emptyAssignmentPatterns03_ES5.1.normal.js | 4 +- ...mptyAssignmentPatterns03_ES5.2.minified.js | 4 +- ...signmentPatterns03_ES5iterable.1.normal.js | 4 +- ...gnmentPatterns03_ES5iterable.2.minified.js | 4 +- .../emptyAssignmentPatterns04_ES5.1.normal.js | 4 +- ...mptyAssignmentPatterns04_ES5.2.minified.js | 4 +- ...signmentPatterns04_ES5iterable.1.normal.js | 4 +- ...gnmentPatterns04_ES5iterable.2.minified.js | 4 +- ...bjectBindingPatternParameter01.1.normal.js | 2 +- ...ectBindingPatternParameter01.2.minified.js | 2 +- ...bjectBindingPatternParameter02.1.normal.js | 2 +- ...ectBindingPatternParameter02.2.minified.js | 2 +- ...bjectBindingPatternParameter03.1.normal.js | 2 +- ...ectBindingPatternParameter03.2.minified.js | 2 +- ...bjectBindingPatternParameter04.1.normal.js | 2 +- ...ectBindingPatternParameter04.2.minified.js | 2 +- ...clarationBindingPatterns01_ES5.1.normal.js | 4 +- ...arationBindingPatterns01_ES5.2.minified.js | 4 +- ...nBindingPatterns01_ES5iterable.1.normal.js | 4 +- ...indingPatterns01_ES5iterable.2.minified.js | 4 +- .../enumAssignability.1.normal.js | 2 +- .../enumAssignability.2.minified.js | 2 +- ...enumAssignabilityInInheritance.1.normal.js | 2 +- ...umAssignabilityInInheritance.2.minified.js | 2 +- ...NotASubtypeOfAnythingButNumber.1.normal.js | 2 +- ...tASubtypeOfAnythingButNumber.2.minified.js | 2 +- .../errorOnFunctionReturnType.1.normal.js | 4 +- .../errorOnFunctionReturnType.2.minified.js | 4 +- .../errorSuperPropertyAccess.1.normal.js | 16 +- .../errorSuperPropertyAccess.2.minified.js | 16 +- ...ekindExportClassNameWithObject.1.normal.js | 2 +- ...indExportClassNameWithObject.2.minified.js | 2 +- .../es6modulekindWithES5Target12.1.normal.js | 2 +- ...es6modulekindWithES5Target12.2.minified.js | 2 +- .../es6modulekindWithES5Target2.1.normal.js | 2 +- .../es6modulekindWithES5Target2.2.minified.js | 2 +- .../es6modulekindWithES5Target4.1.normal.js | 2 +- .../es6modulekindWithES5Target4.2.minified.js | 2 +- ...snextmodulekindWithES5Target12.1.normal.js | 2 +- ...extmodulekindWithES5Target12.2.minified.js | 2 +- ...esnextmodulekindWithES5Target2.1.normal.js | 2 +- ...nextmodulekindWithES5Target2.2.minified.js | 2 +- ...esnextmodulekindWithES5Target4.1.normal.js | 2 +- ...nextmodulekindWithES5Target4.2.minified.js | 2 +- .../everyTypeAssignableToAny.1.normal.js | 2 +- .../everyTypeAssignableToAny.2.minified.js | 2 +- ...peWithAnnotationAndInitializer.1.normal.js | 2 +- ...WithAnnotationAndInitializer.2.minified.js | 2 +- ...nnotationAndInvalidInitializer.1.normal.js | 2 +- ...otationAndInvalidInitializer.2.minified.js | 2 +- .../everyTypeWithInitializer.1.normal.js | 2 +- .../everyTypeWithInitializer.2.minified.js | 2 +- ...ekindExportClassNameWithObject.1.normal.js | 2 +- ...indExportClassNameWithObject.2.minified.js | 2 +- .../tsc-references/expandoOnAlias.1.normal.js | 2 +- .../expandoOnAlias.2.minified.js | 2 +- .../exportAndImport-es3-amd.1.normal.js | 5 +- .../exportAndImport-es3-amd.2.minified.js | 4 +- .../exportAndImport-es3.1.normal.js | 4 +- .../exportAndImport-es3.2.minified.js | 2 +- .../exportAndImport-es5-amd.1.normal.js | 5 +- .../exportAndImport-es5-amd.2.minified.js | 4 +- .../exportAndImport-es5.1.normal.js | 4 +- .../exportAndImport-es5.2.minified.js | 2 +- ...exportAsNamespace1(module=amd).1.normal.js | 10 +- ...portAsNamespace1(module=amd).2.minified.js | 8 +- ...tAsNamespace1(module=commonjs).1.normal.js | 8 +- ...sNamespace1(module=commonjs).2.minified.js | 4 +- ...exportAsNamespace1(module=umd).1.normal.js | 18 +- ...portAsNamespace1(module=umd).2.minified.js | 16 +- ...exportAsNamespace2(module=amd).1.normal.js | 10 +- ...portAsNamespace2(module=amd).2.minified.js | 8 +- ...tAsNamespace2(module=commonjs).1.normal.js | 8 +- ...sNamespace2(module=commonjs).2.minified.js | 4 +- ...exportAsNamespace2(module=umd).1.normal.js | 18 +- ...portAsNamespace2(module=umd).2.minified.js | 16 +- ...exportAsNamespace3(module=amd).1.normal.js | 10 +- ...portAsNamespace3(module=amd).2.minified.js | 8 +- ...tAsNamespace3(module=commonjs).1.normal.js | 8 +- ...sNamespace3(module=commonjs).2.minified.js | 4 +- ...exportAsNamespace3(module=umd).1.normal.js | 18 +- ...portAsNamespace3(module=umd).2.minified.js | 16 +- ...exportAsNamespace4(module=amd).1.normal.js | 17 +- ...portAsNamespace4(module=amd).2.minified.js | 12 +- ...tAsNamespace4(module=commonjs).1.normal.js | 14 +- ...sNamespace4(module=commonjs).2.minified.js | 6 +- ...exportAsNamespace4(module=umd).1.normal.js | 29 +- ...portAsNamespace4(module=umd).2.minified.js | 24 +- ...rtAsNamespace_exportAssignment.1.normal.js | 4 +- ...AsNamespace_exportAssignment.2.minified.js | 2 +- ...AsNamespace_missingEmitHelpers.1.normal.js | 4 +- ...Namespace_missingEmitHelpers.2.minified.js | 2 +- ...exportAssignmentAndDeclaration.1.normal.js | 5 +- ...portAssignmentAndDeclaration.2.minified.js | 6 +- ...signmentConstrainedGenericType.1.normal.js | 4 +- ...gnmentConstrainedGenericType.2.minified.js | 4 +- .../exportAssignmentGenericType.1.normal.js | 4 +- .../exportAssignmentGenericType.2.minified.js | 4 +- ...ntOfExportNamespaceWithDefault.1.normal.js | 4 +- ...OfExportNamespaceWithDefault.2.minified.js | 2 +- ...xportAssignmentTopLevelClodule.1.normal.js | 5 +- ...ortAssignmentTopLevelClodule.2.minified.js | 5 +- .../tsc-references/exportBinding.1.normal.js | 2 +- .../exportBinding.2.minified.js | 2 +- .../exportClassNameWithObjectAMD.1.normal.js | 5 +- ...exportClassNameWithObjectAMD.2.minified.js | 6 +- ...ortClassNameWithObjectCommonJS.1.normal.js | 4 +- ...tClassNameWithObjectCommonJS.2.minified.js | 4 +- ...xportClassNameWithObjectSystem.1.normal.js | 4 +- ...ortClassNameWithObjectSystem.2.minified.js | 4 +- .../exportClassNameWithObjectUMD.1.normal.js | 9 +- ...exportClassNameWithObjectUMD.2.minified.js | 10 +- .../tsc-references/exportCodeGen.1.normal.js | 2 +- .../exportCodeGen.2.minified.js | 2 +- .../exportDeclaration.1.normal.js | 2 +- .../exportDeclaration.2.minified.js | 2 +- ...ortDeclaration_moduleSpecifier.1.normal.js | 2 +- ...tDeclaration_moduleSpecifier.2.minified.js | 2 +- ...portDefaultClassNameWithObject.1.normal.js | 2 +- ...rtDefaultClassNameWithObject.2.minified.js | 2 +- .../exportImportAlias.1.normal.js | 2 +- .../exportImportAlias.2.minified.js | 2 +- .../exportNamespace1.1.normal.js | 2 +- .../exportNamespace1.2.minified.js | 2 +- .../exportNamespace10.1.normal.js | 2 +- .../exportNamespace10.2.minified.js | 2 +- .../exportNamespace2.1.normal.js | 2 +- .../exportNamespace2.2.minified.js | 2 +- .../exportNamespace3.1.normal.js | 2 +- .../exportNamespace3.2.minified.js | 2 +- .../exportNamespace4.1.normal.js | 2 +- .../exportNamespace4.2.minified.js | 2 +- .../exportNamespace5.1.normal.js | 2 +- .../exportNamespace5.2.minified.js | 2 +- .../exportNamespace6.1.normal.js | 2 +- .../exportNamespace6.2.minified.js | 2 +- .../exportNamespace7.1.normal.js | 4 +- .../exportNamespace7.2.minified.js | 4 +- .../exportNamespace8.1.normal.js | 4 +- .../exportNamespace8.2.minified.js | 4 +- .../exportNestedNamespaces.1.normal.js | 2 +- .../exportNestedNamespaces.2.minified.js | 2 +- ...opertyAssignmentNameResolution.1.normal.js | 2 +- ...ertyAssignmentNameResolution.2.minified.js | 2 +- .../tsc-references/exportStar-amd.1.normal.js | 14 +- .../exportStar-amd.2.minified.js | 8 +- .../tsc-references/exportStar.1.normal.js | 12 +- .../tsc-references/exportStar.2.minified.js | 6 +- .../exportsAndImports1-amd.1.normal.js | 5 +- .../exportsAndImports1-amd.2.minified.js | 6 +- .../exportsAndImports1.1.normal.js | 4 +- .../exportsAndImports1.2.minified.js | 4 +- .../exportsAndImports3-amd.1.normal.js | 5 +- .../exportsAndImports3-amd.2.minified.js | 6 +- .../exportsAndImports3.1.normal.js | 4 +- .../exportsAndImports3.2.minified.js | 4 +- .../exportsAndImports4-amd.1.normal.js | 10 +- .../exportsAndImports4-amd.2.minified.js | 8 +- .../exportsAndImports4-es6.1.normal.js | 8 +- .../exportsAndImports4-es6.2.minified.js | 4 +- .../exportsAndImports4.1.normal.js | 8 +- .../exportsAndImports4.2.minified.js | 4 +- ...tsWithContextualKeywordNames02.1.normal.js | 4 +- ...WithContextualKeywordNames02.2.minified.js | 2 +- ...ortsAndImportsWithUnderscores2.1.normal.js | 4 +- ...tsAndImportsWithUnderscores2.2.minified.js | 2 +- ...ortsAndImportsWithUnderscores3.1.normal.js | 4 +- ...tsAndImportsWithUnderscores3.2.minified.js | 2 +- ...ortsAndImportsWithUnderscores4.1.normal.js | 26 +- ...xtendClassExpressionFromModule.1.normal.js | 16 +- ...endClassExpressionFromModule.2.minified.js | 6 +- .../tsc-references/extendsTag1.1.normal.js | 8 +- .../tsc-references/extendsTag1.2.minified.js | 8 +- .../filterNamespace_import.1.normal.js | 2 +- .../filterNamespace_import.2.minified.js | 2 +- .../fixSignatureCaching.1.normal.js | 2 +- .../fixSignatureCaching.2.minified.js | 2 +- .../tsc-references/fluentClasses.1.normal.js | 6 +- .../fluentClasses.2.minified.js | 6 +- .../for-inStatements.1.normal.js | 10 +- .../for-inStatements.2.minified.js | 10 +- .../for-inStatementsDestructuring.1.normal.js | 2 +- ...or-inStatementsDestructuring.2.minified.js | 2 +- ...itPerIterationBindingDownlevel.1.normal.js | 10 +- ...PerIterationBindingDownlevel.2.minified.js | 10 +- .../tsc-references/forStatements.1.normal.js | 2 +- .../forStatements.2.minified.js | 2 +- ...rStatementsMultipleInvalidDecl.1.normal.js | 6 +- ...tatementsMultipleInvalidDecl.2.minified.js | 6 +- .../tsc-references/forgottenNew.1.normal.js | 2 +- .../tsc-references/forgottenNew.2.minified.js | 2 +- ...functionConstraintSatisfaction.1.normal.js | 2 +- ...nctionConstraintSatisfaction.2.minified.js | 2 +- ...unctionConstraintSatisfaction2.1.normal.js | 2 +- ...ctionConstraintSatisfaction2.2.minified.js | 2 +- ...unctionConstraintSatisfaction3.1.normal.js | 2 +- ...ctionConstraintSatisfaction3.2.minified.js | 2 +- ...ionExpressionContextualTyping1.1.normal.js | 2 +- ...nExpressionContextualTyping1.2.minified.js | 2 +- .../functionImplementationErrors.1.normal.js | 6 +- ...functionImplementationErrors.2.minified.js | 6 +- .../functionImplementations.1.normal.js | 6 +- .../functionImplementations.2.minified.js | 6 +- .../functionLiteralForOverloads2.1.normal.js | 2 +- ...functionLiteralForOverloads2.2.minified.js | 2 +- ...meterObjectRestAndInitializers.1.normal.js | 2 +- ...terObjectRestAndInitializers.2.minified.js | 2 +- .../generatedContextualTyping.1.normal.js | 6 +- .../generatedContextualTyping.2.minified.js | 6 +- .../tests/tsc-references/generic.1.normal.js | 2 +- .../tsc-references/generic.2.minified.js | 2 +- ...nericCallTypeArgumentInference.1.normal.js | 2 +- ...ricCallTypeArgumentInference.2.minified.js | 2 +- ...nstraintsTypeArgumentInference.1.normal.js | 6 +- ...traintsTypeArgumentInference.2.minified.js | 6 +- ...allWithFunctionTypedArguments4.1.normal.js | 2 +- ...lWithFunctionTypedArguments4.2.minified.js | 2 +- .../genericCallWithObjectTypeArgs.1.normal.js | 2 +- ...enericCallWithObjectTypeArgs.2.minified.js | 2 +- ...genericCallWithObjectTypeArgs2.1.normal.js | 6 +- ...nericCallWithObjectTypeArgs2.2.minified.js | 6 +- ...thObjectTypeArgsAndConstraints.1.normal.js | 2 +- ...ObjectTypeArgsAndConstraints.2.minified.js | 2 +- ...hObjectTypeArgsAndConstraints2.1.normal.js | 6 +- ...bjectTypeArgsAndConstraints2.2.minified.js | 6 +- ...hObjectTypeArgsAndConstraints3.1.normal.js | 6 +- ...bjectTypeArgsAndConstraints3.2.minified.js | 6 +- ...hObjectTypeArgsAndConstraints4.1.normal.js | 2 +- ...bjectTypeArgsAndConstraints4.2.minified.js | 2 +- ...hObjectTypeArgsAndConstraints5.1.normal.js | 2 +- ...bjectTypeArgsAndConstraints5.2.minified.js | 2 +- ...nericClassExpressionInFunction.1.normal.js | 6 +- ...ricClassExpressionInFunction.2.minified.js | 6 +- ...thFunctionTypedMemberArguments.1.normal.js | 2 +- ...FunctionTypedMemberArguments.2.minified.js | 2 +- ...thObjectTypeArgsAndConstraints.1.normal.js | 2 +- ...ObjectTypeArgsAndConstraints.2.minified.js | 2 +- .../genericObjectRest.1.normal.js | 8 +- .../genericObjectRest.2.minified.js | 8 +- .../genericRestParameters1.1.normal.js | 2 +- .../genericRestParameters1.2.minified.js | 2 +- .../genericRestParameters2.1.normal.js | 2 +- .../genericRestParameters2.2.minified.js | 2 +- .../genericRestParameters3.1.normal.js | 2 +- .../genericRestParameters3.2.minified.js | 2 +- ...getSetAccessorContextualTyping.1.normal.js | 4 +- ...tSetAccessorContextualTyping.2.minified.js | 4 +- .../heterogeneousArrayLiterals.1.normal.js | 6 +- .../heterogeneousArrayLiterals.2.minified.js | 6 +- .../ifDoWhileStatements.1.normal.js | 6 +- .../ifDoWhileStatements.2.minified.js | 6 +- ...faceExtendingClassWithPrivates.1.normal.js | 2 +- ...ceExtendingClassWithPrivates.2.minified.js | 2 +- ...aceExtendingClassWithPrivates2.1.normal.js | 6 +- ...eExtendingClassWithPrivates2.2.minified.js | 6 +- ...ceExtendingClassWithProtecteds.1.normal.js | 6 +- ...ExtendingClassWithProtecteds.2.minified.js | 6 +- .../implementsClause.1.normal.js | 2 +- .../implementsClause.2.minified.js | 2 +- .../importAliasIdentifiers.1.normal.js | 2 +- .../importAliasIdentifiers.2.minified.js | 2 +- .../importAliasModuleExports.1.normal.js | 2 +- .../importAliasModuleExports.2.minified.js | 2 +- ...ortAssertion2(module=commonjs).1.normal.js | 6 +- ...tAssertion2(module=commonjs).2.minified.js | 2 +- ...mportCallExpressionAsyncES3AMD.1.normal.js | 46 +- ...mportCallExpressionAsyncES3CJS.1.normal.js | 42 +- ...ortCallExpressionAsyncES3CJS.2.minified.js | 2 +- ...rtCallExpressionAsyncES3System.1.normal.js | 12 +- ...mportCallExpressionAsyncES3UMD.1.normal.js | 40 +- ...mportCallExpressionAsyncES5AMD.1.normal.js | 46 +- ...mportCallExpressionAsyncES5CJS.1.normal.js | 42 +- ...ortCallExpressionAsyncES5CJS.2.minified.js | 2 +- ...rtCallExpressionAsyncES5System.1.normal.js | 12 +- ...mportCallExpressionAsyncES5UMD.1.normal.js | 40 +- ...mportCallExpressionAsyncES6AMD.1.normal.js | 26 +- ...mportCallExpressionAsyncES6CJS.1.normal.js | 24 +- ...ortCallExpressionAsyncES6CJS.2.minified.js | 2 +- ...rtCallExpressionAsyncES6System.1.normal.js | 4 +- ...mportCallExpressionAsyncES6UMD.1.normal.js | 20 +- ...CallExpressionCheckReturntype1.1.normal.js | 8 +- ...llExpressionCheckReturntype1.2.minified.js | 4 +- ...CallExpressionDeclarationEmit1.1.normal.js | 12 +- ...llExpressionDeclarationEmit1.2.minified.js | 4 +- .../importCallExpressionES5AMD.1.normal.js | 22 +- .../importCallExpressionES5AMD.2.minified.js | 16 +- .../importCallExpressionES5CJS.1.normal.js | 20 +- .../importCallExpressionES5CJS.2.minified.js | 12 +- .../importCallExpressionES5System.1.normal.js | 4 +- ...mportCallExpressionES5System.2.minified.js | 4 +- .../importCallExpressionES5UMD.1.normal.js | 14 +- .../importCallExpressionES5UMD.2.minified.js | 12 +- .../importCallExpressionES6AMD.1.normal.js | 15 +- .../importCallExpressionES6AMD.2.minified.js | 12 +- .../importCallExpressionES6CJS.1.normal.js | 14 +- .../importCallExpressionES6CJS.2.minified.js | 8 +- .../importCallExpressionES6UMD.1.normal.js | 7 +- .../importCallExpressionES6UMD.2.minified.js | 8 +- .../importCallExpressionInAMD1.1.normal.js | 11 +- .../importCallExpressionInAMD1.2.minified.js | 10 +- .../importCallExpressionInAMD2.1.normal.js | 5 +- .../importCallExpressionInAMD2.2.minified.js | 6 +- .../importCallExpressionInAMD3.1.normal.js | 5 +- .../importCallExpressionInAMD3.2.minified.js | 6 +- .../importCallExpressionInAMD4.1.normal.js | 15 +- .../importCallExpressionInAMD4.2.minified.js | 10 +- .../importCallExpressionInCJS1.1.normal.js | 10 +- .../importCallExpressionInCJS1.2.minified.js | 6 +- .../importCallExpressionInCJS2.1.normal.js | 6 +- .../importCallExpressionInCJS2.2.minified.js | 6 +- .../importCallExpressionInCJS3.1.normal.js | 4 +- .../importCallExpressionInCJS3.2.minified.js | 4 +- .../importCallExpressionInCJS4.1.normal.js | 4 +- .../importCallExpressionInCJS4.2.minified.js | 4 +- .../importCallExpressionInCJS5.1.normal.js | 14 +- .../importCallExpressionInCJS5.2.minified.js | 8 +- ...allExpressionInExportEqualsAMD.1.normal.js | 5 +- ...lExpressionInExportEqualsAMD.2.minified.js | 6 +- ...allExpressionInExportEqualsCJS.1.normal.js | 4 +- ...lExpressionInExportEqualsCJS.2.minified.js | 4 +- ...allExpressionInExportEqualsUMD.1.normal.js | 7 +- ...lExpressionInExportEqualsUMD.2.minified.js | 8 +- .../importCallExpressionInUMD1.1.normal.js | 7 +- .../importCallExpressionInUMD1.2.minified.js | 8 +- .../importCallExpressionInUMD2.1.normal.js | 7 +- .../importCallExpressionInUMD2.2.minified.js | 8 +- .../importCallExpressionInUMD3.1.normal.js | 7 +- .../importCallExpressionInUMD3.2.minified.js | 8 +- .../importCallExpressionInUMD4.1.normal.js | 7 +- .../importCallExpressionInUMD4.2.minified.js | 8 +- .../importCallExpressionInUMD5.1.normal.js | 12 +- .../importCallExpressionInUMD5.2.minified.js | 10 +- .../importCallExpressionNestedAMD.1.normal.js | 12 +- ...mportCallExpressionNestedAMD.2.minified.js | 6 +- ...importCallExpressionNestedAMD2.1.normal.js | 17 +- ...portCallExpressionNestedAMD2.2.minified.js | 8 +- .../importCallExpressionNestedCJS.1.normal.js | 8 +- ...mportCallExpressionNestedCJS.2.minified.js | 2 +- ...importCallExpressionNestedCJS2.1.normal.js | 14 +- ...portCallExpressionNestedCJS2.2.minified.js | 2 +- ...portCallExpressionNestedES2015.1.normal.js | 2 +- ...rtCallExpressionNestedES2015.2.minified.js | 2 +- ...ortCallExpressionNestedES20152.1.normal.js | 4 +- ...tCallExpressionNestedES20152.2.minified.js | 4 +- ...portCallExpressionNestedES2020.1.normal.js | 2 +- ...rtCallExpressionNestedES2020.2.minified.js | 2 +- ...ortCallExpressionNestedES20202.1.normal.js | 4 +- ...tCallExpressionNestedES20202.2.minified.js | 4 +- ...portCallExpressionNestedSystem.1.normal.js | 4 +- ...rtCallExpressionNestedSystem.2.minified.js | 4 +- ...ortCallExpressionNestedSystem2.1.normal.js | 8 +- ...tCallExpressionNestedSystem2.2.minified.js | 8 +- .../importCallExpressionNestedUMD.1.normal.js | 12 +- ...mportCallExpressionNestedUMD.2.minified.js | 10 +- ...importCallExpressionNestedUMD2.1.normal.js | 17 +- ...portCallExpressionNestedUMD2.2.minified.js | 12 +- ...xpressionNoModuleKindSpecified.1.normal.js | 8 +- ...ressionNoModuleKindSpecified.2.minified.js | 8 +- ...llExpressionReturnPromiseOfAny.1.normal.js | 18 +- ...ExpressionReturnPromiseOfAny.2.minified.js | 8 +- ...ionSpecifierNotStringTypeError.1.normal.js | 12 +- ...nSpecifierNotStringTypeError.2.minified.js | 10 +- .../importClause_default.1.normal.js | 2 +- .../importClause_default.2.minified.js | 2 +- .../importDefaultNamedType.1.normal.js | 2 +- .../importDefaultNamedType.2.minified.js | 2 +- .../tsc-references/importEquals2.1.normal.js | 2 +- .../importEquals2.2.minified.js | 2 +- .../importImportOnlyModule.1.normal.js | 5 +- .../importImportOnlyModule.2.minified.js | 6 +- .../importStatements.1.normal.js | 2 +- .../importStatements.2.minified.js | 2 +- .../importTypeAmbient.1.normal.js | 2 +- .../importTypeAmbient.2.minified.js | 2 +- .../importTypeGenericTypes.1.normal.js | 4 +- .../importTypeGenericTypes.2.minified.js | 4 +- .../importTypeLocal.1.normal.js | 4 +- .../importTypeLocal.2.minified.js | 4 +- .../importTypeLocalMissing.1.normal.js | 4 +- .../importTypeLocalMissing.2.minified.js | 4 +- .../importsNotUsedAsValues_error.1.normal.js | 2 +- ...importsNotUsedAsValues_error.2.minified.js | 2 +- ...rementOperatorWithAnyOtherType.1.normal.js | 2 +- ...mentOperatorWithAnyOtherType.2.minified.js | 2 +- ...ncrementOperatorWithNumberType.1.normal.js | 2 +- ...rementOperatorWithNumberType.2.minified.js | 2 +- .../indexersInClassType.1.normal.js | 2 +- .../indexersInClassType.2.minified.js | 2 +- .../inferFromBindingPattern.1.normal.js | 2 +- .../inferFromBindingPattern.2.minified.js | 2 +- .../tsc-references/inferThis.1.normal.js | 2 +- .../tsc-references/inferThis.2.minified.js | 2 +- ...ingClassMembersFromAssignments.1.normal.js | 2 +- ...gClassMembersFromAssignments.2.minified.js | 2 +- ...ngClassMembersFromAssignments3.1.normal.js | 6 +- ...ClassMembersFromAssignments3.2.minified.js | 6 +- ...ngClassMembersFromAssignments4.1.normal.js | 6 +- ...ClassMembersFromAssignments4.2.minified.js | 6 +- ...ngClassMembersFromAssignments5.1.normal.js | 6 +- ...ClassMembersFromAssignments5.2.minified.js | 6 +- ...ngClassMembersFromAssignments7.1.normal.js | 2 +- ...ClassMembersFromAssignments7.2.minified.js | 2 +- ...ssStaticMembersFromAssignments.1.normal.js | 4 +- ...StaticMembersFromAssignments.2.minified.js | 4 +- ...erReferencingConstructorLocals.1.normal.js | 2 +- ...ReferencingConstructorLocals.2.minified.js | 2 +- ...ferencingConstructorParameters.1.normal.js | 2 +- ...rencingConstructorParameters.2.minified.js | 2 +- ...xFactoryDeclarationsLocalTypes.1.normal.js | 8 +- ...actoryDeclarationsLocalTypes.2.minified.js | 8 +- ...ypeParameterShadowingOuterOne2.1.normal.js | 2 +- ...eParameterShadowingOuterOne2.2.minified.js | 2 +- ...eMemberAssignsToClassPrototype.1.normal.js | 2 +- ...emberAssignsToClassPrototype.2.minified.js | 2 +- .../instanceMemberInitialization.1.normal.js | 2 +- ...instanceMemberInitialization.2.minified.js | 2 +- ...MemberWithComputedPropertyName.1.normal.js | 2 +- ...mberWithComputedPropertyName.2.minified.js | 2 +- ...emberWithComputedPropertyName2.1.normal.js | 2 +- ...berWithComputedPropertyName2.2.minified.js | 2 +- ...opertiesInheritedIntoClassType.1.normal.js | 8 +- ...ertiesInheritedIntoClassType.2.minified.js | 8 +- .../instancePropertyInClassType.1.normal.js | 4 +- .../instancePropertyInClassType.2.minified.js | 4 +- .../instanceofOperatorWithAny.1.normal.js | 2 +- .../instanceofOperatorWithAny.2.minified.js | 2 +- ...eofOperatorWithInvalidOperands.1.normal.js | 4 +- ...fOperatorWithInvalidOperands.2.minified.js | 4 +- ...ratorWithInvalidStaticToString.1.normal.js | 2 +- ...torWithInvalidStaticToString.2.minified.js | 2 +- ...tanceofOperatorWithLHSIsObject.1.normal.js | 4 +- ...nceofOperatorWithLHSIsObject.2.minified.js | 4 +- ...OperatorWithLHSIsTypeParameter.1.normal.js | 2 +- ...eratorWithLHSIsTypeParameter.2.minified.js | 2 +- ...atorWithRHSIsSubtypeOfFunction.1.normal.js | 2 +- ...orWithRHSIsSubtypeOfFunction.2.minified.js | 2 +- ...WithWrongNumberOfTypeArguments.1.normal.js | 2 +- ...thWrongNumberOfTypeArguments.2.minified.js | 2 +- ...ericClassWithZeroTypeArguments.1.normal.js | 2 +- ...icClassWithZeroTypeArguments.2.minified.js | 2 +- ...onGenericTypeWithTypeArguments.1.normal.js | 2 +- ...GenericTypeWithTypeArguments.2.minified.js | 2 +- .../instantiatedModule.1.normal.js | 2 +- .../instantiatedModule.2.minified.js | 2 +- .../interfaceExtendingClass.1.normal.js | 4 +- .../interfaceExtendingClass.2.minified.js | 4 +- ...faceExtendingClassWithPrivates.1.normal.js | 2 +- ...ceExtendingClassWithPrivates.2.minified.js | 2 +- ...aceExtendingClassWithPrivates2.1.normal.js | 2 +- ...eExtendingClassWithPrivates2.2.minified.js | 2 +- ...ceExtendingClassWithProtecteds.1.normal.js | 2 +- ...ExtendingClassWithProtecteds.2.minified.js | 2 +- ...eExtendingClassWithProtecteds2.1.normal.js | 2 +- ...xtendingClassWithProtecteds2.2.minified.js | 2 +- ...rfaceExtendsObjectIntersection.1.normal.js | 6 +- ...aceExtendsObjectIntersection.2.minified.js | 6 +- ...xtendsObjectIntersectionErrors.1.normal.js | 6 +- ...endsObjectIntersectionErrors.2.minified.js | 6 +- ...terfaceWithPropertyOfEveryType.1.normal.js | 2 +- ...rfaceWithPropertyOfEveryType.2.minified.js | 2 +- ...ropertyThatIsPrivateInBaseType.1.normal.js | 2 +- ...pertyThatIsPrivateInBaseType.2.minified.js | 2 +- ...opertyThatIsPrivateInBaseType2.1.normal.js | 2 +- ...ertyThatIsPrivateInBaseType2.2.minified.js | 2 +- .../intersectionsAndEmptyObjects.1.normal.js | 4 +- ...intersectionsAndEmptyObjects.2.minified.js | 4 +- .../intraExpressionInferences.1.normal.js | 2 +- .../intraExpressionInferences.2.minified.js | 2 +- .../invalidAssignmentsToVoid.1.normal.js | 2 +- .../invalidAssignmentsToVoid.2.minified.js | 2 +- .../invalidBooleanAssignments.1.normal.js | 2 +- .../invalidBooleanAssignments.2.minified.js | 2 +- .../invalidImportAliasIdentifiers.1.normal.js | 2 +- ...nvalidImportAliasIdentifiers.2.minified.js | 2 +- ...idMultipleVariableDeclarations.1.normal.js | 6 +- ...MultipleVariableDeclarations.2.minified.js | 6 +- .../invalidNestedModules.1.normal.js | 2 +- .../invalidNestedModules.2.minified.js | 2 +- .../invalidNumberAssignments.1.normal.js | 2 +- .../invalidNumberAssignments.2.minified.js | 2 +- .../invalidReturnStatements.1.normal.js | 6 +- .../invalidReturnStatements.2.minified.js | 6 +- .../invalidStringAssignments.1.normal.js | 2 +- .../invalidStringAssignments.2.minified.js | 2 +- .../invalidUndefinedAssignments.1.normal.js | 2 +- .../invalidUndefinedAssignments.2.minified.js | 2 +- .../invalidUndefinedValues.1.normal.js | 2 +- .../invalidUndefinedValues.2.minified.js | 2 +- .../invalidVoidAssignments.1.normal.js | 2 +- .../invalidVoidAssignments.2.minified.js | 2 +- .../invalidVoidValues.1.normal.js | 2 +- .../invalidVoidValues.2.minified.js | 2 +- ...arationsClassExtendsVisibility.1.normal.js | 8 +- ...ationsClassExtendsVisibility.2.minified.js | 8 +- ...mplementsGenericsSerialization.1.normal.js | 2 +- ...lementsGenericsSerialization.2.minified.js | 2 +- ...clarationsClassLeadingOptional.1.normal.js | 2 +- ...arationsClassLeadingOptional.2.minified.js | 2 +- .../jsDeclarationsClassStatic.1.normal.js | 4 +- .../jsDeclarationsClassStatic.2.minified.js | 4 +- ...sClassStaticMethodAugmentation.1.normal.js | 2 +- ...lassStaticMethodAugmentation.2.minified.js | 2 +- .../jsDeclarationsClasses.1.normal.js | 10 +- .../jsDeclarationsClasses.2.minified.js | 10 +- .../jsDeclarationsClassesErr.1.normal.js | 6 +- .../jsDeclarationsClassesErr.2.minified.js | 6 +- ...clarationsCommonjsRelativePath.1.normal.js | 4 +- ...arationsCommonjsRelativePath.2.minified.js | 4 +- .../jsDeclarationsComputedNames.1.normal.js | 4 +- .../jsDeclarationsComputedNames.2.minified.js | 4 +- .../jsDeclarationsDefault.1.normal.js | 8 +- .../jsDeclarationsDefault.2.minified.js | 8 +- .../jsDeclarationsDefaultsErr.1.normal.js | 4 +- .../jsDeclarationsDefaultsErr.2.minified.js | 4 +- ...sExportAssignedClassExpression.1.normal.js | 2 +- ...xportAssignedClassExpression.2.minified.js | 2 +- ...signedClassExpressionAnonymous.1.normal.js | 2 +- ...gnedClassExpressionAnonymous.2.minified.js | 2 +- ...lassExpressionAnonymousWithSub.1.normal.js | 2 +- ...ssExpressionAnonymousWithSub.2.minified.js | 2 +- ...signedClassExpressionShadowing.1.normal.js | 2 +- ...gnedClassExpressionShadowing.2.minified.js | 2 +- ...nsExportAssignedClassInstance1.1.normal.js | 2 +- ...ExportAssignedClassInstance1.2.minified.js | 2 +- ...nsExportAssignedClassInstance2.1.normal.js | 2 +- ...ExportAssignedClassInstance2.2.minified.js | 2 +- ...nsExportAssignedClassInstance3.1.normal.js | 2 +- ...ExportAssignedClassInstance3.2.minified.js | 2 +- ...ationsExportAssignedVisibility.1.normal.js | 4 +- ...ionsExportAssignedVisibility.2.minified.js | 4 +- .../jsDeclarationsExportForms.1.normal.js | 2 +- .../jsDeclarationsExportForms.2.minified.js | 2 +- ...rationsExportSpecifierNonlocal.1.normal.js | 2 +- ...tionsExportSpecifierNonlocal.2.minified.js | 2 +- ...clarationsExportSubAssignments.1.normal.js | 2 +- ...arationsExportSubAssignments.2.minified.js | 2 +- ...clarationsExportedClassAliases.1.normal.js | 8 +- ...arationsExportedClassAliases.2.minified.js | 8 +- ...tionClassesCjsExportAssignment.1.normal.js | 2 +- ...onClassesCjsExportAssignment.2.minified.js | 2 +- .../jsDeclarationsFunctionJSDoc.1.normal.js | 2 +- .../jsDeclarationsFunctionJSDoc.2.minified.js | 2 +- ...eclarationsFunctionLikeClasses.1.normal.js | 2 +- ...larationsFunctionLikeClasses.2.minified.js | 2 +- ...clarationsFunctionLikeClasses2.1.normal.js | 2 +- ...arationsFunctionLikeClasses2.2.minified.js | 2 +- .../jsDeclarationsFunctions.1.normal.js | 2 +- .../jsDeclarationsFunctions.2.minified.js | 2 +- .../jsDeclarationsFunctionsCjs.1.normal.js | 2 +- .../jsDeclarationsFunctionsCjs.2.minified.js | 2 +- ...arationsModuleReferenceHasEmit.1.normal.js | 2 +- ...ationsModuleReferenceHasEmit.2.minified.js | 2 +- .../jsDeclarationsNestedParams.1.normal.js | 2 +- .../jsDeclarationsNestedParams.2.minified.js | 2 +- .../jsDeclarationsReexportAliases.1.normal.js | 2 +- ...sDeclarationsReexportAliases.2.minified.js | 2 +- ...ReexportAliasesEsModuleInterop.1.normal.js | 2 +- ...exportAliasesEsModuleInterop.2.minified.js | 2 +- ...DeclarationsReexportedCjsAlias.1.normal.js | 2 +- ...clarationsReexportedCjsAlias.2.minified.js | 2 +- ...erenceToClassInstanceCrossFile.1.normal.js | 4 +- ...enceToClassInstanceCrossFile.2.minified.js | 4 +- ...rgsWithThisTypeInJSDocFunction.1.normal.js | 2 +- ...sWithThisTypeInJSDocFunction.2.minified.js | 2 +- ...hExplicitNoArgumentConstructor.1.normal.js | 6 +- ...xplicitNoArgumentConstructor.2.minified.js | 6 +- .../jsDeclarationsThisTypes.1.normal.js | 6 +- .../jsDeclarationsThisTypes.2.minified.js | 6 +- .../jsDeclarationsTypeAliases.1.normal.js | 2 +- .../jsDeclarationsTypeAliases.2.minified.js | 2 +- ...larationsTypedefAndImportTypes.1.normal.js | 4 +- ...rationsTypedefAndImportTypes.2.minified.js | 4 +- ...defPropertyAndExportAssignment.1.normal.js | 2 +- ...fPropertyAndExportAssignment.2.minified.js | 2 +- .../jsObjectsMarkedAsOpenEnded.1.normal.js | 2 +- .../jsObjectsMarkedAsOpenEnded.2.minified.js | 2 +- .../jsxJsxsCjsTransformKeyProp.1.normal.js | 8 +- .../jsxJsxsCjsTransformKeyProp.2.minified.js | 6 +- ...jsTransformKeyPropCustomImport.1.normal.js | 8 +- ...TransformKeyPropCustomImport.2.minified.js | 6 +- ...sformKeyPropCustomImportPragma.1.normal.js | 16 +- ...ormKeyPropCustomImportPragma.2.minified.js | 12 +- .../jsxReactTestSuite.1.normal.js | 4 +- .../jsxReactTestSuite.2.minified.js | 4 +- .../keyofAndIndexedAccess.1.normal.js | 6 +- .../keyofAndIndexedAccess.2.minified.js | 6 +- .../keyofAndIndexedAccessErrors.1.normal.js | 2 +- .../keyofAndIndexedAccessErrors.2.minified.js | 2 +- .../literalTypeWidening.1.normal.js | 4 +- .../literalTypeWidening.2.minified.js | 4 +- .../tsc-references/literalTypes2.1.normal.js | 2 +- .../literalTypes2.2.minified.js | 2 +- ...lTypesWidenInParameterPosition.1.normal.js | 2 +- ...ypesWidenInParameterPosition.2.minified.js | 2 +- .../tsc-references/localTypes1.1.normal.js | 8 +- .../tsc-references/localTypes1.2.minified.js | 8 +- .../tsc-references/localTypes2.1.normal.js | 2 +- .../tsc-references/localTypes2.2.minified.js | 2 +- .../tsc-references/localTypes3.1.normal.js | 2 +- .../tsc-references/localTypes3.2.minified.js | 2 +- .../tsc-references/localTypes5.1.normal.js | 2 +- .../tsc-references/localTypes5.2.minified.js | 2 +- ...calNotOperatorWithAnyOtherType.1.normal.js | 2 +- ...lNotOperatorWithAnyOtherType.2.minified.js | 2 +- ...icalNotOperatorWithBooleanType.1.normal.js | 2 +- ...alNotOperatorWithBooleanType.2.minified.js | 2 +- ...gicalNotOperatorWithNumberType.1.normal.js | 2 +- ...calNotOperatorWithNumberType.2.minified.js | 2 +- ...gicalNotOperatorWithStringType.1.normal.js | 2 +- ...calNotOperatorWithStringType.2.minified.js | 2 +- .../looseThisTypeInFunctions.1.normal.js | 2 +- .../looseThisTypeInFunctions.2.minified.js | 2 +- .../mappedTypeConstraints.1.normal.js | 2 +- .../mappedTypeConstraints.2.minified.js | 2 +- .../mappedTypeErrors.1.normal.js | 2 +- .../mappedTypeErrors.2.minified.js | 2 +- .../tsc-references/mappedTypes3.1.normal.js | 2 +- .../tsc-references/mappedTypes3.2.minified.js | 2 +- .../mappedTypesAndObjects.1.normal.js | 2 +- .../mappedTypesAndObjects.2.minified.js | 2 +- ...verloadMixingStaticAndInstance.1.normal.js | 2 +- ...rloadMixingStaticAndInstance.2.minified.js | 2 +- ...rFunctionsWithPrivateOverloads.1.normal.js | 2 +- ...unctionsWithPrivateOverloads.2.minified.js | 2 +- ...erFunctionsWithPublicOverloads.1.normal.js | 2 +- ...FunctionsWithPublicOverloads.2.minified.js | 2 +- ...ionsWithPublicPrivateOverloads.1.normal.js | 2 +- ...nsWithPublicPrivateOverloads.2.minified.js | 2 +- .../mergedClassInterface.1.normal.js | 2 +- .../mergedClassInterface.2.minified.js | 2 +- .../mergedInheritedClassInterface.1.normal.js | 6 +- ...ergedInheritedClassInterface.2.minified.js | 6 +- ...itedMembersSatisfyAbstractBase.1.normal.js | 6 +- ...edMembersSatisfyAbstractBase.2.minified.js | 6 +- ...nterfacesWithInheritedPrivates.1.normal.js | 2 +- ...erfacesWithInheritedPrivates.2.minified.js | 2 +- ...terfacesWithInheritedPrivates2.1.normal.js | 6 +- ...rfacesWithInheritedPrivates2.2.minified.js | 6 +- ...terfacesWithInheritedPrivates3.1.normal.js | 6 +- ...rfacesWithInheritedPrivates3.2.minified.js | 6 +- ...gedInterfacesWithMultipleBases.1.normal.js | 2 +- ...dInterfacesWithMultipleBases.2.minified.js | 2 +- ...edInterfacesWithMultipleBases2.1.normal.js | 2 +- ...InterfacesWithMultipleBases2.2.minified.js | 2 +- ...edInterfacesWithMultipleBases3.1.normal.js | 2 +- ...InterfacesWithMultipleBases3.2.minified.js | 2 +- ...edInterfacesWithMultipleBases4.1.normal.js | 2 +- ...InterfacesWithMultipleBases4.2.minified.js | 2 +- .../missingAndExcessProperties.1.normal.js | 2 +- .../missingAndExcessProperties.2.minified.js | 2 +- .../mixinAccessModifiers.1.normal.js | 6 +- .../mixinAccessModifiers.2.minified.js | 6 +- .../mixinClassesAnnotated.1.normal.js | 8 +- .../mixinClassesAnnotated.2.minified.js | 8 +- .../mixinClassesAnonymous.1.normal.js | 8 +- .../mixinClassesAnonymous.2.minified.js | 8 +- .../mixinClassesMembers.1.normal.js | 10 +- .../mixinClassesMembers.2.minified.js | 10 +- ...assDeclarationMemberInFunction.1.normal.js | 2 +- ...sDeclarationMemberInFunction.2.minified.js | 2 +- ...lassExpressionMemberInFunction.1.normal.js | 2 +- ...ssExpressionMemberInFunction.2.minified.js | 2 +- .../moduleExportAlias3.1.normal.js | 2 +- .../moduleExportAlias3.2.minified.js | 2 +- .../moduleExportAlias4.1.normal.js | 2 +- .../moduleExportAlias4.2.minified.js | 2 +- .../moduleExportAssignment.1.normal.js | 2 +- .../moduleExportAssignment.2.minified.js | 2 +- .../moduleExportAssignment5.1.normal.js | 2 +- .../moduleExportAssignment5.2.minified.js | 2 +- .../moduleExportAssignment6.1.normal.js | 2 +- .../moduleExportAssignment6.2.minified.js | 2 +- .../moduleExportAssignment7.1.normal.js | 2 +- .../moduleExportAssignment7.2.minified.js | 2 +- .../moduleExportNestedNamespaces.1.normal.js | 2 +- ...moduleExportNestedNamespaces.2.minified.js | 2 +- ...oduleWithStatementsOfEveryKind.1.normal.js | 6 +- ...uleWithStatementsOfEveryKind.2.minified.js | 6 +- .../multipleDeclarations.1.normal.js | 2 +- .../multipleDeclarations.2.minified.js | 2 +- .../multipleDefaultExports01.1.normal.js | 4 +- .../multipleDefaultExports01.2.minified.js | 2 +- .../multipleDefaultExports02.1.normal.js | 4 +- .../multipleDefaultExports02.2.minified.js | 2 +- .../multipleNumericIndexers.1.normal.js | 2 +- .../multipleNumericIndexers.2.minified.js | 2 +- .../multipleStringIndexers.1.normal.js | 2 +- .../multipleStringIndexers.2.minified.js | 2 +- .../tsc-references/nameCollision.1.normal.js | 2 +- .../nameCollision.2.minified.js | 2 +- .../namedTupleMembers.1.normal.js | 4 +- .../namedTupleMembers.2.minified.js | 4 +- .../namespaceImportTypeQuery.1.normal.js | 2 +- .../namespaceImportTypeQuery.2.minified.js | 2 +- .../namespaceMemberAccess.1.normal.js | 2 +- .../namespaceMemberAccess.2.minified.js | 2 +- ...ExceptionVariableInCatchClause.1.normal.js | 2 +- ...ceptionVariableInCatchClause.2.minified.js | 2 +- .../narrowFromAnyWithInstanceof.1.normal.js | 2 +- .../narrowFromAnyWithInstanceof.2.minified.js | 2 +- ...rrowingConstrainedTypeVariable.1.normal.js | 4 +- ...owingConstrainedTypeVariable.2.minified.js | 4 +- ...ingGenericTypeFromInstanceof01.1.normal.js | 4 +- ...gGenericTypeFromInstanceof01.2.minified.js | 4 +- .../negateOperatorWithBooleanType.1.normal.js | 2 +- ...egateOperatorWithBooleanType.2.minified.js | 2 +- .../negateOperatorWithNumberType.1.normal.js | 2 +- ...negateOperatorWithNumberType.2.minified.js | 2 +- .../negateOperatorWithStringType.1.normal.js | 2 +- ...negateOperatorWithStringType.2.minified.js | 2 +- .../nestedNamespace.1.normal.js | 2 +- .../nestedNamespace.2.minified.js | 2 +- .../neverReturningFunctions1.1.normal.js | 10 +- .../neverReturningFunctions1.2.minified.js | 10 +- .../tsc-references/neverType.1.normal.js | 2 +- .../tsc-references/neverType.2.minified.js | 2 +- .../newOperatorConformance.1.normal.js | 2 +- .../newOperatorConformance.2.minified.js | 2 +- .../tsc-references/newTarget.es5.1.normal.js | 8 +- .../newTarget.es5.2.minified.js | 8 +- .../tsc-references/newWithSpread.1.normal.js | 6 +- .../newWithSpread.2.minified.js | 6 +- .../newWithSpreadES5.1.normal.js | 6 +- .../newWithSpreadES5.2.minified.js | 6 +- ...ckedIndexedAccessDestructuring.1.normal.js | 10 +- ...edIndexedAccessDestructuring.2.minified.js | 10 +- ...TypeReferenceWithTypeArguments.1.normal.js | 2 +- ...peReferenceWithTypeArguments.2.minified.js | 2 +- .../nonInstantiatedModule.1.normal.js | 2 +- .../nonInstantiatedModule.2.minified.js | 2 +- .../nonPrimitiveAccessProperty.1.normal.js | 4 +- .../nonPrimitiveAccessProperty.2.minified.js | 4 +- .../nonPrimitiveNarrow.1.normal.js | 4 +- .../nonPrimitiveNarrow.2.minified.js | 4 +- .../nullAssignableToEveryType.1.normal.js | 2 +- .../nullAssignableToEveryType.2.minified.js | 2 +- ...ubtypeOfEverythingButUndefined.1.normal.js | 2 +- ...typeOfEverythingButUndefined.2.minified.js | 2 +- ...nAsyncGenerator(target=es2015).1.normal.js | 2 +- ...syncGenerator(target=es2015).2.minified.js | 2 +- ...orInAsyncGenerator(target=es5).1.normal.js | 4 +- ...InAsyncGenerator(target=es5).2.minified.js | 4 +- ...ConstrainsPropertyDeclarations.1.normal.js | 4 +- ...nstrainsPropertyDeclarations.2.minified.js | 4 +- ...onstrainsPropertyDeclarations2.1.normal.js | 6 +- ...strainsPropertyDeclarations2.2.minified.js | 6 +- .../numericIndexingResults.1.normal.js | 2 +- .../numericIndexingResults.2.minified.js | 2 +- .../objectLiteralNormalization.1.normal.js | 4 +- .../objectLiteralNormalization.2.minified.js | 4 +- .../tsc-references/objectRest.1.normal.js | 8 +- .../tsc-references/objectRest.2.minified.js | 8 +- .../tsc-references/objectRest2.1.normal.js | 4 +- .../tsc-references/objectRest2.2.minified.js | 4 +- .../objectRestAssignment.1.normal.js | 6 +- .../objectRestAssignment.2.minified.js | 6 +- .../objectRestCatchES5.1.normal.js | 2 +- .../objectRestCatchES5.2.minified.js | 2 +- .../objectRestForOf.1.normal.js | 6 +- .../objectRestForOf.2.minified.js | 6 +- .../objectRestParameter.1.normal.js | 2 +- .../objectRestParameter.2.minified.js | 2 +- .../objectRestParameterES5.1.normal.js | 6 +- .../objectRestParameterES5.2.minified.js | 6 +- .../objectRestReadonly.1.normal.js | 2 +- .../objectRestReadonly.2.minified.js | 2 +- .../tsc-references/objectSpread.1.normal.js | 8 +- .../tsc-references/objectSpread.2.minified.js | 8 +- .../objectSpreadComputedProperty.1.normal.js | 6 +- ...objectSpreadComputedProperty.2.minified.js | 6 +- .../objectSpreadIndexSignature.1.normal.js | 4 +- .../objectSpreadIndexSignature.2.minified.js | 4 +- ...objectSpreadRepeatedComplexity.1.normal.js | 2 +- ...jectSpreadRepeatedComplexity.2.minified.js | 2 +- ...ectSpreadRepeatedNullCheckPerf.1.normal.js | 2 +- ...tSpreadRepeatedNullCheckPerf.2.minified.js | 2 +- .../objectSpreadStrictNull.1.normal.js | 4 +- .../objectSpreadStrictNull.2.minified.js | 4 +- ...eHidingMembersOfExtendedObject.1.normal.js | 6 +- ...idingMembersOfExtendedObject.2.minified.js | 6 +- ...bjectTypeHidingMembersOfObject.1.normal.js | 2 +- ...ectTypeHidingMembersOfObject.2.minified.js | 2 +- ...embersOfObjectAssignmentCompat.1.normal.js | 2 +- ...bersOfObjectAssignmentCompat.2.minified.js | 2 +- ...mbersOfObjectAssignmentCompat2.1.normal.js | 2 +- ...ersOfObjectAssignmentCompat2.2.minified.js | 2 +- .../objectTypePropertyAccess.1.normal.js | 2 +- .../objectTypePropertyAccess.2.minified.js | 2 +- .../objectTypeWithNumericProperty.1.normal.js | 2 +- ...bjectTypeWithNumericProperty.2.minified.js | 2 +- ...peWithRecursiveWrappedProperty.1.normal.js | 2 +- ...WithRecursiveWrappedProperty.2.minified.js | 2 +- ...eWithRecursiveWrappedProperty2.1.normal.js | 2 +- ...ithRecursiveWrappedProperty2.2.minified.js | 2 +- ...rappedPropertyCheckedNominally.1.normal.js | 2 +- ...ppedPropertyCheckedNominally.2.minified.js | 2 +- ...ringIndexerHidingObjectIndexer.1.normal.js | 2 +- ...ngIndexerHidingObjectIndexer.2.minified.js | 2 +- ...medPropertyOfIllegalCharacters.1.normal.js | 2 +- ...dPropertyOfIllegalCharacters.2.minified.js | 2 +- .../objectTypesIdentity.1.normal.js | 2 +- .../objectTypesIdentity.2.minified.js | 2 +- .../objectTypesIdentity2.1.normal.js | 2 +- .../objectTypesIdentity2.2.minified.js | 2 +- ...ypesIdentityWithCallSignatures.1.normal.js | 2 +- ...esIdentityWithCallSignatures.2.minified.js | 2 +- ...pesIdentityWithCallSignatures2.1.normal.js | 2 +- ...sIdentityWithCallSignatures2.2.minified.js | 2 +- ...SignaturesDifferingParamCounts.1.normal.js | 2 +- ...gnaturesDifferingParamCounts.2.minified.js | 2 +- ...ithCallSignaturesWithOverloads.1.normal.js | 2 +- ...hCallSignaturesWithOverloads.2.minified.js | 2 +- ...dentityWithConstructSignatures.1.normal.js | 2 +- ...ntityWithConstructSignatures.2.minified.js | 2 +- ...entityWithConstructSignatures2.1.normal.js | 2 +- ...tityWithConstructSignatures2.2.minified.js | 2 +- ...SignaturesDifferingParamCounts.1.normal.js | 2 +- ...gnaturesDifferingParamCounts.2.minified.js | 2 +- ...ntityWithGenericCallSignatures.1.normal.js | 2 +- ...ityWithGenericCallSignatures.2.minified.js | 2 +- ...tityWithGenericCallSignatures2.1.normal.js | 2 +- ...tyWithGenericCallSignatures2.2.minified.js | 2 +- ...gnaturesDifferingByConstraints.1.normal.js | 2 +- ...aturesDifferingByConstraints.2.minified.js | 2 +- ...naturesDifferingByConstraints2.1.normal.js | 2 +- ...turesDifferingByConstraints2.2.minified.js | 2 +- ...naturesDifferingByConstraints3.1.normal.js | 2 +- ...turesDifferingByConstraints3.2.minified.js | 2 +- ...ignaturesDifferingByReturnType.1.normal.js | 2 +- ...naturesDifferingByReturnType.2.minified.js | 2 +- ...gnaturesDifferingByReturnType2.1.normal.js | 2 +- ...aturesDifferingByReturnType2.2.minified.js | 2 +- ...esDifferingTypeParameterCounts.1.normal.js | 2 +- ...DifferingTypeParameterCounts.2.minified.js | 2 +- ...resDifferingTypeParameterNames.1.normal.js | 2 +- ...sDifferingTypeParameterNames.2.minified.js | 2 +- ...icCallSignaturesOptionalParams.1.normal.js | 2 +- ...CallSignaturesOptionalParams.2.minified.js | 2 +- ...cCallSignaturesOptionalParams2.1.normal.js | 2 +- ...allSignaturesOptionalParams2.2.minified.js | 2 +- ...cCallSignaturesOptionalParams3.1.normal.js | 2 +- ...allSignaturesOptionalParams3.2.minified.js | 2 +- ...gnaturesDifferingByConstraints.1.normal.js | 2 +- ...aturesDifferingByConstraints.2.minified.js | 2 +- ...naturesDifferingByConstraints2.1.normal.js | 2 +- ...turesDifferingByConstraints2.2.minified.js | 2 +- ...naturesDifferingByConstraints3.1.normal.js | 2 +- ...turesDifferingByConstraints3.2.minified.js | 2 +- ...ignaturesDifferingByReturnType.1.normal.js | 2 +- ...naturesDifferingByReturnType.2.minified.js | 2 +- ...gnaturesDifferingByReturnType2.1.normal.js | 2 +- ...aturesDifferingByReturnType2.2.minified.js | 2 +- ...esDifferingTypeParameterCounts.1.normal.js | 2 +- ...DifferingTypeParameterCounts.2.minified.js | 2 +- ...resDifferingTypeParameterNames.1.normal.js | 2 +- ...sDifferingTypeParameterNames.2.minified.js | 2 +- ...structSignaturesOptionalParams.1.normal.js | 2 +- ...ructSignaturesOptionalParams.2.minified.js | 2 +- ...tructSignaturesOptionalParams2.1.normal.js | 2 +- ...uctSignaturesOptionalParams2.2.minified.js | 2 +- ...tructSignaturesOptionalParams3.1.normal.js | 2 +- ...uctSignaturesOptionalParams3.2.minified.js | 2 +- ...esIdentityWithNumericIndexers1.1.normal.js | 6 +- ...IdentityWithNumericIndexers1.2.minified.js | 6 +- ...esIdentityWithNumericIndexers2.1.normal.js | 6 +- ...IdentityWithNumericIndexers2.2.minified.js | 6 +- ...esIdentityWithNumericIndexers3.1.normal.js | 6 +- ...IdentityWithNumericIndexers3.2.minified.js | 6 +- ...ctTypesIdentityWithOptionality.1.normal.js | 2 +- ...TypesIdentityWithOptionality.2.minified.js | 2 +- ...bjectTypesIdentityWithPrivates.1.normal.js | 6 +- ...ectTypesIdentityWithPrivates.2.minified.js | 6 +- ...jectTypesIdentityWithPrivates2.1.normal.js | 6 +- ...ctTypesIdentityWithPrivates2.2.minified.js | 6 +- ...jectTypesIdentityWithPrivates3.1.normal.js | 6 +- ...ctTypesIdentityWithPrivates3.2.minified.js | 6 +- ...objectTypesIdentityWithPublics.1.normal.js | 2 +- ...jectTypesIdentityWithPublics.2.minified.js | 2 +- ...ypesIdentityWithStringIndexers.1.normal.js | 6 +- ...esIdentityWithStringIndexers.2.minified.js | 6 +- ...pesIdentityWithStringIndexers2.1.normal.js | 6 +- ...sIdentityWithStringIndexers2.2.minified.js | 6 +- .../optionalBindingParameters1.1.normal.js | 2 +- .../optionalBindingParameters1.2.minified.js | 2 +- .../optionalMethods.1.normal.js | 6 +- .../optionalMethods.2.minified.js | 6 +- .../outFilerootDirModuleNamesAmd.1.normal.js | 15 +- ...outFilerootDirModuleNamesAmd.2.minified.js | 12 +- .../overloadResolution.1.normal.js | 6 +- .../overloadResolution.2.minified.js | 6 +- ...oadResolutionClassConstructors.1.normal.js | 6 +- ...dResolutionClassConstructors.2.minified.js | 6 +- ...overloadResolutionConstructors.1.normal.js | 6 +- ...erloadResolutionConstructors.2.minified.js | 6 +- .../tsc-references/override10.1.normal.js | 6 +- .../tsc-references/override10.2.minified.js | 6 +- .../tsc-references/override15.1.normal.js | 6 +- .../tsc-references/override15.2.minified.js | 6 +- .../override18(target=es2015).1.normal.js | 2 +- .../override18(target=es2015).2.minified.js | 2 +- .../tsc-references/override2.1.normal.js | 6 +- .../tsc-references/override2.2.minified.js | 6 +- .../tsc-references/override3.1.normal.js | 6 +- .../tsc-references/override3.2.minified.js | 6 +- .../tsc-references/override4.1.normal.js | 6 +- .../tsc-references/override4.2.minified.js | 6 +- .../tsc-references/override6.1.normal.js | 6 +- .../tsc-references/override6.2.minified.js | 6 +- .../tsc-references/override8.1.normal.js | 6 +- .../tsc-references/override8.2.minified.js | 6 +- .../tsc-references/override_js1.1.normal.js | 6 +- .../tsc-references/override_js1.2.minified.js | 6 +- .../tsc-references/override_js2.1.normal.js | 6 +- .../tsc-references/override_js2.2.minified.js | 6 +- .../tsc-references/override_js3.1.normal.js | 6 +- .../tsc-references/override_js3.2.minified.js | 6 +- .../tsc-references/override_js4.1.normal.js | 6 +- .../tsc-references/override_js4.2.minified.js | 6 +- ...InitializersForwardReferencing.1.normal.js | 2 +- ...rdReferencing.2(target=es2015).1.normal.js | 2 +- ...Referencing.2(target=es2015).2.minified.js | 2 +- ...rwardReferencing.2(target=es5).1.normal.js | 2 +- ...ardReferencing.2(target=es5).2.minified.js | 2 +- ...itializersForwardReferencing.2.minified.js | 2 +- ...nitializersForwardReferencing1.1.normal.js | 2 +- ...tializersForwardReferencing1.2.minified.js | 2 +- ...rametersWithNoAnnotationAreAny.1.normal.js | 2 +- ...metersWithNoAnnotationAreAny.2.minified.js | 2 +- .../tsc-references/parser509546.1.normal.js | 2 +- .../tsc-references/parser509546.2.minified.js | 2 +- .../tsc-references/parser509546_1.1.normal.js | 2 +- .../parser509546_1.2.minified.js | 2 +- .../tsc-references/parser509546_2.1.normal.js | 2 +- .../parser509546_2.2.minified.js | 2 +- ...rserAccessibilityAfterStatic11.1.normal.js | 2 +- ...erAccessibilityAfterStatic11.2.minified.js | 2 +- ...rserAccessibilityAfterStatic14.1.normal.js | 2 +- ...erAccessibilityAfterStatic14.2.minified.js | 2 +- ...arserAccessibilityAfterStatic2.1.normal.js | 2 +- ...serAccessibilityAfterStatic2.2.minified.js | 2 +- ...arserAccessibilityAfterStatic3.1.normal.js | 2 +- ...serAccessibilityAfterStatic3.2.minified.js | 2 +- ...arserAccessibilityAfterStatic4.1.normal.js | 2 +- ...serAccessibilityAfterStatic4.2.minified.js | 2 +- ...arserAccessibilityAfterStatic5.1.normal.js | 2 +- ...serAccessibilityAfterStatic5.2.minified.js | 2 +- .../parserAccessors1.1.normal.js | 4 +- .../parserAccessors1.2.minified.js | 4 +- .../parserAccessors2.1.normal.js | 4 +- .../parserAccessors2.2.minified.js | 4 +- .../parserAstSpans1.1.normal.js | 14 +- .../parserAstSpans1.2.minified.js | 14 +- .../tsc-references/parserClass1.1.normal.js | 2 +- .../tsc-references/parserClass1.2.minified.js | 2 +- .../tsc-references/parserClass2.1.normal.js | 2 +- .../tsc-references/parserClass2.2.minified.js | 2 +- .../parserClassDeclaration10.1.normal.js | 2 +- .../parserClassDeclaration10.2.minified.js | 2 +- .../parserClassDeclaration11.1.normal.js | 2 +- .../parserClassDeclaration11.2.minified.js | 2 +- .../parserClassDeclaration12.1.normal.js | 2 +- .../parserClassDeclaration12.2.minified.js | 2 +- .../parserClassDeclaration13.1.normal.js | 2 +- .../parserClassDeclaration13.2.minified.js | 2 +- .../parserClassDeclaration14.1.normal.js | 2 +- .../parserClassDeclaration14.2.minified.js | 2 +- .../parserClassDeclaration15.1.normal.js | 2 +- .../parserClassDeclaration15.2.minified.js | 2 +- .../parserClassDeclaration16.1.normal.js | 2 +- .../parserClassDeclaration16.2.minified.js | 2 +- .../parserClassDeclaration19.1.normal.js | 2 +- .../parserClassDeclaration19.2.minified.js | 2 +- .../parserClassDeclaration20.1.normal.js | 2 +- .../parserClassDeclaration20.2.minified.js | 2 +- .../parserClassDeclaration21.1.normal.js | 2 +- .../parserClassDeclaration21.2.minified.js | 2 +- .../parserClassDeclaration22.1.normal.js | 2 +- .../parserClassDeclaration22.2.minified.js | 2 +- .../parserClassDeclaration23.1.normal.js | 2 +- .../parserClassDeclaration23.2.minified.js | 2 +- .../parserClassDeclaration25.1.normal.js | 2 +- .../parserClassDeclaration25.2.minified.js | 2 +- .../parserClassDeclaration26.1.normal.js | 2 +- .../parserClassDeclaration26.2.minified.js | 2 +- .../parserClassDeclaration8.1.normal.js | 2 +- .../parserClassDeclaration8.2.minified.js | 2 +- .../parserClassDeclaration9.1.normal.js | 2 +- .../parserClassDeclaration9.2.minified.js | 2 +- ...lassDeclarationIndexSignature1.1.normal.js | 2 +- ...ssDeclarationIndexSignature1.2.minified.js | 2 +- .../parserConstructorDeclaration1.1.normal.js | 2 +- ...arserConstructorDeclaration1.2.minified.js | 2 +- .../parserConstructorDeclaration5.1.normal.js | 2 +- ...arserConstructorDeclaration5.2.minified.js | 2 +- .../parserES3Accessors1.1.normal.js | 4 +- .../parserES3Accessors1.2.minified.js | 4 +- .../parserES3Accessors2.1.normal.js | 4 +- .../parserES3Accessors2.2.minified.js | 4 +- ...parserES5ComputedPropertyName2.1.normal.js | 2 +- ...rserES5ComputedPropertyName2.2.minified.js | 2 +- ...parserES5ComputedPropertyName3.1.normal.js | 2 +- ...rserES5ComputedPropertyName3.2.minified.js | 2 +- ...parserES5ComputedPropertyName4.1.normal.js | 2 +- ...rserES5ComputedPropertyName4.2.minified.js | 2 +- .../parserES5ForOfStatement11.1.normal.js | 2 +- .../parserES5ForOfStatement11.2.minified.js | 2 +- .../parserES5ForOfStatement14.1.normal.js | 2 +- .../parserES5ForOfStatement14.2.minified.js | 2 +- .../parserES5ForOfStatement15.1.normal.js | 2 +- .../parserES5ForOfStatement15.2.minified.js | 2 +- .../parserES5SymbolIndexer2.1.normal.js | 2 +- .../parserES5SymbolIndexer2.2.minified.js | 2 +- .../parserES5SymbolProperty6.1.normal.js | 2 +- .../parserES5SymbolProperty6.2.minified.js | 2 +- .../parserES5SymbolProperty7.1.normal.js | 2 +- .../parserES5SymbolProperty7.2.minified.js | 2 +- ...very_IncompleteMemberVariable1.1.normal.js | 2 +- ...ry_IncompleteMemberVariable1.2.minified.js | 2 +- ...erErrorRecovery_ParameterList6.1.normal.js | 2 +- ...ErrorRecovery_ParameterList6.2.minified.js | 2 +- .../parserGenericClass1.1.normal.js | 2 +- .../parserGenericClass1.2.minified.js | 2 +- .../parserGenericClass2.1.normal.js | 2 +- .../parserGenericClass2.2.minified.js | 2 +- .../parserGenericConstraint1.1.normal.js | 2 +- .../parserGenericConstraint1.2.minified.js | 2 +- .../parserGenericConstraint2.1.normal.js | 2 +- .../parserGenericConstraint2.2.minified.js | 2 +- .../parserGenericConstraint3.1.normal.js | 2 +- .../parserGenericConstraint3.2.minified.js | 2 +- .../parserGenericConstraint4.1.normal.js | 2 +- .../parserGenericConstraint4.2.minified.js | 2 +- .../parserGenericConstraint5.1.normal.js | 2 +- .../parserGenericConstraint5.2.minified.js | 2 +- .../parserGenericConstraint6.1.normal.js | 2 +- .../parserGenericConstraint6.2.minified.js | 2 +- .../parserGenericConstraint7.1.normal.js | 2 +- .../parserGenericConstraint7.2.minified.js | 2 +- .../parserGenericsInTypeContexts1.1.normal.js | 6 +- ...arserGenericsInTypeContexts1.2.minified.js | 6 +- .../parserGenericsInTypeContexts2.1.normal.js | 6 +- ...arserGenericsInTypeContexts2.2.minified.js | 6 +- .../parserIndexMemberDeclaration1.1.normal.js | 2 +- ...arserIndexMemberDeclaration1.2.minified.js | 2 +- .../parserIndexMemberDeclaration2.1.normal.js | 2 +- ...arserIndexMemberDeclaration2.2.minified.js | 2 +- .../parserIndexMemberDeclaration3.1.normal.js | 2 +- ...arserIndexMemberDeclaration3.2.minified.js | 2 +- .../parserIndexMemberDeclaration4.1.normal.js | 2 +- ...arserIndexMemberDeclaration4.2.minified.js | 2 +- .../parserIndexMemberDeclaration6.1.normal.js | 2 +- ...arserIndexMemberDeclaration6.2.minified.js | 2 +- .../parserMemberAccessor1.1.normal.js | 4 +- .../parserMemberAccessor1.2.minified.js | 4 +- ...rserMemberAccessorDeclaration1.1.normal.js | 4 +- ...erMemberAccessorDeclaration1.2.minified.js | 4 +- ...rserMemberAccessorDeclaration2.1.normal.js | 4 +- ...erMemberAccessorDeclaration2.2.minified.js | 4 +- ...rserMemberAccessorDeclaration3.1.normal.js | 4 +- ...erMemberAccessorDeclaration3.2.minified.js | 4 +- ...rserMemberAccessorDeclaration4.1.normal.js | 4 +- ...erMemberAccessorDeclaration4.2.minified.js | 4 +- ...rserMemberAccessorDeclaration5.1.normal.js | 4 +- ...erMemberAccessorDeclaration5.2.minified.js | 4 +- ...rserMemberAccessorDeclaration6.1.normal.js | 4 +- ...erMemberAccessorDeclaration6.2.minified.js | 4 +- ...unctionDeclarationAmbiguities1.1.normal.js | 2 +- ...ctionDeclarationAmbiguities1.2.minified.js | 2 +- ...rserMemberVariableDeclaration5.1.normal.js | 2 +- ...erMemberVariableDeclaration5.2.minified.js | 2 +- .../parserRealSource1.1.normal.js | 2 +- .../parserRealSource1.2.minified.js | 2 +- .../parserRealSource12.1.normal.js | 2 +- .../parserRealSource12.2.minified.js | 2 +- .../parserRealSource14.1.normal.js | 2 +- .../parserRealSource14.2.minified.js | 2 +- .../parserRealSource5.1.normal.js | 2 +- .../parserRealSource5.2.minified.js | 2 +- .../parserRealSource6.1.normal.js | 2 +- .../parserRealSource6.2.minified.js | 2 +- .../parserRealSource8.1.normal.js | 2 +- .../parserRealSource8.2.minified.js | 2 +- .../parserSuperExpression1.1.normal.js | 6 +- .../parserSuperExpression1.2.minified.js | 6 +- .../parserSuperExpression3.1.normal.js | 2 +- .../parserSuperExpression3.2.minified.js | 2 +- .../parserSuperExpression4.1.normal.js | 6 +- .../parserSuperExpression4.2.minified.js | 6 +- .../tsc-references/parserUnicode3.1.normal.js | 2 +- .../parserUnicode3.2.minified.js | 2 +- .../tsc-references/parserindenter.1.normal.js | 2 +- .../parserindenter.2.minified.js | 2 +- ...nnotatedFunctionInferenceError.1.normal.js | 6 +- ...otatedFunctionInferenceError.2.minified.js | 6 +- ...tionInferenceWithTypeParameter.1.normal.js | 6 +- ...onInferenceWithTypeParameter.2.minified.js | 6 +- .../plusOperatorWithBooleanType.1.normal.js | 2 +- .../plusOperatorWithBooleanType.2.minified.js | 2 +- .../plusOperatorWithNumberType.1.normal.js | 2 +- .../plusOperatorWithNumberType.2.minified.js | 2 +- .../plusOperatorWithStringType.1.normal.js | 2 +- .../plusOperatorWithStringType.2.minified.js | 2 +- .../preserveValueImports_errors.1.normal.js | 2 +- .../preserveValueImports_errors.2.minified.js | 2 +- ...sPropertyAccessibleWithinClass.1.normal.js | 4 +- ...ropertyAccessibleWithinClass.2.minified.js | 4 +- ...rtyAccessibleWithinNestedClass.1.normal.js | 4 +- ...yAccessibleWithinNestedClass.2.minified.js | 4 +- .../privateNameAccessors.1.normal.js | 8 +- .../privateNameAccessors.2.minified.js | 8 +- ...ateNameAccessorsCallExpression.1.normal.js | 4 +- ...eNameAccessorsCallExpression.2.minified.js | 4 +- ...privateNameAndObjectRestSpread.1.normal.js | 14 +- ...ivateNameAndObjectRestSpread.2.minified.js | 14 +- ...aticInitializer(target=es2015).1.normal.js | 4 +- ...icInitializer(target=es2015).2.minified.js | 4 +- .../privateNameCircularReference.1.normal.js | 6 +- ...privateNameCircularReference.2.minified.js | 6 +- ...privateNameClassExpressionLoop.1.normal.js | 6 +- ...ivateNameClassExpressionLoop.2.minified.js | 6 +- ...edPropertyName1(target=es2015).1.normal.js | 6 +- ...PropertyName1(target=es2015).2.minified.js | 6 +- ...edPropertyName2(target=es2015).1.normal.js | 6 +- ...PropertyName2(target=es2015).2.minified.js | 6 +- ...edPropertyName3(target=es2015).1.normal.js | 6 +- ...PropertyName3(target=es2015).2.minified.js | 6 +- ...edPropertyName4(target=es2015).1.normal.js | 2 +- ...PropertyName4(target=es2015).2.minified.js | 2 +- ...rivateNameConstructorSignature.1.normal.js | 4 +- ...vateNameConstructorSignature.2.minified.js | 4 +- .../privateNameDeclaration.1.normal.js | 4 +- .../privateNameDeclaration.2.minified.js | 4 +- .../privateNameDeclarationMerging.1.normal.js | 4 +- ...rivateNameDeclarationMerging.2.minified.js | 4 +- .../privateNameES5Ban(target=es5).1.normal.js | 8 +- ...rivateNameES5Ban(target=es5).2.minified.js | 8 +- .../privateNameEmitHelpers.1.normal.js | 8 +- .../privateNameEmitHelpers.2.minified.js | 8 +- .../privateNameField.1.normal.js | 4 +- .../privateNameField.2.minified.js | 4 +- .../privateNameFieldAccess.1.normal.js | 6 +- .../privateNameFieldAccess.2.minified.js | 6 +- .../privateNameFieldAssignment.1.normal.js | 6 +- .../privateNameFieldAssignment.2.minified.js | 6 +- ...privateNameFieldCallExpression.1.normal.js | 6 +- ...ivateNameFieldCallExpression.2.minified.js | 6 +- ...rivateNameFieldClassExpression.1.normal.js | 4 +- ...vateNameFieldClassExpression.2.minified.js | 4 +- ...ructuredBinding(target=es2015).1.normal.js | 6 +- ...cturedBinding(target=es2015).2.minified.js | 6 +- .../privateNameFieldInitializer.1.normal.js | 4 +- .../privateNameFieldInitializer.2.minified.js | 4 +- .../privateNameFieldUnaryMutation.1.normal.js | 8 +- ...rivateNameFieldUnaryMutation.2.minified.js | 8 +- ...ateNameInLhsReceiverExpression.1.normal.js | 6 +- ...eNameInLhsReceiverExpression.2.minified.js | 6 +- .../privateNameLateSuper.1.normal.js | 2 +- .../privateNameLateSuper.2.minified.js | 2 +- .../privateNameMethod.1.normal.js | 4 +- .../privateNameMethod.2.minified.js | 4 +- .../privateNameMethodAssignment.1.normal.js | 10 +- .../privateNameMethodAssignment.2.minified.js | 10 +- .../privateNameMethodAsync.1.normal.js | 4 +- .../privateNameMethodAsync.2.minified.js | 4 +- ...rivateNameMethodCallExpression.1.normal.js | 4 +- ...vateNameMethodCallExpression.2.minified.js | 4 +- ...ateNameMethodInStaticFieldInit.1.normal.js | 4 +- ...eNameMethodInStaticFieldInit.2.minified.js | 4 +- ...ateNameNestedClassNameConflict.1.normal.js | 2 +- ...eNameNestedClassNameConflict.2.minified.js | 2 +- .../privateNameReadonly.1.normal.js | 4 +- .../privateNameReadonly.2.minified.js | 4 +- ...ivateNameSetterExprReturnValue.1.normal.js | 4 +- ...ateNameSetterExprReturnValue.2.minified.js | 4 +- .../privateNameSetterNoGetter.1.normal.js | 6 +- .../privateNameSetterNoGetter.2.minified.js | 6 +- .../privateNameStaticAccessors.1.normal.js | 4 +- .../privateNameStaticAccessors.2.minified.js | 4 +- ...eStaticAccessorsCallExpression.1.normal.js | 4 +- ...taticAccessorsCallExpression.2.minified.js | 4 +- .../privateNameStaticEmitHelpers.1.normal.js | 4 +- ...privateNameStaticEmitHelpers.2.minified.js | 4 +- .../privateNameStaticFieldAccess.1.normal.js | 2 +- ...privateNameStaticFieldAccess.2.minified.js | 2 +- ...ivateNameStaticFieldAssignment.1.normal.js | 4 +- ...ateNameStaticFieldAssignment.2.minified.js | 4 +- ...eNameStaticFieldCallExpression.1.normal.js | 2 +- ...ameStaticFieldCallExpression.2.minified.js | 2 +- ...NameStaticFieldClassExpression.1.normal.js | 2 +- ...meStaticFieldClassExpression.2.minified.js | 2 +- ...ructuredBinding(target=es2015).1.normal.js | 2 +- ...cturedBinding(target=es2015).2.minified.js | 2 +- ...teNameStaticFieldUnaryMutation.1.normal.js | 6 +- ...NameStaticFieldUnaryMutation.2.minified.js | 6 +- .../privateNameStaticMethod.1.normal.js | 2 +- .../privateNameStaticMethod.2.minified.js | 2 +- ...vateNameStaticMethodAssignment.1.normal.js | 8 +- ...teNameStaticMethodAssignment.2.minified.js | 8 +- ...NameStaticMethodCallExpression.1.normal.js | 2 +- ...meStaticMethodCallExpression.2.minified.js | 2 +- ...eStaticMethodInStaticFieldInit.1.normal.js | 2 +- ...taticMethodInStaticFieldInit.2.minified.js | 2 +- .../privateNameUnused.1.normal.js | 10 +- .../privateNameUnused.2.minified.js | 10 +- ...sFieldsInEsNext(target=es2020).1.normal.js | 6 +- ...ieldsInEsNext(target=es2020).2.minified.js | 6 +- .../privateNamesAndFields.1.normal.js | 4 +- .../privateNamesAndFields.2.minified.js | 4 +- .../privateNamesAndkeyof.1.normal.js | 6 +- .../privateNamesAndkeyof.2.minified.js | 6 +- ...privateNamesConstructorChain-1.1.normal.js | 8 +- ...ivateNamesConstructorChain-1.2.minified.js | 8 +- ...privateNamesConstructorChain-2.1.normal.js | 8 +- ...ivateNamesConstructorChain-2.2.minified.js | 8 +- ...teNamesIncompatibleModifiersJs.1.normal.js | 6 +- ...NamesIncompatibleModifiersJs.2.minified.js | 6 +- .../privateNamesUnique-1.1.normal.js | 2 +- .../privateNamesUnique-1.2.minified.js | 2 +- .../privateNamesUnique-2.1.normal.js | 6 +- .../privateNamesUnique-2.2.minified.js | 6 +- .../privateNamesUnique-4.1.normal.js | 2 +- .../privateNamesUnique-4.2.minified.js | 2 +- .../privateNamesUnique-5.1.normal.js | 2 +- .../privateNamesUnique-5.2.minified.js | 2 +- .../privateNamesUseBeforeDef.1.normal.js | 10 +- .../privateNamesUseBeforeDef.2.minified.js | 10 +- ...sAreNotAccessibleDestructuring.1.normal.js | 6 +- ...reNotAccessibleDestructuring.2.minified.js | 6 +- ...ivateStaticMemberAccessibility.1.normal.js | 6 +- ...ateStaticMemberAccessibility.2.minified.js | 6 +- .../privateStaticNameShadowing.1.normal.js | 2 +- .../privateStaticNameShadowing.2.minified.js | 2 +- ...teStaticNotAccessibleInClodule.1.normal.js | 2 +- ...StaticNotAccessibleInClodule.2.minified.js | 2 +- ...eStaticNotAccessibleInClodule2.1.normal.js | 6 +- ...taticNotAccessibleInClodule2.2.minified.js | 6 +- .../privateWriteOnlyAccessorRead.1.normal.js | 12 +- ...privateWriteOnlyAccessorRead.2.minified.js | 12 +- ...sOfGenericConstructorFunctions.1.normal.js | 2 +- ...fGenericConstructorFunctions.2.minified.js | 2 +- .../tsc-references/propertyAccess.1.normal.js | 6 +- .../propertyAccess.2.minified.js | 6 +- ...OnTypeParameterWithConstraints.1.normal.js | 2 +- ...TypeParameterWithConstraints.2.minified.js | 2 +- ...nTypeParameterWithConstraints2.1.normal.js | 6 +- ...ypeParameterWithConstraints2.2.minified.js | 6 +- ...nTypeParameterWithConstraints3.1.normal.js | 6 +- ...ypeParameterWithConstraints3.2.minified.js | 6 +- ...nTypeParameterWithConstraints4.1.normal.js | 2 +- ...ypeParameterWithConstraints4.2.minified.js | 2 +- ...nTypeParameterWithConstraints5.1.normal.js | 6 +- ...ypeParameterWithConstraints5.2.minified.js | 6 +- ...ypeParameterWithoutConstraints.1.normal.js | 2 +- ...eParameterWithoutConstraints.2.minified.js | 2 +- ...ropertyAndAccessorWithSameName.1.normal.js | 4 +- ...pertyAndAccessorWithSameName.2.minified.js | 4 +- ...ropertyAndFunctionWithSameName.1.normal.js | 2 +- ...pertyAndFunctionWithSameName.2.minified.js | 2 +- ...pertyNameWithoutTypeAnnotation.1.normal.js | 2 +- ...rtyNameWithoutTypeAnnotation.2.minified.js | 2 +- .../propertyNamedPrototype.1.normal.js | 2 +- .../propertyNamedPrototype.2.minified.js | 2 +- .../propertyNamesOfReservedWords.1.normal.js | 2 +- ...propertyNamesOfReservedWords.2.minified.js | 2 +- .../propertyOverridesAccessors.1.normal.js | 2 +- .../propertyOverridesAccessors.2.minified.js | 2 +- .../propertyOverridesAccessors4.1.normal.js | 10 +- .../propertyOverridesAccessors4.2.minified.js | 10 +- ...sPropertyAccessibleWithinClass.1.normal.js | 4 +- ...ropertyAccessibleWithinClass.2.minified.js | 4 +- ...rtyAccessibleWithinNestedClass.1.normal.js | 4 +- ...yAccessibleWithinNestedClass.2.minified.js | 4 +- ...AccessibleWithinNestedSubclass.1.normal.js | 8 +- ...cessibleWithinNestedSubclass.2.minified.js | 8 +- ...ccessibleWithinNestedSubclass1.1.normal.js | 6 +- ...essibleWithinNestedSubclass1.2.minified.js | 6 +- ...opertyAccessibleWithinSubclass.1.normal.js | 8 +- ...ertyAccessibleWithinSubclass.2.minified.js | 8 +- ...pertyAccessibleWithinSubclass2.1.normal.js | 6 +- ...rtyAccessibleWithinSubclass2.2.minified.js | 6 +- ...pertyAccessibleWithinSubclass3.1.normal.js | 10 +- ...rtyAccessibleWithinSubclass3.2.minified.js | 10 +- ...tedInstanceMemberAccessibility.1.normal.js | 10 +- ...dInstanceMemberAccessibility.2.minified.js | 10 +- ...opertyAccessibleWithinSubclass.1.normal.js | 6 +- ...ertyAccessibleWithinSubclass.2.minified.js | 6 +- ...pertyAccessibleWithinSubclass2.1.normal.js | 10 +- ...rtyAccessibleWithinSubclass2.2.minified.js | 10 +- ...edStaticNotAccessibleInClodule.1.normal.js | 2 +- ...StaticNotAccessibleInClodule.2.minified.js | 2 +- .../quotedConstructors.1.normal.js | 2 +- .../quotedConstructors.2.minified.js | 2 +- .../reExportDefaultExport.1.normal.js | 4 +- .../reExportDefaultExport.2.minified.js | 2 +- .../readonlyConstructorAssignment.1.normal.js | 6 +- ...eadonlyConstructorAssignment.2.minified.js | 6 +- .../readonlyRestParameters.1.normal.js | 2 +- .../readonlyRestParameters.2.minified.js | 2 +- ...cursiveTypeInGenericConstraint.1.normal.js | 2 +- ...rsiveTypeInGenericConstraint.2.minified.js | 2 +- .../recursiveTypeReferences1.1.normal.js | 4 +- .../recursiveTypeReferences1.2.minified.js | 4 +- ...eTypesUsedAsFunctionParameters.1.normal.js | 2 +- ...ypesUsedAsFunctionParameters.2.minified.js | 2 +- .../reexportClassDefinition.1.normal.js | 16 +- .../reexportClassDefinition.2.minified.js | 6 +- .../tests/tsc-references/renamed.1.normal.js | 2 +- .../tsc-references/renamed.2.minified.js | 2 +- ...tElementWithAssignmentPattern3.1.normal.js | 4 +- ...lementWithAssignmentPattern3.2.minified.js | 4 +- ...tElementWithAssignmentPattern4.1.normal.js | 2 +- ...lementWithAssignmentPattern4.2.minified.js | 2 +- ...restElementWithNullInitializer.1.normal.js | 2 +- ...stElementWithNullInitializer.2.minified.js | 2 +- ...tParameterInDownlevelGenerator.1.normal.js | 2 +- ...arameterInDownlevelGenerator.2.minified.js | 2 +- .../restTuplesFromContextualTypes.1.normal.js | 4 +- ...estTuplesFromContextualTypes.2.minified.js | 4 +- .../returnStatements.1.normal.js | 6 +- .../returnStatements.2.minified.js | 6 +- .../returnTagTypeGuard.1.normal.js | 2 +- .../returnTagTypeGuard.2.minified.js | 2 +- .../tsc-references/scannerClass2.1.normal.js | 2 +- .../scannerClass2.2.minified.js | 2 +- .../tsc-references/scannertest1.1.normal.js | 2 +- .../tsc-references/scannertest1.2.minified.js | 2 +- .../scopeResolutionIdentifiers.1.normal.js | 2 +- .../scopeResolutionIdentifiers.2.minified.js | 2 +- ...btypeOfNonSpecializedSignature.1.normal.js | 2 +- ...ypeOfNonSpecializedSignature.2.minified.js | 2 +- ...btypeOfNonSpecializedSignature.1.normal.js | 2 +- ...ypeOfNonSpecializedSignature.2.minified.js | 2 +- .../spellingUncheckedJS.1.normal.js | 10 +- .../spellingUncheckedJS.2.minified.js | 10 +- ...dContextualTypedBindingPattern.1.normal.js | 2 +- ...ontextualTypedBindingPattern.2.minified.js | 2 +- .../spreadDuplicate.1.normal.js | 2 +- .../spreadDuplicate.2.minified.js | 2 +- .../spreadDuplicateExact.1.normal.js | 2 +- .../spreadDuplicateExact.2.minified.js | 2 +- .../spreadExcessProperty.1.normal.js | 2 +- .../spreadExcessProperty.2.minified.js | 2 +- .../spreadNonPrimitive.1.normal.js | 4 +- .../spreadNonPrimitive.2.minified.js | 4 +- .../spreadObjectOrFalsy.1.normal.js | 4 +- .../spreadObjectOrFalsy.2.minified.js | 4 +- .../spreadOverwritesProperty.1.normal.js | 2 +- .../spreadOverwritesProperty.2.minified.js | 2 +- ...spreadOverwritesPropertyStrict.1.normal.js | 4 +- ...readOverwritesPropertyStrict.2.minified.js | 4 +- .../spreadTypeVariable.1.normal.js | 2 +- .../spreadTypeVariable.2.minified.js | 2 +- .../tsc-references/spreadUnion.1.normal.js | 4 +- .../tsc-references/spreadUnion.2.minified.js | 4 +- .../tsc-references/spreadUnion2.1.normal.js | 2 +- .../tsc-references/spreadUnion2.2.minified.js | 2 +- .../tsc-references/spreadUnion3.1.normal.js | 2 +- .../tsc-references/spreadUnion3.2.minified.js | 2 +- .../tsc-references/spreadUnion4.1.normal.js | 2 +- .../tsc-references/spreadUnion4.2.minified.js | 2 +- ...AndNonStaticPropertiesSameName.1.normal.js | 2 +- ...dNonStaticPropertiesSameName.2.minified.js | 2 +- .../tsc-references/staticFactory1.1.normal.js | 6 +- .../staticFactory1.2.minified.js | 6 +- .../staticIndexSignature1.1.normal.js | 2 +- .../staticIndexSignature1.2.minified.js | 2 +- .../staticIndexSignature2.1.normal.js | 2 +- .../staticIndexSignature2.2.minified.js | 2 +- .../staticIndexSignature3.1.normal.js | 6 +- .../staticIndexSignature3.2.minified.js | 6 +- .../staticIndexSignature6.1.normal.js | 2 +- .../staticIndexSignature6.2.minified.js | 2 +- .../staticIndexSignature7.1.normal.js | 2 +- .../staticIndexSignature7.2.minified.js | 2 +- .../tsc-references/staticIndexers.1.normal.js | 2 +- .../staticIndexers.2.minified.js | 2 +- ...nsToConstructorFunctionMembers.1.normal.js | 2 +- ...ToConstructorFunctionMembers.2.minified.js | 2 +- .../staticMemberInitialization.1.normal.js | 2 +- .../staticMemberInitialization.2.minified.js | 2 +- ...MembersUsingClassTypeParameter.1.normal.js | 2 +- ...mbersUsingClassTypeParameter.2.minified.js | 2 +- ...ropertyAndFunctionWithSameName.1.normal.js | 2 +- ...pertyAndFunctionWithSameName.2.minified.js | 2 +- .../staticPropertyNotInClassType.1.normal.js | 4 +- ...staticPropertyNotInClassType.2.minified.js | 4 +- .../strictBindCallApply1.1.normal.js | 2 +- .../strictBindCallApply1.2.minified.js | 2 +- .../strictPropertyInitialization.1.normal.js | 6 +- ...strictPropertyInitialization.2.minified.js | 6 +- ...ConstrainsPropertyDeclarations.1.normal.js | 4 +- ...nstrainsPropertyDeclarations.2.minified.js | 4 +- ...onstrainsPropertyDeclarations2.1.normal.js | 6 +- ...strainsPropertyDeclarations2.2.minified.js | 6 +- .../stringIndexingResults.1.normal.js | 2 +- .../stringIndexingResults.2.minified.js | 2 +- ...ngLiteralTypeIsSubtypeOfString.1.normal.js | 2 +- ...LiteralTypeIsSubtypeOfString.2.minified.js | 2 +- ...ypesInImplementationSignatures.1.normal.js | 2 +- ...esInImplementationSignatures.2.minified.js | 2 +- ...pesInImplementationSignatures2.1.normal.js | 4 +- ...sInImplementationSignatures2.2.minified.js | 4 +- .../stringNamedPropertyAccess.1.normal.js | 2 +- .../stringNamedPropertyAccess.2.minified.js | 2 +- .../tsc-references/subtypesOfAny.1.normal.js | 2 +- .../subtypesOfAny.2.minified.js | 2 +- .../subtypesOfTypeParameter.1.normal.js | 6 +- .../subtypesOfTypeParameter.2.minified.js | 6 +- ...OfTypeParameterWithConstraints.1.normal.js | 6 +- ...TypeParameterWithConstraints.2.minified.js | 6 +- ...fTypeParameterWithConstraints2.1.normal.js | 2 +- ...ypeParameterWithConstraints2.2.minified.js | 2 +- ...fTypeParameterWithConstraints4.1.normal.js | 6 +- ...ypeParameterWithConstraints4.2.minified.js | 6 +- ...ameterWithRecursiveConstraints.1.normal.js | 6 +- ...eterWithRecursiveConstraints.2.minified.js | 6 +- .../subtypesOfUnion.1.normal.js | 2 +- .../subtypesOfUnion.2.minified.js | 2 +- .../subtypingWithCallSignatures2.1.normal.js | 6 +- ...subtypingWithCallSignatures2.2.minified.js | 6 +- .../subtypingWithCallSignatures3.1.normal.js | 6 +- ...subtypingWithCallSignatures3.2.minified.js | 6 +- .../subtypingWithCallSignatures4.1.normal.js | 6 +- ...subtypingWithCallSignatures4.2.minified.js | 6 +- ...typingWithConstructSignatures2.1.normal.js | 6 +- ...pingWithConstructSignatures2.2.minified.js | 6 +- ...typingWithConstructSignatures3.1.normal.js | 6 +- ...pingWithConstructSignatures3.2.minified.js | 6 +- ...typingWithConstructSignatures4.1.normal.js | 6 +- ...pingWithConstructSignatures4.2.minified.js | 6 +- ...typingWithConstructSignatures5.1.normal.js | 6 +- ...pingWithConstructSignatures5.2.minified.js | 6 +- ...typingWithConstructSignatures6.1.normal.js | 6 +- ...pingWithConstructSignatures6.2.minified.js | 6 +- .../subtypingWithNumericIndexer.1.normal.js | 6 +- .../subtypingWithNumericIndexer.2.minified.js | 6 +- .../subtypingWithNumericIndexer3.1.normal.js | 6 +- ...subtypingWithNumericIndexer3.2.minified.js | 6 +- .../subtypingWithNumericIndexer4.1.normal.js | 6 +- ...subtypingWithNumericIndexer4.2.minified.js | 6 +- .../subtypingWithNumericIndexer5.1.normal.js | 2 +- ...subtypingWithNumericIndexer5.2.minified.js | 2 +- .../subtypingWithObjectMembers.1.normal.js | 6 +- .../subtypingWithObjectMembers.2.minified.js | 6 +- .../subtypingWithObjectMembers4.1.normal.js | 6 +- .../subtypingWithObjectMembers4.2.minified.js | 6 +- .../subtypingWithObjectMembers5.1.normal.js | 2 +- .../subtypingWithObjectMembers5.2.minified.js | 2 +- ...WithObjectMembersAccessibility.1.normal.js | 6 +- ...thObjectMembersAccessibility.2.minified.js | 6 +- ...ithObjectMembersAccessibility2.1.normal.js | 6 +- ...hObjectMembersAccessibility2.2.minified.js | 6 +- .../subtypingWithStringIndexer.1.normal.js | 6 +- .../subtypingWithStringIndexer.2.minified.js | 6 +- .../subtypingWithStringIndexer3.1.normal.js | 6 +- .../subtypingWithStringIndexer3.2.minified.js | 6 +- .../subtypingWithStringIndexer4.1.normal.js | 6 +- .../subtypingWithStringIndexer4.2.minified.js | 6 +- .../superCallBeforeThisAccessing1.1.normal.js | 6 +- ...uperCallBeforeThisAccessing1.2.minified.js | 6 +- .../superCallBeforeThisAccessing2.1.normal.js | 6 +- ...uperCallBeforeThisAccessing2.2.minified.js | 6 +- .../superCallBeforeThisAccessing5.1.normal.js | 8 +- ...uperCallBeforeThisAccessing5.2.minified.js | 8 +- .../superCallBeforeThisAccessing8.1.normal.js | 8 +- ...uperCallBeforeThisAccessing8.2.minified.js | 8 +- ...TypeButWithSameSymbolInterface.1.normal.js | 2 +- ...peButWithSameSymbolInterface.2.minified.js | 2 +- ...allInConstructorWithNoBaseType.1.normal.js | 2 +- ...lInConstructorWithNoBaseType.2.minified.js | 2 +- ...CallParameterContextualTyping1.1.normal.js | 6 +- ...llParameterContextualTyping1.2.minified.js | 6 +- ...CallParameterContextualTyping2.1.normal.js | 6 +- ...llParameterContextualTyping2.2.minified.js | 6 +- ...CallParameterContextualTyping3.1.normal.js | 12 +- ...llParameterContextualTyping3.2.minified.js | 12 +- .../tsc-references/superCalls.1.normal.js | 6 +- .../tsc-references/superCalls.2.minified.js | 6 +- ...nStaticMembers1(target=es2015).1.normal.js | 188 +++---- ...taticMembers1(target=es2015).2.minified.js | 188 +++---- ...nStaticMembers1(target=es2021).1.normal.js | 188 +++---- ...taticMembers1(target=es2021).2.minified.js | 188 +++---- ...erInStaticMembers1(target=es5).1.normal.js | 472 +++++++++--------- ...InStaticMembers1(target=es5).2.minified.js | 472 +++++++++--------- .../superMethodCall.1.normal.js | 2 +- .../superMethodCall.2.minified.js | 2 +- .../superPropertyAccessNoError.1.normal.js | 14 +- .../superPropertyAccessNoError.2.minified.js | 14 +- .../superSymbolIndexedAccess5.1.normal.js | 10 +- .../superSymbolIndexedAccess5.2.minified.js | 10 +- .../superSymbolIndexedAccess6.1.normal.js | 10 +- .../superSymbolIndexedAccess6.2.minified.js | 10 +- .../switchStatements.1.normal.js | 8 +- .../switchStatements.2.minified.js | 8 +- ...ractersThatArePartsOfEscapes01.1.normal.js | 2 +- ...ctersThatArePartsOfEscapes01.2.minified.js | 2 +- ...teStringsTypeArgumentInference.1.normal.js | 2 +- ...StringsTypeArgumentInference.2.minified.js | 2 +- ...ringsWithIncompatibleTypedTags.1.normal.js | 2 +- ...ngsWithIncompatibleTypedTags.2.minified.js | 2 +- ...thManyCallAndMemberExpressions.1.normal.js | 2 +- ...ManyCallAndMemberExpressions.2.minified.js | 2 +- ...StringsWithOverloadResolution1.1.normal.js | 2 +- ...ringsWithOverloadResolution1.2.minified.js | 2 +- ...StringsWithOverloadResolution2.1.normal.js | 2 +- ...ringsWithOverloadResolution2.2.minified.js | 2 +- ...StringsWithOverloadResolution3.1.normal.js | 2 +- ...ringsWithOverloadResolution3.2.minified.js | 2 +- ...lateStringsWithTagNamedDeclare.1.normal.js | 2 +- ...teStringsWithTagNamedDeclare.2.minified.js | 2 +- ...plateStringsWithTagsTypedAsAny.1.normal.js | 2 +- ...ateStringsWithTagsTypedAsAny.2.minified.js | 2 +- ...ssionsInSubstitutionExpression.1.normal.js | 2 +- ...ionsInSubstitutionExpression.2.minified.js | 2 +- ...edTemplateStringsWithTypedTags.1.normal.js | 2 +- ...TemplateStringsWithTypedTags.2.minified.js | 2 +- ...taggedTemplateUntypedTagCall01.1.normal.js | 2 +- ...ggedTemplateUntypedTagCall01.2.minified.js | 2 +- ...TemplateWithConstructableTag01.1.normal.js | 4 +- ...mplateWithConstructableTag01.2.minified.js | 4 +- ...TemplateWithConstructableTag02.1.normal.js | 2 +- ...mplateWithConstructableTag02.2.minified.js | 2 +- .../templateLiteralTypesPatterns.1.normal.js | 2 +- ...templateLiteralTypesPatterns.2.minified.js | 2 +- .../templateStringInInstanceOf.1.normal.js | 2 +- .../templateStringInInstanceOf.2.minified.js | 2 +- ...templateStringInTaggedTemplate.1.normal.js | 2 +- ...mplateStringInTaggedTemplate.2.minified.js | 2 +- .../templateStringInTypeOf.1.normal.js | 2 +- .../templateStringInTypeOf.2.minified.js | 2 +- ...teStringWithEmbeddedInstanceOf.1.normal.js | 2 +- ...StringWithEmbeddedInstanceOf.2.minified.js | 2 +- ...ringWithEmbeddedTypeOfOperator.1.normal.js | 2 +- ...ngWithEmbeddedTypeOfOperator.2.minified.js | 2 +- ...nStaticMembers1(target=es2015).1.normal.js | 14 +- ...taticMembers1(target=es2015).2.minified.js | 14 +- ...nStaticMembers2(target=es2015).1.normal.js | 12 +- ...taticMembers2(target=es2015).2.minified.js | 12 +- .../thisAndSuperInStaticMembers3.1.normal.js | 14 +- ...thisAndSuperInStaticMembers3.2.minified.js | 14 +- .../thisAndSuperInStaticMembers4.1.normal.js | 12 +- ...thisAndSuperInStaticMembers4.2.minified.js | 12 +- ...hisInInstanceMemberInitializer.1.normal.js | 2 +- ...sInInstanceMemberInitializer.2.minified.js | 2 +- .../thisInObjectLiterals.1.normal.js | 2 +- .../thisInObjectLiterals.2.minified.js | 2 +- ...thisPropertyAssignmentCircular.1.normal.js | 2 +- ...isPropertyAssignmentCircular.2.minified.js | 2 +- .../thisTypeAccessibility.1.normal.js | 2 +- .../thisTypeAccessibility.2.minified.js | 2 +- .../thisTypeAndConstraints.1.normal.js | 2 +- .../thisTypeAndConstraints.2.minified.js | 2 +- .../tsc-references/thisTypeErrors.1.normal.js | 2 +- .../thisTypeErrors.2.minified.js | 2 +- .../thisTypeErrors2.1.normal.js | 2 +- .../thisTypeErrors2.2.minified.js | 2 +- .../thisTypeInAccessors.1.normal.js | 4 +- .../thisTypeInAccessors.2.minified.js | 4 +- .../thisTypeInClasses.1.normal.js | 2 +- .../thisTypeInClasses.2.minified.js | 2 +- .../thisTypeInFunctions.1.normal.js | 6 +- .../thisTypeInFunctions.2.minified.js | 6 +- .../thisTypeInFunctions3.1.normal.js | 6 +- .../thisTypeInFunctions3.2.minified.js | 6 +- .../throwInEnclosingStatements.1.normal.js | 2 +- .../throwInEnclosingStatements.2.minified.js | 2 +- .../throwStatements.1.normal.js | 4 +- .../throwStatements.2.minified.js | 4 +- .../tsNoCheckForTypescript.1.normal.js | 2 +- .../tsNoCheckForTypescript.2.minified.js | 2 +- .../tsxAttributeResolution10.1.normal.js | 5 +- .../tsxAttributeResolution10.2.minified.js | 6 +- .../tsxAttributeResolution11.1.normal.js | 5 +- .../tsxAttributeResolution11.2.minified.js | 4 +- .../tsxAttributeResolution3.1.normal.js | 4 +- .../tsxAttributeResolution3.2.minified.js | 4 +- .../tsxAttributeResolution9.1.normal.js | 5 +- .../tsxAttributeResolution9.2.minified.js | 6 +- ...rectlyParseLessThanComparison1.1.normal.js | 6 +- ...ctlyParseLessThanComparison1.2.minified.js | 6 +- .../tsxDynamicTagName5.1.normal.js | 6 +- .../tsxDynamicTagName5.2.minified.js | 6 +- .../tsxDynamicTagName7.1.normal.js | 6 +- .../tsxDynamicTagName7.2.minified.js | 6 +- .../tsxDynamicTagName8.1.normal.js | 6 +- .../tsxDynamicTagName8.2.minified.js | 6 +- .../tsxDynamicTagName9.1.normal.js | 6 +- .../tsxDynamicTagName9.2.minified.js | 6 +- .../tsxElementResolution.1.normal.js | 2 +- .../tsxElementResolution.2.minified.js | 2 +- .../tsxElementResolution19.1.normal.js | 10 +- .../tsxElementResolution19.2.minified.js | 10 +- .../tests/tsc-references/tsxEmit1.1.normal.js | 4 +- .../tsc-references/tsxEmit1.2.minified.js | 4 +- .../tests/tsc-references/tsxEmit2.1.normal.js | 4 +- .../tsc-references/tsxEmit2.2.minified.js | 4 +- .../tests/tsc-references/tsxEmit3.1.normal.js | 2 +- .../tsc-references/tsxEmit3.2.minified.js | 2 +- .../tsxExternalModuleEmit1.1.normal.js | 32 +- .../tsxExternalModuleEmit1.2.minified.js | 16 +- .../tsxExternalModuleEmit2.1.normal.js | 4 +- .../tsxExternalModuleEmit2.2.minified.js | 2 +- .../tsxLibraryManagedAttributes.1.normal.js | 6 +- .../tsxLibraryManagedAttributes.2.minified.js | 6 +- .../tsc-references/tsxReactEmit1.1.normal.js | 4 +- .../tsxReactEmit1.2.minified.js | 4 +- .../tsc-references/tsxReactEmit2.1.normal.js | 4 +- .../tsxReactEmit2.2.minified.js | 4 +- .../tsc-references/tsxReactEmit4.1.normal.js | 4 +- .../tsxReactEmit4.2.minified.js | 4 +- .../tsc-references/tsxReactEmit5.1.normal.js | 6 +- .../tsxReactEmit5.2.minified.js | 4 +- .../tsc-references/tsxReactEmit6.1.normal.js | 6 +- .../tsxReactEmit6.2.minified.js | 15 +- ...sxSpreadAttributesResolution17.1.normal.js | 6 +- ...SpreadAttributesResolution17.2.minified.js | 6 +- .../tsxSpreadChildren.1.normal.js | 2 +- .../tsxSpreadChildren.2.minified.js | 2 +- ...hildrenInvalidType(target=es5).1.normal.js | 2 +- ...ldrenInvalidType(target=es5).2.minified.js | 2 +- ...lessFunctionComponentOverload2.1.normal.js | 16 +- ...ssFunctionComponentOverload2.2.minified.js | 14 +- ...lessFunctionComponentOverload3.1.normal.js | 12 +- ...ssFunctionComponentOverload3.2.minified.js | 10 +- ...lessFunctionComponentOverload4.1.normal.js | 18 +- ...ssFunctionComponentOverload4.2.minified.js | 18 +- ...lessFunctionComponentOverload5.1.normal.js | 14 +- ...ssFunctionComponentOverload5.2.minified.js | 14 +- ...lessFunctionComponentOverload6.1.normal.js | 10 +- ...ssFunctionComponentOverload6.2.minified.js | 8 +- ...onComponentsWithTypeArguments2.1.normal.js | 8 +- ...ComponentsWithTypeArguments2.2.minified.js | 6 +- ...onComponentsWithTypeArguments3.1.normal.js | 16 +- ...ComponentsWithTypeArguments3.2.minified.js | 6 +- ...onComponentsWithTypeArguments4.1.normal.js | 8 +- ...ComponentsWithTypeArguments4.2.minified.js | 6 +- ...onComponentsWithTypeArguments5.1.normal.js | 16 +- ...ComponentsWithTypeArguments5.2.minified.js | 6 +- .../tsc-references/tsxTypeErrors.1.normal.js | 2 +- .../tsxTypeErrors.2.minified.js | 2 +- .../tupleElementTypes2.1.normal.js | 2 +- .../tupleElementTypes2.2.minified.js | 2 +- .../tupleElementTypes4.1.normal.js | 2 +- .../tupleElementTypes4.2.minified.js | 2 +- .../twoAccessorsWithSameName2.1.normal.js | 4 +- .../twoAccessorsWithSameName2.2.minified.js | 4 +- .../tsc-references/typeAliases.1.normal.js | 2 +- .../tsc-references/typeAliases.2.minified.js | 2 +- .../typeAliasesForObjectTypes.1.normal.js | 2 +- .../typeAliasesForObjectTypes.2.minified.js | 2 +- ...tInferenceWithClassExpression1.1.normal.js | 2 +- ...nferenceWithClassExpression1.2.minified.js | 2 +- ...tInferenceWithClassExpression2.1.normal.js | 2 +- ...nferenceWithClassExpression2.2.minified.js | 2 +- ...tInferenceWithClassExpression3.1.normal.js | 2 +- ...nferenceWithClassExpression3.2.minified.js | 2 +- .../typeFromParamTagForFunction.1.normal.js | 12 +- .../typeFromParamTagForFunction.2.minified.js | 10 +- .../typeFromPropertyAssignment.1.normal.js | 2 +- .../typeFromPropertyAssignment.2.minified.js | 2 +- .../typeFromPropertyAssignment15.1.normal.js | 2 +- ...typeFromPropertyAssignment15.2.minified.js | 2 +- .../typeFromPropertyAssignment2.1.normal.js | 2 +- .../typeFromPropertyAssignment2.2.minified.js | 2 +- .../typeFromPropertyAssignment23.1.normal.js | 6 +- ...typeFromPropertyAssignment23.2.minified.js | 6 +- .../typeFromPropertyAssignment24.1.normal.js | 2 +- ...typeFromPropertyAssignment24.2.minified.js | 2 +- .../typeFromPropertyAssignment25.1.normal.js | 6 +- ...typeFromPropertyAssignment25.2.minified.js | 6 +- .../typeFromPropertyAssignment26.1.normal.js | 6 +- ...typeFromPropertyAssignment26.2.minified.js | 6 +- .../typeFromPropertyAssignment28.1.normal.js | 2 +- ...typeFromPropertyAssignment28.2.minified.js | 2 +- .../typeFromPropertyAssignment29.1.normal.js | 2 +- ...typeFromPropertyAssignment29.2.minified.js | 2 +- .../typeFromPropertyAssignment3.1.normal.js | 2 +- .../typeFromPropertyAssignment3.2.minified.js | 2 +- .../typeFromPropertyAssignment35.1.normal.js | 2 +- ...typeFromPropertyAssignment35.2.minified.js | 2 +- .../typeFromPropertyAssignment4.1.normal.js | 2 +- .../typeFromPropertyAssignment4.2.minified.js | 2 +- ...omPropertyAssignmentOutOfOrder.1.normal.js | 6 +- ...PropertyAssignmentOutOfOrder.2.minified.js | 6 +- .../typeGuardFunction.1.normal.js | 6 +- .../typeGuardFunction.2.minified.js | 6 +- .../typeGuardFunctionGenerics.1.normal.js | 6 +- .../typeGuardFunctionGenerics.2.minified.js | 6 +- .../typeGuardFunctionOfFormThis.1.normal.js | 8 +- .../typeGuardFunctionOfFormThis.2.minified.js | 8 +- ...eGuardFunctionOfFormThisErrors.1.normal.js | 8 +- ...uardFunctionOfFormThisErrors.2.minified.js | 8 +- .../typeGuardInClass.1.normal.js | 2 +- .../typeGuardInClass.2.minified.js | 2 +- .../typeGuardOfFormExpr1AndExpr2.1.normal.js | 2 +- ...typeGuardOfFormExpr1AndExpr2.2.minified.js | 2 +- .../typeGuardOfFormExpr1OrExpr2.1.normal.js | 2 +- .../typeGuardOfFormExpr1OrExpr2.2.minified.js | 2 +- .../typeGuardOfFormInstanceOf.1.normal.js | 8 +- .../typeGuardOfFormInstanceOf.2.minified.js | 8 +- ...ardOfFormInstanceOfOnInterface.1.normal.js | 2 +- ...dOfFormInstanceOfOnInterface.2.minified.js | 2 +- .../typeGuardOfFormIsType.1.normal.js | 6 +- .../typeGuardOfFormIsType.2.minified.js | 6 +- .../typeGuardOfFormTypeOfBoolean.1.normal.js | 2 +- ...typeGuardOfFormTypeOfBoolean.2.minified.js | 2 +- ...ormTypeOfEqualEqualHasNoEffect.1.normal.js | 4 +- ...mTypeOfEqualEqualHasNoEffect.2.minified.js | 4 +- ...fFormTypeOfNotEqualHasNoEffect.1.normal.js | 4 +- ...ormTypeOfNotEqualHasNoEffect.2.minified.js | 4 +- .../typeGuardOfFormTypeOfNumber.1.normal.js | 2 +- .../typeGuardOfFormTypeOfNumber.2.minified.js | 2 +- .../typeGuardOfFormTypeOfOther.1.normal.js | 4 +- .../typeGuardOfFormTypeOfOther.2.minified.js | 4 +- .../typeGuardOfFormTypeOfString.1.normal.js | 2 +- .../typeGuardOfFormTypeOfString.2.minified.js | 2 +- ...GuardOfFromPropNameInUnionType.1.normal.js | 4 +- ...ardOfFromPropNameInUnionType.2.minified.js | 4 +- .../typeGuardsInClassAccessors.1.normal.js | 4 +- .../typeGuardsInClassAccessors.2.minified.js | 4 +- .../typeGuardsInClassMethods.1.normal.js | 2 +- .../typeGuardsInClassMethods.2.minified.js | 2 +- .../typeGuardsInProperties.1.normal.js | 4 +- .../typeGuardsInProperties.2.minified.js | 4 +- .../typeGuardsNestedAssignments.1.normal.js | 4 +- .../typeGuardsNestedAssignments.2.minified.js | 4 +- .../typeGuardsOnClassProperty.1.normal.js | 2 +- .../typeGuardsOnClassProperty.2.minified.js | 2 +- .../typeGuardsTypeParameters.1.normal.js | 4 +- .../typeGuardsTypeParameters.2.minified.js | 4 +- .../typeGuardsWithAny.1.normal.js | 2 +- .../typeGuardsWithAny.2.minified.js | 2 +- .../typeGuardsWithInstanceOf.1.normal.js | 4 +- .../typeGuardsWithInstanceOf.2.minified.js | 4 +- ...stanceOfByConstructorSignature.1.normal.js | 2 +- ...anceOfByConstructorSignature.2.minified.js | 2 +- .../typeOfThisInAccessor.1.normal.js | 4 +- .../typeOfThisInAccessor.2.minified.js | 4 +- ...peOfThisInConstructorParamList.1.normal.js | 2 +- ...OfThisInConstructorParamList.2.minified.js | 2 +- ...typeOfThisInFunctionExpression.1.normal.js | 2 +- ...peOfThisInFunctionExpression.2.minified.js | 2 +- .../typeOfThisInInstanceMember.1.normal.js | 4 +- .../typeOfThisInInstanceMember.2.minified.js | 4 +- .../typeOfThisInInstanceMember2.1.normal.js | 4 +- .../typeOfThisInInstanceMember2.2.minified.js | 4 +- .../typeOfThisInMemberFunctions.1.normal.js | 2 +- .../typeOfThisInMemberFunctions.2.minified.js | 2 +- .../typeOfThisInStaticMembers.1.normal.js | 2 +- .../typeOfThisInStaticMembers.2.minified.js | 2 +- .../typeOfThisInStaticMembers2.1.normal.js | 2 +- .../typeOfThisInStaticMembers2.2.minified.js | 2 +- ...nStaticMembers3(target=es2015).1.normal.js | 4 +- ...taticMembers3(target=es2015).2.minified.js | 4 +- ...isInStaticMembers3(target=es5).1.normal.js | 10 +- ...InStaticMembers3(target=es5).2.minified.js | 10 +- ...nStaticMembers4(target=es2015).1.normal.js | 6 +- ...taticMembers4(target=es2015).2.minified.js | 6 +- ...isInStaticMembers4(target=es5).1.normal.js | 12 +- ...InStaticMembers4(target=es5).2.minified.js | 12 +- ...isInStaticMembers5(target=es5).1.normal.js | 2 +- ...InStaticMembers5(target=es5).2.minified.js | 2 +- .../typeOfThisInStaticMembers6.1.normal.js | 6 +- .../typeOfThisInStaticMembers6.2.minified.js | 6 +- ...nStaticMembers7(target=es2015).1.normal.js | 4 +- ...taticMembers7(target=es2015).2.minified.js | 4 +- ...isInStaticMembers7(target=es5).1.normal.js | 10 +- ...InStaticMembers7(target=es5).2.minified.js | 10 +- ...isInStaticMembers8(target=es5).1.normal.js | 2 +- ...InStaticMembers8(target=es5).2.minified.js | 2 +- ...nStaticMembers9(target=es2015).1.normal.js | 4 +- ...taticMembers9(target=es2015).2.minified.js | 4 +- ...isInStaticMembers9(target=es5).1.normal.js | 10 +- ...InStaticMembers9(target=es5).2.minified.js | 10 +- ...mberNarrowedWithLoopAntecedent.1.normal.js | 2 +- ...erNarrowedWithLoopAntecedent.2.minified.js | 2 +- .../typeParameterAsBaseType.1.normal.js | 6 +- .../typeParameterAsBaseType.2.minified.js | 6 +- .../typeParameterAsTypeArgument.1.normal.js | 2 +- .../typeParameterAsTypeArgument.2.minified.js | 2 +- .../typeParameterAssignability3.1.normal.js | 2 +- .../typeParameterAssignability3.2.minified.js | 2 +- ...terDirectlyConstrainedToItself.1.normal.js | 2 +- ...rDirectlyConstrainedToItself.2.minified.js | 2 +- ...rIndirectlyConstrainedToItself.1.normal.js | 2 +- ...ndirectlyConstrainedToItself.2.minified.js | 2 +- .../typeParameterUsedAsConstraint.1.normal.js | 2 +- ...ypeParameterUsedAsConstraint.2.minified.js | 2 +- ...UsedAsTypeParameterConstraint4.1.normal.js | 2 +- ...edAsTypeParameterConstraint4.2.minified.js | 2 +- ...metersAreIdenticalToThemselves.1.normal.js | 2 +- ...tersAreIdenticalToThemselves.2.minified.js | 2 +- ...rametersAvailableInNestedScope.1.normal.js | 2 +- ...metersAvailableInNestedScope.2.minified.js | 2 +- .../tsc-references/typeQuery.1.normal.js | 2 +- .../tsc-references/typeQuery.2.minified.js | 2 +- .../typeQueryOnClass.1.normal.js | 4 +- .../typeQueryOnClass.2.minified.js | 4 +- .../typeQueryWithReservedWords.1.normal.js | 2 +- .../typeQueryWithReservedWords.2.minified.js | 2 +- .../typeRelationships.1.normal.js | 8 +- .../typeRelationships.2.minified.js | 8 +- .../typedefCrossModule2.1.normal.js | 2 +- .../typedefCrossModule2.2.minified.js | 2 +- .../typedefCrossModule3.1.normal.js | 2 +- .../typedefCrossModule3.2.minified.js | 2 +- .../typedefCrossModule4.1.normal.js | 2 +- .../typedefCrossModule4.2.minified.js | 2 +- .../typedefCrossModule5.1.normal.js | 4 +- .../typedefCrossModule5.2.minified.js | 4 +- .../typedefInnerNamepaths.1.normal.js | 2 +- .../typedefInnerNamepaths.2.minified.js | 2 +- .../typeofANonExportedType.1.normal.js | 2 +- .../typeofANonExportedType.2.minified.js | 2 +- .../typeofAnExportedType.1.normal.js | 2 +- .../typeofAnExportedType.2.minified.js | 2 +- .../tsc-references/typeofClass2.1.normal.js | 6 +- .../tsc-references/typeofClass2.2.minified.js | 6 +- .../typeofClassWithPrivates.1.normal.js | 2 +- .../typeofClassWithPrivates.2.minified.js | 2 +- .../typeofImportTypeOnlyExport.1.normal.js | 2 +- .../typeofImportTypeOnlyExport.2.minified.js | 2 +- .../typeofModuleWithoutExports.1.normal.js | 2 +- .../typeofModuleWithoutExports.2.minified.js | 2 +- ...typeofOperatorWithAnyOtherType.1.normal.js | 4 +- ...peofOperatorWithAnyOtherType.2.minified.js | 4 +- .../typeofOperatorWithBooleanType.1.normal.js | 4 +- ...ypeofOperatorWithBooleanType.2.minified.js | 4 +- .../typeofOperatorWithEnumType.1.normal.js | 2 +- .../typeofOperatorWithEnumType.2.minified.js | 2 +- .../typeofOperatorWithNumberType.1.normal.js | 4 +- ...typeofOperatorWithNumberType.2.minified.js | 4 +- .../typeofOperatorWithStringType.1.normal.js | 4 +- ...typeofOperatorWithStringType.2.minified.js | 4 +- .../tsc-references/typeofThis.1.normal.js | 4 +- .../tsc-references/typeofThis.2.minified.js | 4 +- ...pesWithDuplicateTypeParameters.1.normal.js | 2 +- ...sWithDuplicateTypeParameters.2.minified.js | 2 +- .../typesWithPrivateConstructor.1.normal.js | 2 +- .../typesWithPrivateConstructor.2.minified.js | 2 +- .../typesWithProtectedConstructor.1.normal.js | 2 +- ...ypesWithProtectedConstructor.2.minified.js | 2 +- .../typesWithPublicConstructor.1.normal.js | 2 +- .../typesWithPublicConstructor.2.minified.js | 2 +- ...sWithSpecializedCallSignatures.1.normal.js | 6 +- ...ithSpecializedCallSignatures.2.minified.js | 6 +- ...SpecializedConstructSignatures.1.normal.js | 6 +- ...ecializedConstructSignatures.2.minified.js | 6 +- ...annotatedParametersAreOptional.1.normal.js | 2 +- ...notatedParametersAreOptional.2.minified.js | 2 +- ...undefinedAssignableToEveryType.1.normal.js | 2 +- ...definedAssignableToEveryType.2.minified.js | 2 +- ...undefinedIsSubtypeOfEverything.1.normal.js | 6 +- ...definedIsSubtypeOfEverything.2.minified.js | 6 +- ...fEveryConstituentTypeIsSubtype.1.normal.js | 2 +- ...veryConstituentTypeIsSubtype.2.minified.js | 2 +- .../unionTypeEquivalence.1.normal.js | 6 +- .../unionTypeEquivalence.2.minified.js | 6 +- .../unionTypeFromArrayLiteral.1.normal.js | 6 +- .../unionTypeFromArrayLiteral.2.minified.js | 6 +- ...unionTypePropertyAccessibility.1.normal.js | 2 +- ...ionTypePropertyAccessibility.2.minified.js | 2 +- .../unionTypesAssignability.1.normal.js | 6 +- .../unionTypesAssignability.2.minified.js | 6 +- .../unionsOfTupleTypes1.1.normal.js | 2 +- .../unionsOfTupleTypes1.2.minified.js | 2 +- .../tsc-references/unknownType1.1.normal.js | 10 +- .../tsc-references/unknownType1.2.minified.js | 10 +- .../validNullAssignments.1.normal.js | 2 +- .../validNullAssignments.2.minified.js | 2 +- .../validUndefinedAssignments.1.normal.js | 2 +- .../validUndefinedAssignments.2.minified.js | 2 +- .../varRequireFromJavascript.1.normal.js | 2 +- .../varRequireFromJavascript.2.minified.js | 2 +- .../varRequireFromTypescript.1.normal.js | 2 +- .../varRequireFromTypescript.2.minified.js | 2 +- .../variadicTuples1.1.normal.js | 4 +- .../variadicTuples1.2.minified.js | 4 +- .../tests/tsc-references/variance.1.normal.js | 2 +- .../tsc-references/variance.2.minified.js | 2 +- ...rbatimModuleSyntaxNoElisionESM.1.normal.js | 4 +- ...atimModuleSyntaxNoElisionESM.2.minified.js | 4 +- ...timModuleSyntaxRestrictionsCJS.1.normal.js | 4 +- ...mModuleSyntaxRestrictionsCJS.2.minified.js | 4 +- .../voidOperatorWithAnyOtherType.1.normal.js | 2 +- ...voidOperatorWithAnyOtherType.2.minified.js | 2 +- .../voidOperatorWithBooleanType.1.normal.js | 2 +- .../voidOperatorWithBooleanType.2.minified.js | 2 +- .../voidOperatorWithNumberType.1.normal.js | 2 +- .../voidOperatorWithNumberType.2.minified.js | 2 +- .../voidOperatorWithStringType.1.normal.js | 2 +- .../voidOperatorWithStringType.2.minified.js | 2 +- .../tests/tsc-references/witness.1.normal.js | 2 +- .../tsc-references/witness.2.minified.js | 2 +- ...wrappedAndRecursiveConstraints.1.normal.js | 2 +- ...appedAndRecursiveConstraints.2.minified.js | 2 +- ...rappedAndRecursiveConstraints2.1.normal.js | 2 +- ...ppedAndRecursiveConstraints2.2.minified.js | 2 +- ...rappedAndRecursiveConstraints3.1.normal.js | 2 +- ...ppedAndRecursiveConstraints3.2.minified.js | 2 +- ...rappedAndRecursiveConstraints4.1.normal.js | 2 +- ...ppedAndRecursiveConstraints4.2.minified.js | 2 +- .../yieldExpressionInControlFlow.1.normal.js | 6 +- ...yieldExpressionInControlFlow.2.minified.js | 6 +- .../full-compact/d3-color/1/output/index.js | 2 +- .../react-autosuggest/1/output/index.js | 2 +- .../vercel/full/d3-color/1/output/index.js | 2 +- .../full/d3-time-format/1/output/index.js | 44 +- .../vercel/full/next-31419/1/output/index.js | 6 +- .../vercel/full/next-31419/2/output/index.js | 28 +- .../vercel/full/next-33088/output/index.js | 24 +- .../full/react-autosuggest/1/output/index.js | 4 +- .../full/react-autowhatever/1/output/index.js | 56 +-- .../full/react-autowhatever/2/output/index.js | 62 +-- .../react-instantsearch/2/output/index.js | 114 ++--- .../tests/vercel/full/utf8-1/output/index.js | 12 +- .../loader-only/next-31627/1/output/index.js | 2 +- .../next-33291/1-automatic/output/index.js | 6 +- .../next-33291/2-classic/output/index.js | 6 +- .../next-39460/output/snippetSession.js | 12 +- .../react-autowhatever/1/output/index.js | 16 +- .../react-instantsearch/1/output/index.js | 10 +- .../regressions/1/full/output/index.js | 8 +- .../regressions/1/simplified/output/index.js | 8 +- .../src/helpers/mod.rs | 83 +-- crates/swc_ecma_transforms_module/src/amd.rs | 26 +- .../src/common_js.rs | 40 +- .../src/module_ref_rewriter.rs | 29 +- crates/swc_ecma_transforms_module/src/path.rs | 10 - crates/swc_ecma_transforms_module/src/umd.rs | 26 +- .../interop-node/export-default-11/output.cjs | 4 +- .../export-destructured/output.cjs | 12 +- .../interop-node/export-from-3/output.cjs | 4 +- .../interop-node/export-from-6/output.cjs | 4 +- .../interop-node/export-from-8/output.cjs | 202 ++++---- .../interop-node/export-named-2/output.cjs | 4 +- .../interop-node/export-named-5/output.cjs | 4 +- .../interop-node/exports-variable/output.cjs | 20 +- .../hoist-function-exports/output.cjs | 4 +- .../common/interop-node/overview/output.cjs | 4 +- .../common/interop-node/remap/output.cjs | 10 +- .../fixture/common/issue-5042/1/output.amd.ts | 2 +- .../fixture/common/issue-5042/1/output.cts | 6 +- .../fixture/common/issue-5042/1/output.umd.ts | 2 +- crates/swc_ecma_utils/src/lib.rs | 3 +- node-swc/__tests__/module_test.js | 4 +- .../__tests__/transform/issue_4730_test.mjs | 4 +- packages/swc-helpers/.dprint.json | 29 ++ packages/swc-helpers/.gitignore | 6 +- packages/swc-helpers/.npmignore | 4 +- .../_apply_decorated_descriptor.js} | 12 +- .../_array_like_to_array.js} | 5 +- packages/swc-helpers/esm/_array_with_holes.js | 4 + .../swc-helpers/esm/_array_without_holes.js | 6 + .../esm/_assert_this_initialized.js | 6 + .../_async_generator.js} | 32 +- .../_async_generator_delegate.js} | 12 +- .../_async_iterator.js} | 13 +- .../_async_to_generator.js} | 14 +- .../swc-helpers/esm/_await_async_generator.js | 6 + packages/swc-helpers/esm/_await_value.js | 4 + .../_check_private_redeclaration.js} | 3 +- .../_class_apply_descriptor_destructure.js} | 5 +- .../esm/_class_apply_descriptor_get.js | 6 + .../_class_apply_descriptor_set.js} | 8 +- .../_class_apply_descriptor_update.js} | 10 +- packages/swc-helpers/esm/_class_call_check.js | 4 + .../esm/_class_check_private_static_access.js | 4 + ..._check_private_static_field_descriptor.js} | 3 +- .../esm/_class_extract_field_descriptor.js | 6 + .../_class_name_tdz_error.js} | 3 +- .../esm/_class_private_field_destructure.js | 8 + .../esm/_class_private_field_get.js | 8 + .../esm/_class_private_field_init.js | 7 + .../_class_private_field_loose_base.js} | 4 +- .../esm/_class_private_field_loose_key.js | 6 + .../esm/_class_private_field_set.js | 9 + .../esm/_class_private_field_update.js | 8 + .../esm/_class_private_method_get.js | 6 + .../esm/_class_private_method_init.js | 7 + .../esm/_class_private_method_set.js | 4 + ..._class_static_private_field_destructure.js | 11 + .../_class_static_private_field_spec_get.js | 11 + .../_class_static_private_field_spec_set.js | 12 + .../esm/_class_static_private_field_update.js | 11 + .../esm/_class_static_private_method_get.js | 8 + packages/swc-helpers/esm/_construct.js | 20 + .../_create_class.js} | 6 +- .../_create_for_of_iterator_helper_loose.js} | 19 +- .../_create_super.js} | 13 +- .../{src/_decorate.mjs => esm/_decorate.js} | 118 ++--- .../{src/_defaults.mjs => esm/_defaults.js} | 10 +- .../_define_enumerable_properties.js} | 7 +- .../_define_property.js} | 8 +- .../_export_star.mjs => esm/_export_star.js} | 4 +- packages/swc-helpers/esm/_extends.js | 13 + packages/swc-helpers/esm/_get.js | 21 + packages/swc-helpers/esm/_get_prototype_of.js | 8 + .../{src/_inherits.mjs => esm/_inherits.js} | 12 +- .../_inherits_loose.js} | 3 +- .../_initializer_define_property.js} | 4 +- .../esm/_initializer_warning_helper.js | 9 + .../_instanceof.mjs => esm/_instanceof.js} | 7 +- .../esm/_interop_require_default.js | 4 + .../_interop_require_wildcard.js} | 35 +- .../swc-helpers/esm/_is_native_function.js | 4 + .../_is_native_reflect_construct.js} | 5 +- .../swc-helpers/esm/_iterable_to_array.js | 6 + .../_iterable_to_array_limit.js} | 7 +- .../_iterable_to_array_limit_loose.js} | 7 +- .../swc-helpers/{src/_jsx.mjs => esm/_jsx.js} | 26 +- packages/swc-helpers/esm/_new_arrow_check.js | 4 + .../swc-helpers/esm/_non_iterable_rest.js | 4 + .../swc-helpers/esm/_non_iterable_spread.js | 4 + .../_object_destructuring_empty.js} | 4 +- .../_object_spread.js} | 9 +- .../_object_spread_props.js} | 12 +- .../_object_without_properties.js} | 9 +- .../_object_without_properties_loose.js} | 6 +- .../esm/_possible_constructor_return.js | 9 + packages/swc-helpers/esm/_read_only_error.js | 4 + .../swc-helpers/{src/_set.mjs => esm/_set.js} | 26 +- packages/swc-helpers/esm/_set_prototype_of.js | 10 + .../_skip_first_generator_next.js} | 4 +- packages/swc-helpers/esm/_sliced_to_array.js | 9 + .../swc-helpers/esm/_sliced_to_array_loose.js | 9 + .../_super_prop_base.js} | 7 +- .../esm/_tagged_template_literal.js | 6 + .../esm/_tagged_template_literal_loose.js | 8 + packages/swc-helpers/esm/_throw.js | 4 + packages/swc-helpers/esm/_to_array.js | 9 + .../swc-helpers/esm/_to_consumable_array.js | 9 + .../_to_primitive.js} | 9 +- packages/swc-helpers/esm/_to_property_key.js | 9 + packages/swc-helpers/esm/_ts_decorate.js | 1 + packages/swc-helpers/esm/_ts_generator.js | 1 + packages/swc-helpers/esm/_ts_metadata.js | 1 + packages/swc-helpers/esm/_ts_param.js | 1 + packages/swc-helpers/esm/_ts_values.js | 1 + .../{src/_type_of.mjs => esm/_type_of.js} | 4 +- .../_unsupported_iterable_to_array.js} | 8 +- .../{src/_update.mjs => esm/_update.js} | 8 +- .../swc-helpers/esm/_wrap_async_generator.js | 8 + .../swc-helpers/esm/_wrap_native_super.js | 26 + packages/swc-helpers/esm/_write_only_error.js | 4 + packages/swc-helpers/esm/index.js | 98 ++++ packages/swc-helpers/package.json | 413 ++++++++++++++- packages/swc-helpers/scripts/.dprint.json | 20 + packages/swc-helpers/scripts/ast_grep.js | 279 +++++++++++ packages/swc-helpers/scripts/build.js | 101 ++++ packages/swc-helpers/scripts/build.sh | 13 - packages/swc-helpers/scripts/errors.js | 1 + packages/swc-helpers/scripts/gen.sh | 5 - packages/swc-helpers/scripts/generator.sh | 24 - packages/swc-helpers/scripts/utils.js | 3 + .../swc-helpers/src/_array_with_holes.mjs | 3 - .../swc-helpers/src/_array_without_holes.mjs | 4 - .../src/_assert_this_initialized.mjs | 6 - .../src/_await_async_generator.mjs | 4 - packages/swc-helpers/src/_await_value.mjs | 3 - .../src/_class_apply_descriptor_get.mjs | 6 - .../swc-helpers/src/_class_call_check.mjs | 5 - .../_class_check_private_static_access.mjs | 5 - .../src/_class_extract_field_descriptor.mjs | 6 - .../src/_class_private_field_destructure.mjs | 6 - .../src/_class_private_field_get.mjs | 6 - .../src/_class_private_field_init.mjs | 5 - .../src/_class_private_field_loose_key.mjs | 4 - .../src/_class_private_field_set.mjs | 7 - .../src/_class_private_field_update.mjs | 6 - .../src/_class_private_method_get.mjs | 6 - .../src/_class_private_method_init.mjs | 5 - .../src/_class_private_method_set.mjs | 3 - ...class_static_private_field_destructure.mjs | 8 - .../_class_static_private_field_spec_get.mjs | 8 - .../_class_static_private_field_spec_set.mjs | 9 - .../_class_static_private_field_update.mjs | 8 - .../src/_class_static_private_method_get.mjs | 5 - packages/swc-helpers/src/_construct.mjs | 21 - packages/swc-helpers/src/_extends.mjs | 18 - packages/swc-helpers/src/_get.mjs | 21 - .../swc-helpers/src/_get_prototype_of.mjs | 10 - .../src/_initializer_warning_helper.mjs | 7 - .../src/_interop_require_default.mjs | 3 - .../swc-helpers/src/_is_native_function.mjs | 3 - .../swc-helpers/src/_iterable_to_array.mjs | 3 - packages/swc-helpers/src/_new_arrow_check.mjs | 5 - .../swc-helpers/src/_non_iterable_rest.mjs | 5 - .../swc-helpers/src/_non_iterable_spread.mjs | 5 - .../src/_possible_constructor_return.mjs | 8 - packages/swc-helpers/src/_read_only_error.mjs | 3 - .../swc-helpers/src/_set_prototype_of.mjs | 11 - packages/swc-helpers/src/_sliced_to_array.mjs | 7 - .../src/_sliced_to_array_loose.mjs | 8 - .../src/_tagged_template_literal.mjs | 6 - .../src/_tagged_template_literal_loose.mjs | 7 - packages/swc-helpers/src/_throw.mjs | 3 - packages/swc-helpers/src/_to_array.mjs | 7 - .../swc-helpers/src/_to_consumable_array.mjs | 7 - packages/swc-helpers/src/_to_property_key.mjs | 6 - packages/swc-helpers/src/_ts_decorate.mjs | 1 - packages/swc-helpers/src/_ts_generator.mjs | 1 - packages/swc-helpers/src/_ts_metadata.mjs | 1 - packages/swc-helpers/src/_ts_param.mjs | 1 - packages/swc-helpers/src/_ts_values.mjs | 1 - .../swc-helpers/src/_wrap_async_generator.mjs | 6 - .../swc-helpers/src/_wrap_native_super.mjs | 29 -- .../swc-helpers/src/_write_only_error.mjs | 3 - packages/swc-helpers/src/index.mjs | 82 --- 3380 files changed, 10250 insertions(+), 9420 deletions(-) create mode 100644 packages/swc-helpers/.dprint.json rename packages/swc-helpers/{src/_apply_decorated_descriptor.mjs => esm/_apply_decorated_descriptor.js} (81%) rename packages/swc-helpers/{src/_array_like_to_array.mjs => esm/_array_like_to_array.js} (63%) create mode 100644 packages/swc-helpers/esm/_array_with_holes.js create mode 100644 packages/swc-helpers/esm/_array_without_holes.js create mode 100644 packages/swc-helpers/esm/_assert_this_initialized.js rename packages/swc-helpers/{src/_async_generator.mjs => esm/_async_generator.js} (82%) rename packages/swc-helpers/{src/_async_generator_delegate.mjs => esm/_async_generator_delegate.js} (89%) rename packages/swc-helpers/{src/_async_iterator.mjs => esm/_async_iterator.js} (87%) rename packages/swc-helpers/{src/_async_to_generator.mjs => esm/_async_to_generator.js} (80%) create mode 100644 packages/swc-helpers/esm/_await_async_generator.js create mode 100644 packages/swc-helpers/esm/_await_value.js rename packages/swc-helpers/{src/_check_private_redeclaration.mjs => esm/_check_private_redeclaration.js} (54%) rename packages/swc-helpers/{src/_class_apply_descriptor_destructure.mjs => esm/_class_apply_descriptor_destructure.js} (82%) create mode 100644 packages/swc-helpers/esm/_class_apply_descriptor_get.js rename packages/swc-helpers/{src/_class_apply_descriptor_set.mjs => esm/_class_apply_descriptor_set.js} (63%) rename packages/swc-helpers/{src/_class_apply_descriptor_update.mjs => esm/_class_apply_descriptor_update.js} (77%) create mode 100644 packages/swc-helpers/esm/_class_call_check.js create mode 100644 packages/swc-helpers/esm/_class_check_private_static_access.js rename packages/swc-helpers/{src/_class_check_private_static_field_descriptor.mjs => esm/_class_check_private_static_field_descriptor.js} (50%) create mode 100644 packages/swc-helpers/esm/_class_extract_field_descriptor.js rename packages/swc-helpers/{src/_class_name_tdz_error.mjs => esm/_class_name_tdz_error.js} (53%) create mode 100644 packages/swc-helpers/esm/_class_private_field_destructure.js create mode 100644 packages/swc-helpers/esm/_class_private_field_get.js create mode 100644 packages/swc-helpers/esm/_class_private_field_init.js rename packages/swc-helpers/{src/_class_private_field_loose_base.mjs => esm/_class_private_field_loose_base.js} (59%) create mode 100644 packages/swc-helpers/esm/_class_private_field_loose_key.js create mode 100644 packages/swc-helpers/esm/_class_private_field_set.js create mode 100644 packages/swc-helpers/esm/_class_private_field_update.js create mode 100644 packages/swc-helpers/esm/_class_private_method_get.js create mode 100644 packages/swc-helpers/esm/_class_private_method_init.js create mode 100644 packages/swc-helpers/esm/_class_private_method_set.js create mode 100644 packages/swc-helpers/esm/_class_static_private_field_destructure.js create mode 100644 packages/swc-helpers/esm/_class_static_private_field_spec_get.js create mode 100644 packages/swc-helpers/esm/_class_static_private_field_spec_set.js create mode 100644 packages/swc-helpers/esm/_class_static_private_field_update.js create mode 100644 packages/swc-helpers/esm/_class_static_private_method_get.js create mode 100644 packages/swc-helpers/esm/_construct.js rename packages/swc-helpers/{src/_create_class.mjs => esm/_create_class.js} (83%) rename packages/swc-helpers/{src/_create_for_of_iterator_helper_loose.mjs => esm/_create_for_of_iterator_helper_loose.js} (51%) rename packages/swc-helpers/{src/_create_super.mjs => esm/_create_super.js} (62%) rename packages/swc-helpers/{src/_decorate.mjs => esm/_decorate.js} (76%) rename packages/swc-helpers/{src/_defaults.mjs => esm/_defaults.js} (70%) rename packages/swc-helpers/{src/_define_enumerable_properties.mjs => esm/_define_enumerable_properties.js} (85%) rename packages/swc-helpers/{src/_define_property.mjs => esm/_define_property.js} (56%) rename packages/swc-helpers/{src/_export_star.mjs => esm/_export_star.js} (82%) create mode 100644 packages/swc-helpers/esm/_extends.js create mode 100644 packages/swc-helpers/esm/_get.js create mode 100644 packages/swc-helpers/esm/_get_prototype_of.js rename packages/swc-helpers/{src/_inherits.mjs => esm/_inherits.js} (55%) rename packages/swc-helpers/{src/_inherits_loose.mjs => esm/_inherits_loose.js} (62%) rename packages/swc-helpers/{src/_initializer_define_property.mjs => esm/_initializer_define_property.js} (69%) create mode 100644 packages/swc-helpers/esm/_initializer_warning_helper.js rename packages/swc-helpers/{src/_instanceof.mjs => esm/_instanceof.js} (55%) create mode 100644 packages/swc-helpers/esm/_interop_require_default.js rename packages/swc-helpers/{src/_interop_require_wildcard.mjs => esm/_interop_require_wildcard.js} (62%) create mode 100644 packages/swc-helpers/esm/_is_native_function.js rename packages/swc-helpers/{src/_is_native_reflect_construct.mjs => esm/_is_native_reflect_construct.js} (77%) create mode 100644 packages/swc-helpers/esm/_iterable_to_array.js rename packages/swc-helpers/{src/_iterable_to_array_limit.mjs => esm/_iterable_to_array_limit.js} (86%) rename packages/swc-helpers/{src/_iterable_to_array_limit_loose.mjs => esm/_iterable_to_array_limit_loose.js} (74%) rename packages/swc-helpers/{src/_jsx.mjs => esm/_jsx.js} (52%) create mode 100644 packages/swc-helpers/esm/_new_arrow_check.js create mode 100644 packages/swc-helpers/esm/_non_iterable_rest.js create mode 100644 packages/swc-helpers/esm/_non_iterable_spread.js rename packages/swc-helpers/{src/_object_destructuring_empty.mjs => esm/_object_destructuring_empty.js} (51%) rename packages/swc-helpers/{src/_object_spread.mjs => esm/_object_spread.js} (81%) rename packages/swc-helpers/{src/_object_spread_props.mjs => esm/_object_spread_props.js} (74%) rename packages/swc-helpers/{src/_object_without_properties.mjs => esm/_object_without_properties.js} (72%) rename packages/swc-helpers/{src/_object_without_properties_loose.mjs => esm/_object_without_properties_loose.js} (71%) create mode 100644 packages/swc-helpers/esm/_possible_constructor_return.js create mode 100644 packages/swc-helpers/esm/_read_only_error.js rename packages/swc-helpers/{src/_set.mjs => esm/_set.js} (68%) create mode 100644 packages/swc-helpers/esm/_set_prototype_of.js rename packages/swc-helpers/{src/_skip_first_generator_next.mjs => esm/_skip_first_generator_next.js} (55%) create mode 100644 packages/swc-helpers/esm/_sliced_to_array.js create mode 100644 packages/swc-helpers/esm/_sliced_to_array_loose.js rename packages/swc-helpers/{src/_super_prop_base.mjs => esm/_super_prop_base.js} (54%) create mode 100644 packages/swc-helpers/esm/_tagged_template_literal.js create mode 100644 packages/swc-helpers/esm/_tagged_template_literal_loose.js create mode 100644 packages/swc-helpers/esm/_throw.js create mode 100644 packages/swc-helpers/esm/_to_array.js create mode 100644 packages/swc-helpers/esm/_to_consumable_array.js rename packages/swc-helpers/{src/_to_primitive.mjs => esm/_to_primitive.js} (76%) create mode 100644 packages/swc-helpers/esm/_to_property_key.js create mode 100644 packages/swc-helpers/esm/_ts_decorate.js create mode 100644 packages/swc-helpers/esm/_ts_generator.js create mode 100644 packages/swc-helpers/esm/_ts_metadata.js create mode 100644 packages/swc-helpers/esm/_ts_param.js create mode 100644 packages/swc-helpers/esm/_ts_values.js rename packages/swc-helpers/{src/_type_of.mjs => esm/_type_of.js} (69%) rename packages/swc-helpers/{src/_unsupported_iterable_to_array.mjs => esm/_unsupported_iterable_to_array.js} (69%) rename packages/swc-helpers/{src/_update.mjs => esm/_update.js} (55%) create mode 100644 packages/swc-helpers/esm/_wrap_async_generator.js create mode 100644 packages/swc-helpers/esm/_wrap_native_super.js create mode 100644 packages/swc-helpers/esm/_write_only_error.js create mode 100644 packages/swc-helpers/esm/index.js create mode 100644 packages/swc-helpers/scripts/.dprint.json create mode 100644 packages/swc-helpers/scripts/ast_grep.js create mode 100644 packages/swc-helpers/scripts/build.js delete mode 100755 packages/swc-helpers/scripts/build.sh create mode 100644 packages/swc-helpers/scripts/errors.js delete mode 100755 packages/swc-helpers/scripts/gen.sh delete mode 100755 packages/swc-helpers/scripts/generator.sh create mode 100644 packages/swc-helpers/scripts/utils.js delete mode 100644 packages/swc-helpers/src/_array_with_holes.mjs delete mode 100644 packages/swc-helpers/src/_array_without_holes.mjs delete mode 100644 packages/swc-helpers/src/_assert_this_initialized.mjs delete mode 100644 packages/swc-helpers/src/_await_async_generator.mjs delete mode 100644 packages/swc-helpers/src/_await_value.mjs delete mode 100644 packages/swc-helpers/src/_class_apply_descriptor_get.mjs delete mode 100644 packages/swc-helpers/src/_class_call_check.mjs delete mode 100644 packages/swc-helpers/src/_class_check_private_static_access.mjs delete mode 100644 packages/swc-helpers/src/_class_extract_field_descriptor.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_destructure.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_get.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_init.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_loose_key.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_set.mjs delete mode 100644 packages/swc-helpers/src/_class_private_field_update.mjs delete mode 100644 packages/swc-helpers/src/_class_private_method_get.mjs delete mode 100644 packages/swc-helpers/src/_class_private_method_init.mjs delete mode 100644 packages/swc-helpers/src/_class_private_method_set.mjs delete mode 100644 packages/swc-helpers/src/_class_static_private_field_destructure.mjs delete mode 100644 packages/swc-helpers/src/_class_static_private_field_spec_get.mjs delete mode 100644 packages/swc-helpers/src/_class_static_private_field_spec_set.mjs delete mode 100644 packages/swc-helpers/src/_class_static_private_field_update.mjs delete mode 100644 packages/swc-helpers/src/_class_static_private_method_get.mjs delete mode 100644 packages/swc-helpers/src/_construct.mjs delete mode 100644 packages/swc-helpers/src/_extends.mjs delete mode 100644 packages/swc-helpers/src/_get.mjs delete mode 100644 packages/swc-helpers/src/_get_prototype_of.mjs delete mode 100644 packages/swc-helpers/src/_initializer_warning_helper.mjs delete mode 100644 packages/swc-helpers/src/_interop_require_default.mjs delete mode 100644 packages/swc-helpers/src/_is_native_function.mjs delete mode 100644 packages/swc-helpers/src/_iterable_to_array.mjs delete mode 100644 packages/swc-helpers/src/_new_arrow_check.mjs delete mode 100644 packages/swc-helpers/src/_non_iterable_rest.mjs delete mode 100644 packages/swc-helpers/src/_non_iterable_spread.mjs delete mode 100644 packages/swc-helpers/src/_possible_constructor_return.mjs delete mode 100644 packages/swc-helpers/src/_read_only_error.mjs delete mode 100644 packages/swc-helpers/src/_set_prototype_of.mjs delete mode 100644 packages/swc-helpers/src/_sliced_to_array.mjs delete mode 100644 packages/swc-helpers/src/_sliced_to_array_loose.mjs delete mode 100644 packages/swc-helpers/src/_tagged_template_literal.mjs delete mode 100644 packages/swc-helpers/src/_tagged_template_literal_loose.mjs delete mode 100644 packages/swc-helpers/src/_throw.mjs delete mode 100644 packages/swc-helpers/src/_to_array.mjs delete mode 100644 packages/swc-helpers/src/_to_consumable_array.mjs delete mode 100644 packages/swc-helpers/src/_to_property_key.mjs delete mode 100644 packages/swc-helpers/src/_ts_decorate.mjs delete mode 100644 packages/swc-helpers/src/_ts_generator.mjs delete mode 100644 packages/swc-helpers/src/_ts_metadata.mjs delete mode 100644 packages/swc-helpers/src/_ts_param.mjs delete mode 100644 packages/swc-helpers/src/_ts_values.mjs delete mode 100644 packages/swc-helpers/src/_wrap_async_generator.mjs delete mode 100644 packages/swc-helpers/src/_wrap_native_super.mjs delete mode 100644 packages/swc-helpers/src/_write_only_error.mjs delete mode 100644 packages/swc-helpers/src/index.mjs diff --git a/crates/swc/tests/fixture/codegen/comment-1/es5/output/index.tsx b/crates/swc/tests/fixture/codegen/comment-1/es5/output/index.tsx index 0e96d05a8b45..69a6116177c9 100644 --- a/crates/swc/tests/fixture/codegen/comment-1/es5/output/index.tsx +++ b/crates/swc/tests/fixture/codegen/comment-1/es5/output/index.tsx @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function a(param) { var _param_b = param.b, b = _param_b === void 0 ? [] : _param_b; var t = useMemo(function() { diff --git a/crates/swc/tests/fixture/config/regenerator/import-path/1/output/index.js b/crates/swc/tests/fixture/config/regenerator/import-path/1/output/index.js index 12b3a24cba27..3e33ec15e314 100644 --- a/crates/swc/tests/fixture/config/regenerator/import-path/1/output/index.js +++ b/crates/swc/tests/fixture/config/regenerator/import-path/1/output/index.js @@ -1,4 +1,4 @@ -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function gen() { return _ts_generator(this, function(_state) { switch(_state.label){ diff --git a/crates/swc/tests/fixture/deno/paths/issue-2724/output/src/index.ts b/crates/swc/tests/fixture/deno/paths/issue-2724/output/src/index.ts index 51af27f96d8b..5b8eb7f3aa16 100644 --- a/crates/swc/tests/fixture/deno/paths/issue-2724/output/src/index.ts +++ b/crates/swc/tests/fixture/deno/paths/issue-2724/output/src/index.ts @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); (async function() { - const { displayA } = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../packages/a/src/index"))); + const { displayA } = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("../packages/a/src/index"))); console.log(displayA()); })(); diff --git a/crates/swc/tests/fixture/globals/typeofs-declared/output/index.js b/crates/swc/tests/fixture/globals/typeofs-declared/output/index.js index 2099df96080a..76dafdff28fb 100644 --- a/crates/swc/tests/fixture/globals/typeofs-declared/output/index.js +++ b/crates/swc/tests/fixture/globals/typeofs-declared/output/index.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var window = "foo"; console.log(typeof window === "undefined" ? "undefined" : _type_of(window)); diff --git a/crates/swc/tests/fixture/interop/babel/output/index.js b/crates/swc/tests/fixture/interop/babel/output/index.js index b8b42b7aa0ac..8c7e67a4d43e 100644 --- a/crates/swc/tests/fixture/interop/babel/output/index.js +++ b/crates/swc/tests/fixture/interop/babel/output/index.js @@ -13,10 +13,10 @@ _export(exports, { y: ()=>y, default: ()=>_default }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); -const _bar = /*#__PURE__*/ _interop_require_wildcard(require("bar")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _foo = /*#__PURE__*/ _interop_require_default._(require("foo")); +const _bar = /*#__PURE__*/ _interop_require_wildcard._(require("bar")); const x = { foo: _foo.default, bar: _bar.default diff --git a/crates/swc/tests/fixture/interop/node/output/index.js b/crates/swc/tests/fixture/interop/node/output/index.js index e027ca18de8e..86a361fe065b 100644 --- a/crates/swc/tests/fixture/interop/node/output/index.js +++ b/crates/swc/tests/fixture/interop/node/output/index.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - x: _, - y: _, - default: _ + x: null, + y: null, + default: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { @@ -18,9 +18,9 @@ _export(exports, { y: ()=>y, default: ()=>_default }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _foo = require("foo"); -const _bar = /*#__PURE__*/ _interop_require_wildcard(require("bar"), true); +const _bar = /*#__PURE__*/ _interop_require_wildcard._(require("bar"), true); const x = { foo: _foo, bar: _bar.default diff --git a/crates/swc/tests/fixture/interop/swc/output/index.js b/crates/swc/tests/fixture/interop/swc/output/index.js index b8b42b7aa0ac..8c7e67a4d43e 100644 --- a/crates/swc/tests/fixture/interop/swc/output/index.js +++ b/crates/swc/tests/fixture/interop/swc/output/index.js @@ -13,10 +13,10 @@ _export(exports, { y: ()=>y, default: ()=>_default }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); -const _bar = /*#__PURE__*/ _interop_require_wildcard(require("bar")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _foo = /*#__PURE__*/ _interop_require_default._(require("foo")); +const _bar = /*#__PURE__*/ _interop_require_wildcard._(require("bar")); const x = { foo: _foo.default, bar: _bar.default diff --git a/crates/swc/tests/fixture/issues-0xxx/846/case1/output/index.js b/crates/swc/tests/fixture/issues-0xxx/846/case1/output/index.js index b3e47e33f505..763f0c73111d 100644 --- a/crates/swc/tests/fixture/issues-0xxx/846/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-0xxx/846/case1/output/index.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _decorate from "@swc/helpers/src/_decorate.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _decorate } from "@swc/helpers/_/_decorate"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeClass = _decorate([], function(_initialize) { var SomeClass = function SomeClass() { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1107/1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1107/1/output/index.js index 4364638b4ce2..a94949ad3476 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1107/1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1107/1/output/index.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Class1 = function Class1(param) { "use strict"; var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name; diff --git a/crates/swc/tests/fixture/issues-1xxx/1135/1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1135/1/output/index.ts index 270c50824384..870b8b80481e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1135/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1135/1/output/index.ts @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); function _ts_decorate() { - const data = require("@swc/helpers/lib/_ts_decorate.js").default; + const data = require("@swc/helpers/_/_ts_decorate"); _ts_decorate = function() { return data; }; @@ -19,6 +19,6 @@ function _module() { class MyClass extends _module().Class { async method() {} } -_ts_decorate()([ +_ts_decorate()._([ _module().Class.Decorator() ], MyClass.prototype, "method", null); diff --git a/crates/swc/tests/fixture/issues-1xxx/1160/output/entry.ts b/crates/swc/tests/fixture/issues-1xxx/1160/output/entry.ts index 9e474cd3216e..e712a283fc23 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1160/output/entry.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1160/output/entry.ts @@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _define_property = require("@swc/helpers/lib/_define_property.js").default; -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; +const _define_property = require("@swc/helpers/_/_define_property"); +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); var MyEnum; (function(MyEnum) { MyEnum["x"] = "xxx"; @@ -12,12 +12,12 @@ var MyEnum; })(MyEnum || (MyEnum = {})); class Xpto { constructor(){ - _define_property(this, "value", void 0); + _define_property._(this, "value", void 0); } } -_ts_decorate([ +_ts_decorate._([ Decorator(), - _ts_metadata("design:type", String) + _ts_metadata._("design:type", String) ], Xpto.prototype, "value", void 0); function Decorator() { return function(...args) {}; diff --git a/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js index d11a2d04b765..1de1ae5990cb 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js @@ -6,8 +6,8 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>NotOK }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _foo = /*#__PURE__*/ _interop_require_default._(require("foo")); class OK { constructor(){ console.log(_foo.default); diff --git a/crates/swc/tests/fixture/issues-1xxx/1216/case-1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1216/case-1/output/index.js index f34886a39a55..4deb2c73588c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1216/case-1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1216/case-1/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var source = Math.random() < 2 ? "matilda" : "fred"; var details = { _id: "1" diff --git a/crates/swc/tests/fixture/issues-1xxx/1216/case-2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1216/case-2/output/index.js index f34886a39a55..4deb2c73588c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1216/case-2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1216/case-2/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var source = Math.random() < 2 ? "matilda" : "fred"; var details = { _id: "1" diff --git a/crates/swc/tests/fixture/issues-1xxx/1216/case-3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1216/case-3/output/index.js index 15abc6509955..8d6dbfa3adf9 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1216/case-3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1216/case-3/output/index.js @@ -1,4 +1,4 @@ -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { var val, _tmp; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/issues-1xxx/1219/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1219/output/index.ts index 5af17e154f85..ed04772231a9 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1219/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1219/output/index.ts @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Foo { constructor(){ _define_property(this, "static", 5); diff --git a/crates/swc/tests/fixture/issues-1xxx/1232/cjs/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1232/cjs/output/index.js index 1d74ac211776..a63273443951 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1232/cjs/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1232/cjs/output/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _actions = /*#__PURE__*/ _interop_require_wildcard(require("./actions")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _actions = /*#__PURE__*/ _interop_require_wildcard._(require("./actions")); console.log(_actions); console.log(_actions.foo); diff --git a/crates/swc/tests/fixture/issues-1xxx/1259/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1259/output/index.js index 3337daa1bb32..dfec846aa7ca 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1259/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1259/output/index.js @@ -1,9 +1,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _tagged_template_literal = require("@swc/helpers/lib/_tagged_template_literal.js").default; +var _tagged_template_literal = require("@swc/helpers/_/_tagged_template_literal"); function _templateObject() { - var data = _tagged_template_literal([ + var data = _tagged_template_literal._([ "'#ERROR'" ]); _templateObject = function _templateObject() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1278/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1278/output/index.ts index 83f07eed7a00..0aa1e320bceb 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1278/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1278/output/index.ts @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); function MyDecorator(klass) { return ()=>{ // do something @@ -12,8 +12,8 @@ function MyDecorator(klass) { } class MyClass { } -_ts_decorate([ +_ts_decorate._([ MyDecorator(MyClass), - _ts_metadata("design:type", String) + _ts_metadata._("design:type", String) ], MyClass.prototype, "prop", void 0); console.log(new MyClass()); diff --git a/crates/swc/tests/fixture/issues-1xxx/1279/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1279/case1/output/index.ts index 274b7ac66c97..9b509bd5a645 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1279/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1279/case1/output/index.ts @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; export class Foo { nested() { let Foo = class Foo { diff --git a/crates/swc/tests/fixture/issues-1xxx/1306/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1306/case1/output/index.ts index b03c90a3d989..947a1b7ee114 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1306/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1306/case1/output/index.ts @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var _name = /*#__PURE__*/ new WeakMap(); var Animal = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1306/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1306/case2/output/index.js index b03c90a3d989..947a1b7ee114 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1306/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1306/case2/output/index.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var _name = /*#__PURE__*/ new WeakMap(); var Animal = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts index 5bb9be0a4f18..5ff440db086f 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts @@ -6,5 +6,5 @@ Object.defineProperty(exports, "foo", { enumerable: true, get: ()=>_foo }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _foo = /*#__PURE__*/ _interop_require_wildcard(require("./foo")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _foo = /*#__PURE__*/ _interop_require_wildcard._(require("./foo")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1333/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1333/case1/output/index.js index c26126adf861..f61ce1844308 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1333/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1333/case1/output/index.js @@ -2,19 +2,19 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _class_private_field_get = require("@swc/helpers/lib/_class_private_field_get.js").default; -const _class_private_field_init = require("@swc/helpers/lib/_class_private_field_init.js").default; +const _class_private_field_get = require("@swc/helpers/_/_class_private_field_get"); +const _class_private_field_init = require("@swc/helpers/_/_class_private_field_init"); var _ws = /*#__PURE__*/ new WeakMap(), _ws2 = /*#__PURE__*/ new WeakMap(); class Foo { get connected() { - return _class_private_field_get(this, _ws2) && _class_private_field_get(this, _ws).readyState === _ws1.default.OPEN; + return _class_private_field_get._(this, _ws2) && _class_private_field_get._(this, _ws).readyState === _ws1.default.OPEN; } constructor(){ - _class_private_field_init(this, _ws, { + _class_private_field_init._(this, _ws, { writable: true, value: void 0 }); - _class_private_field_init(this, _ws2, { + _class_private_field_init._(this, _ws2, { writable: true, value: void 0 }); diff --git a/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js index 670c2850cedd..f34f0672aacc 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js @@ -10,11 +10,11 @@ Object.defineProperty(exports, "Shard", { enumerable: true, get: ()=>Shard }); -const _class_private_field_get = require("@swc/helpers/lib/_class_private_field_get.js").default; -const _class_private_field_init = require("@swc/helpers/lib/_class_private_field_init.js").default; -const _class_private_field_set = require("@swc/helpers/lib/_class_private_field_set.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _ws = /*#__PURE__*/ _interop_require_default(require("ws")); +const _class_private_field_get = require("@swc/helpers/_/_class_private_field_get"); +const _class_private_field_init = require("@swc/helpers/_/_class_private_field_init"); +const _class_private_field_set = require("@swc/helpers/_/_class_private_field_set"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _ws = /*#__PURE__*/ _interop_require_default._(require("ws")); const _utils = require("../../utils"); const _connection = require("./connection"); const _serialization = require("./serialization"); @@ -50,13 +50,13 @@ class Shard extends _utils.Emitter { * The current sequence * @type {number} */ get seq() { - return _class_private_field_get(this, _seq); + return _class_private_field_get._(this, _seq); } /** * The closing sequence. * @type {number} */ get closingSeq() { - return _class_private_field_get(this, _closingSeq); + return _class_private_field_get._(this, _closingSeq); } /** * The client instance. @@ -68,7 +68,7 @@ class Shard extends _utils.Emitter { * Whether this shard is connected to the gateway or not. * @type {boolean} */ get connected() { - return _class_private_field_get(this, _ws1) && _class_private_field_get(this, _ws1).readyState === _ws.default.OPEN; + return _class_private_field_get._(this, _ws1) && _class_private_field_get._(this, _ws1).readyState === _ws.default.OPEN; } /** * Send a new packet to the discord gateway. @@ -81,16 +81,16 @@ class Shard extends _utils.Emitter { if (++_i < _w) { return; } - const encoded = _class_private_field_get(this, _serialization1).encode(data); - _class_private_field_get(this, _ws1).send(encoded); + const encoded = _class_private_field_get._(this, _serialization1).encode(data); + _class_private_field_get._(this, _ws1).send(encoded); }; if (data.op === _utils.GatewayOp.PRESENCE_UPDATE) { ++_w; - _class_private_field_get(this, _presenceBucket).queue(func, prioritized); + _class_private_field_get._(this, _presenceBucket).queue(func, prioritized); } - return _class_private_field_get(this, _bucket).queue(func, prioritized); + return _class_private_field_get._(this, _bucket).queue(func, prioritized); } - _class_private_field_get(this, _queue)[prioritized ? "unshift" : "push"](data); + _class_private_field_get._(this, _queue)[prioritized ? "unshift" : "push"](data); } /** * Destroys this shard. @@ -103,14 +103,14 @@ class Shard extends _utils.Emitter { this.heartbeat.reset(); this.session.clearHelloTimeout(); // (Step 1) Close the websocket connection. - if (_class_private_field_get(this, _ws1)) { - if (_class_private_field_get(this, _ws1).readyState === _ws.default.OPEN) { - _class_private_field_get(this, _ws1).close(code); + if (_class_private_field_get._(this, _ws1)) { + if (_class_private_field_get._(this, _ws1).readyState === _ws.default.OPEN) { + _class_private_field_get._(this, _ws1).close(code); } else { - this._debug(`Ws State: ${connectionStates[_class_private_field_get(this, _ws1).readyState]}`); + this._debug(`Ws State: ${connectionStates[_class_private_field_get._(this, _ws1).readyState]}`); this._cleanupConnection(); try { - _class_private_field_get(this, _ws1).close(code); + _class_private_field_get._(this, _ws1).close(code); } catch { // no-op } @@ -124,19 +124,19 @@ class Shard extends _utils.Emitter { } else if (emit) { this.emit(_utils.ShardEvent.DESTROYED); } - _class_private_field_set(this, _ws1, undefined); + _class_private_field_set._(this, _ws1, undefined); // (Step 4) Set the shard status to disconnected. this.status = _utils.Status.DISCONNECTED; // (Step 5) Cache ze current sequence! - if (_class_private_field_get(this, _seq) !== -1) { - _class_private_field_set(this, _closingSeq, _class_private_field_get(this, _seq)); + if (_class_private_field_get._(this, _seq) !== -1) { + _class_private_field_set._(this, _closingSeq, _class_private_field_get._(this, _seq)); } // (Step 6) Reset the shit. if (reset) { - _class_private_field_set(this, _seq, -1); + _class_private_field_set._(this, _seq, -1); this.session.reset(); } - _class_private_field_set(this, _bucket, new _utils.Bucket(120, 6e4)); + _class_private_field_set._(this, _bucket, new _utils.Bucket(120, 6e4)); } connect() { /* Step 0 - Check if a connection already exists. If so identify the session. */ if (this.connected) { @@ -144,7 +144,7 @@ class Shard extends _utils.Emitter { this.session.identify(); return; } - /* Step 1 - If a socket is already present, destroy it. */ if (_class_private_field_get(this, _ws1)) { + /* Step 1 - If a socket is already present, destroy it. */ if (_class_private_field_get._(this, _ws1)) { this._debug("A connection is already present, cleaning up..."); this.destroy({ emit: false @@ -155,10 +155,10 @@ class Shard extends _utils.Emitter { // Step 2.1 - Serialization const encoding = this.manager.options.useEtf ? "etf" : "json"; qs.append("encoding", encoding); - _class_private_field_set(this, _serialization1, _serialization.Serialization.create(encoding)); + _class_private_field_set._(this, _serialization1, _serialization.Serialization.create(encoding)); // Step 2.2 - Compression if (this.manager.compression) { - _class_private_field_set(this, _compression1, _compression.Compression.create(this.manager.compression).on("data", (buffer)=>this._packet(buffer)).on("error", (error)=>this.emit(_utils.ShardEvent.ERROR, error)).on("debug", (message)=>this._debug(message))); + _class_private_field_set._(this, _compression1, _compression.Compression.create(this.manager.compression).on("data", (buffer)=>this._packet(buffer)).on("error", (error)=>this.emit(_utils.ShardEvent.ERROR, error)).on("debug", (message)=>this._debug(message))); qs.append("compress", "zlib-stream"); } /* Step 5 - Set the status and wait for the hello op code. */ this.status = this.status === _utils.Status.DISCONNECTED ? _utils.Status.RECONNECTING : _utils.Status.CONNECTING; @@ -168,16 +168,16 @@ class Shard extends _utils.Emitter { * @type {number} */ this.connectedAt = Date.now(); /* Step 6 - Connect to the gateway. */ const uri = this.manager.gatewayUrl.replace(/\/*$/m, ""); - _class_private_field_set(this, _ws1, new _ws.default(`${uri}/?${qs}`)); - /* Step 7 - Attach the listeners. */ _class_private_field_get(this, _ws1).onopen = this._open.bind(this); - _class_private_field_get(this, _ws1).onclose = this._close.bind(this); - _class_private_field_get(this, _ws1).onerror = this._error.bind(this); - _class_private_field_get(this, _ws1).onmessage = this._message.bind(this); + _class_private_field_set._(this, _ws1, new _ws.default(`${uri}/?${qs}`)); + /* Step 7 - Attach the listeners. */ _class_private_field_get._(this, _ws1).onopen = this._open.bind(this); + _class_private_field_get._(this, _ws1).onclose = this._close.bind(this); + _class_private_field_get._(this, _ws1).onerror = this._error.bind(this); + _class_private_field_get._(this, _ws1).onmessage = this._message.bind(this); } _packet(raw) { /** @type {DiscordPacket} */ let pak; try { - pak = _class_private_field_get(this, _serialization1).decode(raw); + pak = _class_private_field_get._(this, _serialization1).decode(raw); this.manager.emit(_utils.ClientEvent.RAW_PACKET, pak, this); } catch (e) { this.manager.client.emit(_utils.ClientEvent.SHARD_ERROR, e, this); @@ -206,10 +206,10 @@ class Shard extends _utils.Emitter { break; } if (pak.s !== null) { - if (_class_private_field_get(this, _seq) !== -1 && pak.s > _class_private_field_get(this, _seq) + 1) { - this._debug(`Non-consecutive sequence [${_class_private_field_get(this, _seq)} => ${pak.s}]`); + if (_class_private_field_get._(this, _seq) !== -1 && pak.s > _class_private_field_get._(this, _seq) + 1) { + this._debug(`Non-consecutive sequence [${_class_private_field_get._(this, _seq)} => ${pak.s}]`); } - _class_private_field_set(this, _seq, pak.s); + _class_private_field_set._(this, _seq, pak.s); } switch(pak.op){ case _utils.GatewayOp.HELLO: @@ -228,7 +228,7 @@ class Shard extends _utils.Emitter { this.session.resume(); break; } - _class_private_field_set(this, _seq, -1); + _class_private_field_set._(this, _seq, -1); this.session.reset(); this.status = _utils.Status.RECONNECTING; this.emit(_utils.ShardEvent.INVALID_SESSION); @@ -273,11 +273,11 @@ class Shard extends _utils.Emitter { */ _open() { var _class_private_field_get1; this.status = _utils.Status.HANDSHAKING; - this._debug(`Connected. ${(_class_private_field_get1 = _class_private_field_get(this, _ws1)) === null || _class_private_field_get1 === void 0 ? void 0 : _class_private_field_get1.url} in ${Date.now() - this.connectedAt}`); - if (_class_private_field_get(this, _queue).length) { - this._debug(`${_class_private_field_get(this, _queue).length} packets waiting... sending all now.`); - while(_class_private_field_get(this, _queue).length){ - const pk = _class_private_field_get(this, _queue).shift(); + this._debug(`Connected. ${(_class_private_field_get1 = _class_private_field_get._(this, _ws1)) === null || _class_private_field_get1 === void 0 ? void 0 : _class_private_field_get1.url} in ${Date.now() - this.connectedAt}`); + if (_class_private_field_get._(this, _queue).length) { + this._debug(`${_class_private_field_get._(this, _queue).length} packets waiting... sending all now.`); + while(_class_private_field_get._(this, _queue).length){ + const pk = _class_private_field_get._(this, _queue).shift(); if (!pk) { break; } @@ -303,13 +303,13 @@ class Shard extends _utils.Emitter { var _ref; const reason = (_ref = evt.reason || _utils.GatewayCloseCode[evt.code]) !== null && _ref !== void 0 ? _ref : "unknown"; this._debug(`Closed; Code = ${evt.code}, Clean? = ${evt.wasClean}, Reason = ${reason}`); - if (_class_private_field_get(this, _seq) !== -1) { - _class_private_field_set(this, _closingSeq, _class_private_field_get(this, _seq)); + if (_class_private_field_get._(this, _seq) !== -1) { + _class_private_field_set._(this, _closingSeq, _class_private_field_get._(this, _seq)); } - _class_private_field_set(this, _seq, -1); + _class_private_field_set._(this, _seq, -1); this.heartbeat.reset(); this.session.clearHelloTimeout(); - if (_class_private_field_get(this, _ws1)) { + if (_class_private_field_get._(this, _ws1)) { this._cleanupConnection(); } this.status = _utils.Status.DISCONNECTED; @@ -324,13 +324,13 @@ class Shard extends _utils.Emitter { * @param {WebSocket.MessageEvent} evt * @private */ _message(evt) { - return _class_private_field_get(this, _compression1) ? _class_private_field_get(this, _compression1).add(evt.data) : this._packet(evt.data); + return _class_private_field_get._(this, _compression1) ? _class_private_field_get._(this, _compression1).add(evt.data) : this._packet(evt.data); } /** * Cleans up the WebSocket connection listeners. * @private */ _cleanupConnection() { - _class_private_field_get(this, _ws1).onopen = _class_private_field_get(this, _ws1).onclose = _class_private_field_get(this, _ws1).onerror = _class_private_field_get(this, _ws1).onmessage = null; + _class_private_field_get._(this, _ws1).onopen = _class_private_field_get._(this, _ws1).onclose = _class_private_field_get._(this, _ws1).onerror = _class_private_field_get._(this, _ws1).onmessage = null; } /** * Used for debugging shard stuff. @@ -344,35 +344,35 @@ class Shard extends _utils.Emitter { * @param {number} id The ID of this shard. */ constructor(manager, id){ super(); - _class_private_field_init(this, _serialization1, { + _class_private_field_init._(this, _serialization1, { writable: true, value: void 0 }); - _class_private_field_init(this, _compression1, { + _class_private_field_init._(this, _compression1, { writable: true, value: void 0 }); - _class_private_field_init(this, _seq, { + _class_private_field_init._(this, _seq, { writable: true, value: void 0 }); - _class_private_field_init(this, _closingSeq, { + _class_private_field_init._(this, _closingSeq, { writable: true, value: void 0 }); - _class_private_field_init(this, _bucket, { + _class_private_field_init._(this, _bucket, { writable: true, value: void 0 }); - _class_private_field_init(this, _presenceBucket, { + _class_private_field_init._(this, _presenceBucket, { writable: true, value: void 0 }); - _class_private_field_init(this, _ws1, { + _class_private_field_init._(this, _ws1, { writable: true, value: void 0 }); - _class_private_field_init(this, _queue, { + _class_private_field_init._(this, _queue, { writable: true, value: void 0 }); @@ -404,13 +404,13 @@ class Shard extends _utils.Emitter { * Guilds that are expected to be received. * @type {Set} */ this.expectedGuilds = new Set(); - _class_private_field_set(this, _seq, -1); - _class_private_field_set(this, _closingSeq, 0); - _class_private_field_set(this, _queue, []); - _class_private_field_set(this, _bucket, new _utils.Bucket(120, 6e4, { + _class_private_field_set._(this, _seq, -1); + _class_private_field_set._(this, _closingSeq, 0); + _class_private_field_set._(this, _queue, []); + _class_private_field_set._(this, _bucket, new _utils.Bucket(120, 6e4, { reservedTokens: 5 })); - _class_private_field_set(this, _presenceBucket, new _utils.Bucket(5, 6e4)); + _class_private_field_set._(this, _presenceBucket, new _utils.Bucket(5, 6e4)); } } /** * @typedef {Object} DiscordPacket diff --git a/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js index 3014216db0a9..052e915a8e41 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js @@ -6,10 +6,10 @@ Object.defineProperty(exports, "RequestHandler", { enumerable: true, get: ()=>RequestHandler }); -const _class_private_field_get = require("@swc/helpers/lib/_class_private_field_get.js").default; -const _class_private_field_init = require("@swc/helpers/lib/_class_private_field_init.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _nodefetch = /*#__PURE__*/ _interop_require_default(require("node-fetch")); +const _class_private_field_get = require("@swc/helpers/_/_class_private_field_get"); +const _class_private_field_init = require("@swc/helpers/_/_class_private_field_init"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _nodefetch = /*#__PURE__*/ _interop_require_default._(require("node-fetch")); const _AbortSignal = require("./misc/AbortSignal"); const _errors = require("../../errors"); const _utils = require("../../utils"); @@ -29,7 +29,7 @@ class RequestHandler { * Whether this handler is inactive or not. * @return {boolean} */ get inactive() { - return !_class_private_field_get(this, _queue).remaining && !this._limited; + return !_class_private_field_get._(this, _queue).remaining && !this._limited; } /** * Whether the rate-limit bucket is currently limited. @@ -86,7 +86,7 @@ class RequestHandler { * * @return {Promise<*>} */ async push(url, request) { - await _class_private_field_get(this, _queue).wait(); + await _class_private_field_get._(this, _queue).wait(); try { await this.rest.globalTimeout; if (this._limited) { @@ -108,7 +108,7 @@ class RequestHandler { } return this._make(url, request); } finally{ - _class_private_field_get(this, _queue).next(); + _class_private_field_get._(this, _queue).next(); } } /** @@ -175,7 +175,7 @@ class RequestHandler { * @param {Rest} rest The REST Manager. * @param {string} id The ID of this request handler. */ constructor(rest, id){ - _class_private_field_init(this, _queue, { + _class_private_field_init._(this, _queue, { writable: true, value: new _utils.AsyncQueue() }); diff --git a/crates/swc/tests/fixture/issues-1xxx/1341/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1341/case1/output/index.ts index 5180d2934632..d65f7b37ebd9 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1341/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1341/case1/output/index.ts @@ -2,15 +2,15 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _define_property = require("@swc/helpers/lib/_define_property.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _define_property = require("@swc/helpers/_/_define_property"); class A { foo() { var _this = this; - return _async_to_generator(function*() { + return _async_to_generator._(function*() { try { return yield (function() { - var _ref = _async_to_generator(function*(x) { + var _ref = _async_to_generator._(function*(x) { return x + _this.val; }); return function(x) { @@ -24,7 +24,7 @@ class A { })(); } constructor(){ - _define_property(this, "val", "1"); + _define_property._(this, "val", "1"); } } new A().foo(); diff --git a/crates/swc/tests/fixture/issues-1xxx/1345/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1345/output/index.ts index 25424b1a2bda..37fbad844632 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1345/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1345/output/index.ts @@ -1,6 +1,6 @@ -/** 등록된 계좌+회원의 정보 */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; +/** 등록된 계좌+회원의 정보 */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; export var AccountMemberView = function AccountMemberView() { "use strict"; _class_call_check(this, AccountMemberView); diff --git a/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts index f80771e695c5..bcd5722f7584 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts @@ -6,9 +6,9 @@ Object.defineProperty(exports, "AppController", { enumerable: true, get: ()=>AppController }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; -const _ts_param = require("@swc/helpers/lib/_ts_param.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); +const _ts_param = require("@swc/helpers/_/_ts_param"); const _common = require("@nestjs/common"); const _appservice = require("./app.service"); const _CreateUserDto = require("./dtos/CreateUserDto"); @@ -25,23 +25,23 @@ let AppController = class AppController { this.appService = appService; } }; -_ts_decorate([ +_ts_decorate._([ (0, _common.Get)(), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", []) + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", []) ], AppController.prototype, "getHello", null); -_ts_decorate([ +_ts_decorate._([ (0, _common.Post)(), - _ts_param(0, (0, _common.Body)()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ + _ts_param._(0, (0, _common.Body)()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof _CreateUserDto.CreateUserDto === "undefined" ? Object : _CreateUserDto.CreateUserDto ]) ], AppController.prototype, "create", null); -AppController = _ts_decorate([ +AppController = _ts_decorate._([ (0, _common.Controller)(), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof _appservice.AppService === "undefined" ? Object : _appservice.AppService ]) ], AppController); diff --git a/crates/swc/tests/fixture/issues-1xxx/1421/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1421/case1/output/index.ts index 353c0fdd9535..88d13e4cac64 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1421/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1421/case1/output/index.ts @@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -var _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +var _ts_metadata = require("@swc/helpers/_/_ts_metadata"); require("reflect-metadata"); var COL_KEY = Symbol("col"); var column = function() { @@ -14,9 +14,9 @@ var column = function() { }; var User = function User() { "use strict"; - _class_call_check(this, User); + _class_call_check._(this, User); }; -_ts_decorate([ +_ts_decorate._([ column(), - _ts_metadata("design:type", String) + _ts_metadata._("design:type", String) ], User.prototype, "currency", void 0); diff --git a/crates/swc/tests/fixture/issues-1xxx/1449/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1449/case1/output/index.js index 825d3c99ed68..97bf10e3ec0a 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1449/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1449/case1/output/index.js @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1454/case3/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1454/case3/output/index.ts index af06b3348e5f..8ccfebadc4a7 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1454/case3/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1454/case3/output/index.ts @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var AbstractProviderDeliveryService = function AbstractProviderDeliveryService() { "use strict"; _class_call_check(this, AbstractProviderDeliveryService); diff --git a/crates/swc/tests/fixture/issues-1xxx/1455/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1455/case1/output/index.ts index c27cd22ec2fa..4cd714e373e8 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1455/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1455/case1/output/index.ts @@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); const SampleData = typedModel("SampleVideo", VideosSchema, undefined, undefined, { byPlatform: function() { - var _ref = _async_to_generator(function*(platform) { + var _ref = _async_to_generator._(function*(platform) { const result = yield this.find({ platform: { $eq: platform diff --git a/crates/swc/tests/fixture/issues-1xxx/1455/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1455/case2/output/index.ts index d94139cb2465..f345ff13e909 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1455/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1455/case2/output/index.ts @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var obj = { find: function find(param) { var platform = param.platform; diff --git a/crates/swc/tests/fixture/issues-1xxx/1456/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1456/case1/output/index.ts index 8aa8f636966c..995b914a8262 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1456/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1456/case1/output/index.ts @@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; -const _ts_param = require("@swc/helpers/lib/_ts_param.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); +const _ts_param = require("@swc/helpers/_/_ts_param"); class MyClass1 { constructor(param1){ this.param1 = param1; } } -MyClass1 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass1 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass1); @@ -23,10 +23,10 @@ class MyClass2 { this.param1 = param1; } } -MyClass2 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass2 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass2); @@ -35,10 +35,10 @@ class MyClass3 { this.param1 = param1; } } -MyClass3 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass3 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass3); @@ -47,10 +47,10 @@ class MyClass4 { this.param1 = param1; } } -MyClass4 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass4 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass4); @@ -59,10 +59,10 @@ class MyClass5 { this.param1 = param1; } } -MyClass5 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass5 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass5); @@ -72,11 +72,11 @@ class MyClass6 { this.param2 = param2; } } -MyClass6 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_param(1, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass6 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_param._(1, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected, typeof Injected === "undefined" ? Object : Injected ]) diff --git a/crates/swc/tests/fixture/issues-1xxx/1456/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1456/case2/output/index.ts index 065be195fafa..312641808919 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1456/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1456/case2/output/index.ts @@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; -const _ts_param = require("@swc/helpers/lib/_ts_param.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); +const _ts_param = require("@swc/helpers/_/_ts_param"); class MyClass1 { constructor(param1){} } -MyClass1 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass1 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected ]) ], MyClass1); @@ -21,11 +21,11 @@ class MyClass2 { this.param1 = param1; } } -MyClass2 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_param(1, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass2 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_param._(1, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected, typeof Injected === "undefined" ? Object : Injected ]) @@ -35,11 +35,11 @@ class MyClass3 { this.param2 = param2; } } -MyClass3 = _ts_decorate([ - _ts_param(0, Inject()), - _ts_param(1, Inject()), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ +MyClass3 = _ts_decorate._([ + _ts_param._(0, Inject()), + _ts_param._(1, Inject()), + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ typeof Injected === "undefined" ? Object : Injected, typeof Injected === "undefined" ? Object : Injected ]) diff --git a/crates/swc/tests/fixture/issues-1xxx/1477/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1477/case1/output/index.js index a9a3bdc4c7a4..8a98b28b1d23 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1477/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1477/case1/output/index.js @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f(a, b) { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1490/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1490/case1/output/index.js index 7ae4fd0976e1..a6237c2fb8d8 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1490/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1490/case1/output/index.js @@ -2,25 +2,25 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _create_class = require("@swc/helpers/lib/_create_class.js").default; -var _get = require("@swc/helpers/lib/_get.js").default; -var _get_prototype_of = require("@swc/helpers/lib/_get_prototype_of.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _create_class = require("@swc/helpers/_/_create_class"); +var _get = require("@swc/helpers/_/_get"); +var _get_prototype_of = require("@swc/helpers/_/_get_prototype_of"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _create_super = require("@swc/helpers/_/_create_super"); var ColouredCanvasElement = /*#__PURE__*/ function(CanvasElement1) { "use strict"; - _inherits(ColouredCanvasElement, CanvasElement1); - var _super = _create_super(ColouredCanvasElement); + _inherits._(ColouredCanvasElement, CanvasElement1); + var _super = _create_super._(ColouredCanvasElement); function ColouredCanvasElement() { - _class_call_check(this, ColouredCanvasElement); + _class_call_check._(this, ColouredCanvasElement); return _super.apply(this, arguments); } - _create_class(ColouredCanvasElement, [ + _create_class._(ColouredCanvasElement, [ { key: "createFacets", value: function createFacets(hidden) { - hidden = _get(_get_prototype_of(ColouredCanvasElement.prototype), "createFacets", this).call(this, hidden); + hidden = _get._(_get_prototype_of._(ColouredCanvasElement.prototype), "createFacets", this).call(this, hidden); } } ]); diff --git a/crates/swc/tests/fixture/issues-1xxx/1490/full/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1490/full/output/index.js index 79ba3362b7a6..f93e1194beb4 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1490/full/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1490/full/output/index.js @@ -2,18 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _create_class = require("@swc/helpers/lib/_create_class.js").default; -var _get = require("@swc/helpers/lib/_get.js").default; -var _get_prototype_of = require("@swc/helpers/lib/_get_prototype_of.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _wrap_native_super = require("@swc/helpers/lib/_wrap_native_super.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _create_class = require("@swc/helpers/_/_create_class"); +var _get = require("@swc/helpers/_/_get"); +var _get_prototype_of = require("@swc/helpers/_/_get_prototype_of"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _wrap_native_super = require("@swc/helpers/_/_wrap_native_super"); +var _create_super = require("@swc/helpers/_/_create_super"); var Element = /*#__PURE__*/ function() { function Element() { - _class_call_check(this, Element); + _class_call_check._(this, Element); } - _create_class(Element, [ + _create_class._(Element, [ { key: "getChildElements", value: function getChildElements() { @@ -24,13 +24,13 @@ var Element = /*#__PURE__*/ function() { return Element; }(); var CanvasElement = /*#__PURE__*/ function(Element) { - _inherits(CanvasElement, Element); - var _super = _create_super(CanvasElement); + _inherits._(CanvasElement, Element); + var _super = _create_super._(CanvasElement); function CanvasElement() { - _class_call_check(this, CanvasElement); + _class_call_check._(this, CanvasElement); return _super.apply(this, arguments); } - _create_class(CanvasElement, [ + _create_class._(CanvasElement, [ { key: "createFacets", value: function createFacets(hidden) { @@ -40,19 +40,19 @@ var CanvasElement = /*#__PURE__*/ function(Element) { } ]); return CanvasElement; -}(_wrap_native_super(Element)); +}(_wrap_native_super._(Element)); var ColouredCanvasElement = /*#__PURE__*/ function(CanvasElement) { - _inherits(ColouredCanvasElement, CanvasElement); - var _super = _create_super(ColouredCanvasElement); + _inherits._(ColouredCanvasElement, CanvasElement); + var _super = _create_super._(ColouredCanvasElement); function ColouredCanvasElement() { - _class_call_check(this, ColouredCanvasElement); + _class_call_check._(this, ColouredCanvasElement); return _super.apply(this, arguments); } - _create_class(ColouredCanvasElement, [ + _create_class._(ColouredCanvasElement, [ { key: "createFacets", value: function createFacets(hidden) { - hidden = _get(_get_prototype_of(ColouredCanvasElement.prototype), "createFacets", this).call(this, hidden); /// + hidden = _get._(_get_prototype_of._(ColouredCanvasElement.prototype), "createFacets", this).call(this, hidden); /// /// } } @@ -60,10 +60,10 @@ var ColouredCanvasElement = /*#__PURE__*/ function(CanvasElement) { return ColouredCanvasElement; }(CanvasElement); var ColouredSquare = /*#__PURE__*/ function(ColouredCanvasElement) { - _inherits(ColouredSquare, ColouredCanvasElement); - var _super = _create_super(ColouredSquare); + _inherits._(ColouredSquare, ColouredCanvasElement); + var _super = _create_super._(ColouredSquare); function ColouredSquare() { - _class_call_check(this, ColouredSquare); + _class_call_check._(this, ColouredSquare); return _super.apply(this, arguments); } return ColouredSquare; diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1505/case1/output/index.ts index b2fa88eec544..0474a5b57267 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1505/case1/output/index.ts @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1505/case2/output/index.ts index 88b31d0f93ea..2a44be8427db 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1505/case2/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/case3/output/index.tsx b/crates/swc/tests/fixture/issues-1xxx/1505/case3/output/index.tsx index e3bdcf964b77..0e2a1ac20bf6 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/case3/output/index.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/1505/case3/output/index.tsx @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Component = function Component() { "use strict"; _class_call_check(this, Component); diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/case4/output/index.tsx b/crates/swc/tests/fixture/issues-1xxx/1505/case4/output/index.tsx index 52b277065734..fd6de4cd3623 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/case4/output/index.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/1505/case4/output/index.tsx @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var a = /*#__PURE__*/ function(Component1) { "use strict"; _inherits(a, Component1); diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/case5/output/index.tsx b/crates/swc/tests/fixture/issues-1xxx/1505/case5/output/index.tsx index 58cb85a979ce..e47cb0abae63 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/case5/output/index.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/1505/case5/output/index.tsx @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var withTeamsForUser = function() { var _class = /*#__PURE__*/ function(Component1) { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1505/tsx-default/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1505/tsx-default/output/index.ts index 88b31d0f93ea..2a44be8427db 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1505/tsx-default/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1505/tsx-default/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/fixture/issues-1xxx/1507/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1507/output/index.ts index 86fe30bd4da6..f85d1ca7f2f5 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1507/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1507/output/index.ts @@ -1,4 +1,4 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; import { Entity, BaseEntity } from "typeorm"; export let Location = class Location extends BaseEntity { }; diff --git a/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/index.ts index 5d0d34088bb1..424472bb1da6 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/index.ts @@ -6,12 +6,12 @@ Object.defineProperty(exports, "ServiceError", { enumerable: true, get: ()=>ServiceError }); -const _define_property = require("@swc/helpers/lib/_define_property.js").default; +const _define_property = require("@swc/helpers/_/_define_property"); class ServiceError extends Error { constructor(...args){ super(...args); - _define_property(this, "code", ServiceError.Code.badResponse); - _define_property(this, "name", "ServiceError.BadResponse"); + _define_property._(this, "code", ServiceError.Code.badResponse); + _define_property._(this, "name", "ServiceError.BadResponse"); } } (function(ServiceError1) { @@ -29,8 +29,8 @@ class ServiceError extends Error { constructor(...args){ super(...args); // Service was probably not registered, or using the wrong channel - _define_property(this, "code", 404); - _define_property(this, "name", "ServiceError.ServiceNotFound"); + _define_property._(this, "code", 404); + _define_property._(this, "name", "ServiceError.ServiceNotFound"); } } ServiceError1.ServiceNotFound = ServiceNotFound; diff --git a/crates/swc/tests/fixture/issues-1xxx/1525/case1/output/index.tsx b/crates/swc/tests/fixture/issues-1xxx/1525/case1/output/index.tsx index 27f4cb092d4e..2bffa51f9adf 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1525/case1/output/index.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/1525/case1/output/index.tsx @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _react = /*#__PURE__*/ _interop_require_wildcard(require("react")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); class X extends _react.Component { } _react.default.render(document.getElementById("#root"), /*#__PURE__*/ _react.default.createElement(X, null)); diff --git a/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js index 4a9c4f48870e..37e6fa6cce92 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js @@ -16,5 +16,5 @@ _export(exports, { return _Z.Y; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _Z = /*#__PURE__*/ _interop_require_wildcard(require("./Z")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _Z = /*#__PURE__*/ _interop_require_wildcard._(require("./Z")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js index deb050413251..0f6b581eedcd 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js @@ -19,5 +19,5 @@ _export(exports, { return _module.Z; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _module = /*#__PURE__*/ _interop_require_wildcard(require("./module")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _module = /*#__PURE__*/ _interop_require_wildcard._(require("./module")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1557/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1557/case1/output/index.js index 8c41e8428023..3a26fa44879c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1557/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1557/case1/output/index.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var a = _type_of(0); diff --git a/crates/swc/tests/fixture/issues-1xxx/1575/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1575/case1/output/index.js index 1975782a2207..5137fba01e8b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1575/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1575/case1/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; Vue.component("test", { methods: { onSend: function onSend() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1575/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1575/case2/output/index.js index 7b0a9a4eea2c..c5c533391f6b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1575/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1575/case2/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var obj = { foo: 5, method: function method() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1612/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1612/case1/output/index.ts index 87f4c14bb9e9..f5057c52d4a6 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1612/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1612/case1/output/index.ts @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Test = /*#__PURE__*/ function() { "use strict"; function Test() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1614/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1614/case1/output/index.ts index 783d443aaf78..3a000da1352a 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1614/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1614/case1/output/index.ts @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); (async ()=>{ - const example = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./example"))); + const example = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./example"))); console.log(example.foo); })(); diff --git a/crates/swc/tests/fixture/issues-1xxx/1660/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1660/case1/output/index.js index fded88aff204..67390a856906 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1660/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1660/case1/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; console.log(/*#__PURE__*/ function() { "use strict"; function _class() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1660/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1660/case2/output/index.js index ec21dcb31c9d..79ed0d059301 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1660/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1660/case2/output/index.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; console.log(function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/fixture/issues-1xxx/1660/case3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1660/case3/output/index.js index fded88aff204..67390a856906 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1660/case3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1660/case3/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; console.log(/*#__PURE__*/ function() { "use strict"; function _class() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1660/es3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1660/es3/output/index.js index fded88aff204..67390a856906 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1660/es3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1660/es3/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; console.log(/*#__PURE__*/ function() { "use strict"; function _class() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1660/es5/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1660/es5/output/index.js index fded88aff204..67390a856906 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1660/es5/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1660/es5/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; console.log(/*#__PURE__*/ function() { "use strict"; function _class() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1681/es3/output/input.js b/crates/swc/tests/fixture/issues-1xxx/1681/es3/output/input.js index b544d79d2958..5270266cfb5e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1681/es3/output/input.js +++ b/crates/swc/tests/fixture/issues-1xxx/1681/es3/output/input.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "a\nb\nc\n" diff --git a/crates/swc/tests/fixture/issues-1xxx/1681/es5/output/input.js b/crates/swc/tests/fixture/issues-1xxx/1681/es5/output/input.js index b544d79d2958..5270266cfb5e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1681/es5/output/input.js +++ b/crates/swc/tests/fixture/issues-1xxx/1681/es5/output/input.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "a\nb\nc\n" diff --git a/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts index 325fec352532..5ac8120a18e7 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts @@ -6,10 +6,10 @@ Object.defineProperty(exports, "getPackage", { enumerable: true, get: ()=>getPackage }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _path = require("path"); async function getPackage() { - const pkg = await Promise.resolve((0, _path.join)(process.cwd(), "package.json")).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); + const pkg = await Promise.resolve((0, _path.join)(process.cwd(), "package.json")).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); return pkg.default || pkg; } (async function() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts index 325fec352532..5ac8120a18e7 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts @@ -6,10 +6,10 @@ Object.defineProperty(exports, "getPackage", { enumerable: true, get: ()=>getPackage }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _path = require("path"); async function getPackage() { - const pkg = await Promise.resolve((0, _path.join)(process.cwd(), "package.json")).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); + const pkg = await Promise.resolve((0, _path.join)(process.cwd(), "package.json")).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); return pkg.default || pkg; } (async function() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1694/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1694/case1/output/index.js index 6907eea4d38a..37fe467faa3e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1694/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1694/case1/output/index.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _get = /*#__PURE__*/ new WeakSet(); var MyClass = function MyClass() { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js index 1322034f7673..20a6f6736aa8 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js @@ -8,6 +8,6 @@ Object.defineProperty(exports, "render", { return _customRender.customRender; } }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; +var _export_star = require("@swc/helpers/_/_export_star"); var _customRender = require("./customRender"); -_export_star(require("@testing-library/react"), exports); +_export_star._(require("@testing-library/react"), exports); diff --git a/crates/swc/tests/fixture/issues-1xxx/1718/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1718/case1/output/index.ts index 31f278a15870..5eaa6f7d071f 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1718/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1718/case1/output/index.ts @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function scanUser(groups) { return _scanUser.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1718/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1718/case2/output/index.ts index 724271837b8c..b08941016281 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1718/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1718/case2/output/index.ts @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function scanUser(groups) { return _scanUser.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1721/case1/async-generator/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1721/case1/async-generator/output/index.js index fdf41c8f4f77..ef621cfd9c1d 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1721/case1/async-generator/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1721/case1/async-generator/output/index.js @@ -1,5 +1,5 @@ -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function lol() { return _lol.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1721/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1721/case1/output/index.js index b4723ad02c0f..b4a835ab1d76 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1721/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1721/case1/output/index.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function lol() { return _lol.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-1xxx/1722/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1722/case1/output/index.js index f97ff32dfe95..ea25eaa5c24c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1722/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1722/case1/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; (function() { var _main = _async_to_generator(function() { return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/issues-1xxx/1729/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1729/case1/output/index.ts index 34c1710898a0..e8e383353a71 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1729/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1729/case1/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _construct from "@swc/helpers/src/_construct.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _construct } from "@swc/helpers/_/_construct"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function createConstructor(callback) { var klass; return function() { diff --git a/crates/swc/tests/fixture/issues-1xxx/1734/case1-B/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1734/case1-B/output/index.js index 38fc2f0cfcfd..da5aee23dd8a 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1734/case1-B/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1734/case1-B/output/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _A = /*#__PURE__*/ _interop_require_wildcard(require("./A")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _A = /*#__PURE__*/ _interop_require_wildcard._(require("./A")); console.log(_A.default, _A.foo); diff --git a/crates/swc/tests/fixture/issues-1xxx/1734/case2-C/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1734/case2-C/output/index.js index 2727e737cedb..de319c2866b4 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1734/case2-C/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1734/case2-C/output/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _A = /*#__PURE__*/ _interop_require_wildcard(require("./A")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _A = /*#__PURE__*/ _interop_require_wildcard._(require("./A")); console.log(_A.default, _A.foo); // <-- baz foo diff --git a/crates/swc/tests/fixture/issues-1xxx/1734/case3-D/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1734/case3-D/output/index.js index 38fc2f0cfcfd..da5aee23dd8a 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1734/case3-D/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1734/case3-D/output/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _A = /*#__PURE__*/ _interop_require_wildcard(require("./A")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _A = /*#__PURE__*/ _interop_require_wildcard._(require("./A")); console.log(_A.default, _A.foo); diff --git a/crates/swc/tests/fixture/issues-1xxx/1742/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1742/case1/output/index.js index b4bb20c19902..a816b9dbc182 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1742/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1742/case1/output/index.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "tagged template" diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js index ea8109b83951..12c7462ff31e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js @@ -8,14 +8,14 @@ Object.defineProperty(exports, "default", { return Foo; } }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return /*#__PURE__*/ _react.default.createElement("div", { - onClick: /*#__PURE__*/ _async_to_generator(function(e) { - return _ts_generator(this, function(_state) { + onClick: /*#__PURE__*/ _async_to_generator._(function(e) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js index d93f4d960445..3d6385624b77 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js @@ -6,13 +6,13 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>Foo }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _react = /*#__PURE__*/ _interop_require_default(require("react")); +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return /*#__PURE__*/ _react.default.createElement("div", { onClick: function() { - var _ref = _async_to_generator(function*(e) { + var _ref = _async_to_generator._(function*(e) { yield doSomething(); }); return function(e) { diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js index 987d38bf8403..5f85049932da 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js @@ -6,12 +6,12 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>Foo }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _react = /*#__PURE__*/ _interop_require_default(require("react")); +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return /*#__PURE__*/ _react.default.createElement("div", { - onClick: /*#__PURE__*/ _async_to_generator(function*(e) { + onClick: /*#__PURE__*/ _async_to_generator._(function*(e) { yield doSomething(); }) }); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js index 987d38bf8403..5f85049932da 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js @@ -6,12 +6,12 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>Foo }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _react = /*#__PURE__*/ _interop_require_default(require("react")); +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return /*#__PURE__*/ _react.default.createElement("div", { - onClick: /*#__PURE__*/ _async_to_generator(function*(e) { + onClick: /*#__PURE__*/ _async_to_generator._(function*(e) { yield doSomething(); }) }); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js index 8f48ecd0cf56..9181a2922702 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js @@ -6,8 +6,8 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>Foo }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _react = /*#__PURE__*/ _interop_require_default(require("react")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return /*#__PURE__*/ _react.default.createElement("div", { onClick: async (e)=>{ diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js index 85bebc8c42b2..38326b128318 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js @@ -6,8 +6,8 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>Foo }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _react = /*#__PURE__*/ _interop_require_default(require("react")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return call(async (e)=>{ await doSomething(); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js index 7c6db2d70915..44e7a14ac4f7 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js @@ -8,13 +8,13 @@ Object.defineProperty(exports, "default", { return Foo; } }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { - return call(/*#__PURE__*/ _async_to_generator(function(e) { - return _ts_generator(this, function(_state) { + return call(/*#__PURE__*/ _async_to_generator._(function(e) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js index 7ce9de2541ef..983c318e6869 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js @@ -8,8 +8,8 @@ Object.defineProperty(exports, "default", { return Foo; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); function Foo() { return call(function(e) { doSomething(); diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case1-js/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1859/case1-js/output/index.js index 2d15452ceb6d..6d2620f12308 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case1-js/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case1-js/output/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; -_export_star(require("./app.config"), exports); -_export_star(require("./database.config"), exports); +var _export_star = require("@swc/helpers/_/_export_star"); +_export_star._(require("./app.config"), exports); +_export_star._(require("./database.config"), exports); diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case2-ts/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1859/case2-ts/output/index.ts index 2d15452ceb6d..6d2620f12308 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case2-ts/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case2-ts/output/index.ts @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; -_export_star(require("./app.config"), exports); -_export_star(require("./database.config"), exports); +var _export_star = require("@swc/helpers/_/_export_star"); +_export_star._(require("./app.config"), exports); +_export_star._(require("./database.config"), exports); diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/index.ts index cc9c708f93e4..d17512404864 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/index.ts @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _lib = /*#__PURE__*/ _interop_require_wildcard(require("./lib")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _lib = /*#__PURE__*/ _interop_require_wildcard._(require("./lib")); console.log(_lib); diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/lib.ts b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/lib.ts index 1d3e9c9bf9fc..c0c7f4028735 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/lib.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/lib.ts @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; -_export_star(require("./foo"), exports); -_export_star(require("./bar"), exports); +var _export_star = require("@swc/helpers/_/_export_star"); +_export_star._(require("./foo"), exports); +_export_star._(require("./bar"), exports); diff --git a/crates/swc/tests/fixture/issues-1xxx/1869/decorator/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1869/decorator/output/index.ts index a2f5ca0176ca..8ece080ef536 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1869/decorator/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1869/decorator/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; var _TestClass; var TestClass = (_TestClass = function TestClass() { "use strict"; diff --git a/crates/swc/tests/fixture/issues-1xxx/1918/es2016/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1918/es2016/output/index.js index 548ebea39963..157bca5ad12b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1918/es2016/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1918/es2016/output/index.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; _async_to_generator(function*() { let counter = 0; let resolve; diff --git a/crates/swc/tests/fixture/issues-1xxx/1918/es5-after-other/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1918/es5-after-other/output/index.js index 72f76c14033c..d67777458539 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1918/es5-after-other/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1918/es5-after-other/output/index.js @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _define_property = require("@swc/helpers/lib/_define_property.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _define_property = require("@swc/helpers/_/_define_property"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); function _asyncIterator(iterable) { var method; if (typeof Symbol === "function") { @@ -49,14 +49,14 @@ function _asyncToGenerator(fn) { } _asyncToGenerator(function() { var counter, resolve, promise, iterable, res, _i, _iter, v, oldresolve; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: counter = 0; promise = new Promise(function(r) { return resolve = r; }); - iterable = _define_property({}, Symbol.asyncIterator, function() { + iterable = _define_property._({}, Symbol.asyncIterator, function() { return { next: function next() { return promise; @@ -65,7 +65,7 @@ _asyncToGenerator(function() { }); res = _asyncToGenerator(function() { var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, value, err; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: _iteratorAbruptCompletion = false, _didIteratorError = false; diff --git a/crates/swc/tests/fixture/issues-1xxx/1918/es5/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1918/es5/output/index.js index 106920c17b86..026e9d3eeb69 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1918/es5/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1918/es5/output/index.js @@ -2,29 +2,29 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _async_iterator = require("@swc/helpers/lib/_async_iterator.js").default; -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _define_property = require("@swc/helpers/lib/_define_property.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; -_async_to_generator(function() { +var _async_iterator = require("@swc/helpers/_/_async_iterator"); +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _define_property = require("@swc/helpers/_/_define_property"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); +_async_to_generator._(function() { var counter, resolve, promise, iterable, res, _i, _iter, v, oldresolve; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: counter = 0; promise = new Promise(function(r) { return resolve = r; }); - iterable = _define_property({}, Symbol.asyncIterator, function() { + iterable = _define_property._({}, Symbol.asyncIterator, function() { return { next: function next() { return promise; } }; }); - res = _async_to_generator(function() { + res = _async_to_generator._(function() { var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, value, err; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: _iteratorAbruptCompletion = false, _didIteratorError = false; @@ -36,7 +36,7 @@ _async_to_generator(function() { 7, 12 ]); - _iterator = _async_iterator(iterable); + _iterator = _async_iterator._(iterable); _state.label = 2; case 2: return [ diff --git a/crates/swc/tests/fixture/issues-1xxx/1924/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1924/case1/output/index.js index 9e73133396c5..02d85e89df52 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1924/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1924/case1/output/index.js @@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _ts_generator = require("@swc/helpers/_/_ts_generator"); function foo() { - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { return [ 2 ]; diff --git a/crates/swc/tests/fixture/issues-1xxx/1938/cjs/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1938/cjs/output/index.js index 5d12e064d9f7..e520e6a43813 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1938/cjs/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1938/cjs/output/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _actions = /*#__PURE__*/ _interop_require_wildcard(require("./actions")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _actions = /*#__PURE__*/ _interop_require_wildcard._(require("./actions")); console.log(_actions); console.log(_actions.default); diff --git a/crates/swc/tests/fixture/issues-1xxx/pr-1524/comment-1/output/index.tsx b/crates/swc/tests/fixture/issues-1xxx/pr-1524/comment-1/output/index.tsx index 12d3bc181cd1..57b0da9c66cf 100644 --- a/crates/swc/tests/fixture/issues-1xxx/pr-1524/comment-1/output/index.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/pr-1524/comment-1/output/index.tsx @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function Bar() { var _useState = _sliced_to_array(useState(0), 2), foo = _useState[0], setFoo = _useState[1]; // @refresh reset diff --git a/crates/swc/tests/fixture/issues-1xxx/pr-1579/checkingExtend/output/index.js b/crates/swc/tests/fixture/issues-1xxx/pr-1579/checkingExtend/output/index.js index 14fedfabcaf2..51022caa0cd3 100644 --- a/crates/swc/tests/fixture/issues-1xxx/pr-1579/checkingExtend/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/pr-1579/checkingExtend/output/index.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var a = {}; var b = _extends({}, _object_destructuring_empty(a)); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2016/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2016/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2016/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2016/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2017/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2017/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2017/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2017/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2018/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2018/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2018/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2018/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2019/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2019/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2019/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2019/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2020/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2020/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2020/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2020/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/es2021/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/es2021/output/index.js index 0d55192c0920..fbe99e9deac9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/es2021/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/es2021/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Item extends Component { constructor(props){ super(props); diff --git a/crates/swc/tests/fixture/issues-2xxx/2021/full/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2021/full/output/index.js index dfbb0ae98b26..aeb1bde57343 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2021/full/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2021/full/output/index.js @@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _define_property = require("@swc/helpers/lib/_define_property.js").default; +const _define_property = require("@swc/helpers/_/_define_property"); class Item extends Component { constructor(props){ super(props); - _define_property(this, "input", this.props.item); + _define_property._(this, "input", this.props.item); } } diff --git a/crates/swc/tests/fixture/issues-2xxx/2024/es2016/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2024/es2016/output/index.js index 332e1a6d79b8..bdb33e742559 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2024/es2016/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2024/es2016/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; _async_to_generator(function*() { const sleep = ()=>new Promise((resolve)=>setTimeout(()=>resolve(undefined), 500)); const result = (yield sleep()) || "fallback"; diff --git a/crates/swc/tests/fixture/issues-2xxx/2024/full/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2024/full/output/index.js index 3657e18d344c..7ed690b58e6e 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2024/full/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2024/full/output/index.js @@ -2,11 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; -_async_to_generator(function() { +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); +_async_to_generator._(function() { var sleep, result; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: sleep = function() { diff --git a/crates/swc/tests/fixture/issues-2xxx/2024/no-module/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2024/no-module/output/index.js index 10ff471375aa..3d9643d2462c 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2024/no-module/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2024/no-module/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; _async_to_generator(function() { var sleep, result; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/issues-2xxx/2050/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2050/output/index.ts index 175c516577a8..637fa5b3ca09 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2050/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2050/output/index.ts @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _A = /*#__PURE__*/ _interop_require_default(require("./subfolder/A")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _A = /*#__PURE__*/ _interop_require_default._(require("./subfolder/A")); console.log(_A.default); diff --git a/crates/swc/tests/fixture/issues-2xxx/2056/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2056/1/output/index.js index 3e5ea2869030..cdabf22170de 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2056/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2056/1/output/index.js @@ -24,8 +24,8 @@ */ /** * @packageDocumentation * @module core/math - */ import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; + */ import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; import { CCClass } from "../data/class"; import { Mat3 } from "./mat3"; import { Quat } from "./quat"; diff --git a/crates/swc/tests/fixture/issues-2xxx/2091/case1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2091/case1/output/index.js index 992a1d4c170e..fbf901fb7c7f 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2091/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2091/case1/output/index.js @@ -1 +1 @@ -import _create_for_of_iterator_helper_loose from"@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs";export function test(list){var cur=list.findIndex(function(p){return 1==p});~cur||(cur=list.findIndex(function(p){return 0!==p}));for(var _step,_iterator=_create_for_of_iterator_helper_loose(list);!(_step=_iterator()).done;)cur+=_step.value.value;return cur} +import{_ as _create_for_of_iterator_helper_loose}from"@swc/helpers/_/_create_for_of_iterator_helper_loose";export function test(list){var cur=list.findIndex(function(p){return 1==p});~cur||(cur=list.findIndex(function(p){return 0!==p}));for(var _step,_iterator=_create_for_of_iterator_helper_loose(list);!(_step=_iterator()).done;)cur+=_step.value.value;return cur} diff --git a/crates/swc/tests/fixture/issues-2xxx/2139/output/index.tsx b/crates/swc/tests/fixture/issues-2xxx/2139/output/index.tsx index 60399d62422b..2422be9cb52e 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2139/output/index.tsx +++ b/crates/swc/tests/fixture/issues-2xxx/2139/output/index.tsx @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class ReusablePayments extends PureComponent { componentDidMount() { this.setDefaultReusablePayment(); diff --git a/crates/swc/tests/fixture/issues-2xxx/2164/es2015/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2164/es2015/output/index.js index 3f8037934f60..e5796b7f7365 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2164/es2015/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2164/es2015/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-2xxx/2164/es2016/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2164/es2016/output/index.js index 3f8037934f60..e5796b7f7365 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2164/es2016/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2164/es2016/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-2xxx/2164/es5/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2164/es5/output/index.js index 9cd389ac1f0c..d1150dac415a 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2164/es5/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2164/es5/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-2xxx/2232/case1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2232/case1/output/index.js index 9975f02b0846..7232fbcf5cbb 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2232/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2232/case1/output/index.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/fixture/issues-2xxx/2232/case2/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2232/case2/output/index.ts index 0a6b59a8ed5b..8f0dcaaa69fc 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2232/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2232/case2/output/index.ts @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var resolver = { sendSomeMessage: function sendSomeMessage(_parent, _param, _param1) { return _async_to_generator(function() { diff --git a/crates/swc/tests/fixture/issues-2xxx/2248/es5/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2248/es5/output/index.js index 8feb2306fe75..f9ed5c8b7485 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2248/es5/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2248/es5/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; export var foo = function() { var _ref = _async_to_generator(function() { return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/issues-2xxx/2336/output/input.tsx b/crates/swc/tests/fixture/issues-2xxx/2336/output/input.tsx index 68d3ec2f8b5b..94c8cce95072 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2336/output/input.tsx +++ b/crates/swc/tests/fixture/issues-2xxx/2336/output/input.tsx @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _createQuery = _sliced_to_array(createQuery(), 2); export var useQuery = _createQuery[0], query = _createQuery[1].query; var _createMutation = _sliced_to_array(createMutation(), 2); diff --git a/crates/swc/tests/fixture/issues-2xxx/2413/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2413/1/output/index.js index 2711c632931f..0fd7681a2ce2 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2413/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2413/1/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var handleSubmit = useMutation(/*#__PURE__*/ _async_to_generator(function() { var res, param, errors; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/issues-2xxx/2428/1/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2428/1/output/index.ts index 6b01cf7aed5f..38b959de44d0 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2428/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2428/1/output/index.ts @@ -2,33 +2,33 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -const _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; -const _ts_param = require("@swc/helpers/lib/_ts_param.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +const _ts_metadata = require("@swc/helpers/_/_ts_metadata"); +const _ts_param = require("@swc/helpers/_/_ts_param"); class Foo { fnName1(argName) { - return _async_to_generator(function*() {})(); + return _async_to_generator._(function*() {})(); } fnName2(argName = false) { - return _async_to_generator(function*() {})(); + return _async_to_generator._(function*() {})(); } } -_ts_decorate([ - _ts_param(0, Arg("GraphQLArgName", { +_ts_decorate._([ + _ts_param._(0, Arg("GraphQLArgName", { nullable: true })), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ Boolean ]) ], Foo.prototype, "fnName1", null); -_ts_decorate([ - _ts_param(0, Arg("GraphQLArgName", { +_ts_decorate._([ + _ts_param._(0, Arg("GraphQLArgName", { nullable: true })), - _ts_metadata("design:type", Function), - _ts_metadata("design:paramtypes", [ + _ts_metadata._("design:type", Function), + _ts_metadata._("design:paramtypes", [ Boolean ]) ], Foo.prototype, "fnName2", null); diff --git a/crates/swc/tests/fixture/issues-2xxx/2468/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2468/1/output/index.js index b9e54e3d54a8..4d7a9068aae7 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2468/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2468/1/output/index.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "1" diff --git a/crates/swc/tests/fixture/issues-2xxx/2476/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2476/1/output/index.js index eb9aba623706..1c1d3c372f53 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2476/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2476/1/output/index.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/fixture/issues-2xxx/2531/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2531/1/output/index.js index 61e684c71753..4cbb0ee367fb 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2531/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2531/1/output/index.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; var items = []; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { diff --git a/crates/swc/tests/fixture/issues-2xxx/2531/2/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2531/2/output/index.js index 88e487b7dd43..05686a71b32d 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2531/2/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2531/2/output/index.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; const items = []; for (const _ref of items){ var item = _ref; diff --git a/crates/swc/tests/fixture/issues-2xxx/2717/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2717/output/index.ts index 9457106f2fe3..6acba6b2b38b 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2717/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2717/output/index.ts @@ -1,24 +1,24 @@ -import e from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as e } from "@swc/helpers/_/_ts_generator"; import { takeLatest as t, select as r } from "redux-saga/effects"; -import { CHANGE_THEME as s, CHANGE_THEME_CUSTOM_PALETTE as o, CHANGE_THEME_SWITCH_MODE as c } from "core/actions/changeTheme"; +import { CHANGE_THEME as o, CHANGE_THEME_CUSTOM_PALETTE as s, CHANGE_THEME_SWITCH_MODE as a } from "core/actions/changeTheme"; export var selectThemeObject = function(e) { return e.theme; }; export function saveTheme(t) { - var s, o, n; + var o, s, n; return e(this, function(e) { switch(e.label){ case 0: - return s = t.type, [ + return o = t.type, [ 4, r(selectThemeObject) ]; case 1: - return o = e.sent(), window.localStorage.setItem("theme", JSON.stringify({ - theme: o.theme, - mode: o.mode, - palette: o.palette - })), s === c && (n = window.document.querySelector("body")) && (n.classList.add("light" === o.mode ? "light" : "dark"), n.classList.remove("light" === o.mode ? "dark" : "light")), [ + return s = e.sent(), window.localStorage.setItem("theme", JSON.stringify({ + theme: s.theme, + mode: s.mode, + palette: s.palette + })), o === a && (n = window.document.querySelector("body")) && (n.classList.add("light" === s.mode ? "light" : "dark"), n.classList.remove("light" === s.mode ? "dark" : "light")), [ 2 ]; } @@ -31,9 +31,9 @@ export default function n() { return [ 4, t([ - s, o, - c + s, + a ], saveTheme) ]; case 1: diff --git a/crates/swc/tests/fixture/issues-2xxx/2758/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2758/1/output/index.js index b810d8c27dc8..ca6436f137a9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2758/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2758/1/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; const obj = { // A comment foo () { diff --git a/crates/swc/tests/fixture/issues-2xxx/2822/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2822/1/output/index.js index 757a24dffc3c..12dedb2fa491 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2822/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2822/1/output/index.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ '"!"4' diff --git a/crates/swc/tests/fixture/issues-2xxx/2844/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2844/output/index.js index 8c213f8b578f..d614f7b7507a 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2844/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2844/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var X = /*#__PURE__*/ function() { "use strict"; function X() { diff --git a/crates/swc/tests/fixture/issues-2xxx/2856/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2856/1/output/index.js index 69ca0402b262..7e36657f3179 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2856/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2856/1/output/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _boo = /*#__PURE__*/ _interop_require_wildcard(require("boo")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _boo = /*#__PURE__*/ _interop_require_wildcard._(require("boo")); _boo.default.some(); (0, _boo.sdx)(); diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts index 921554ddbafe..89be3f938be0 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts @@ -13,11 +13,11 @@ _export(exports, { badIstanbul: ()=>badIstanbul, downloadDocument: ()=>downloadDocument }); -const _object_without_properties = require("@swc/helpers/lib/_object_without_properties.js").default; +const _object_without_properties = require("@swc/helpers/_/_object_without_properties"); //top comment const noop = ()=>{}; /* istanbul ignore next */ const badIstanbul = (test)=>{ - const { value } = test, pixelParams = _object_without_properties(test, [ + const { value } = test, pixelParams = _object_without_properties._(test, [ "value" ]); console.log("fail"); diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-3/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-3/output/index.ts index c50e31745e8b..a973d0df9052 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2964/case-3/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-3/output/index.ts @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _object_without_properties = require("@swc/helpers/lib/_object_without_properties.js").default; +const _object_without_properties = require("@swc/helpers/_/_object_without_properties"); const x = (_param)=>/*todo: refactor any type*/ { - var { y } = _param, rest = _object_without_properties(_param, [ + var { y } = _param, rest = _object_without_properties._(_param, [ "y" ]); return { diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts index cd909fff9e14..7c70e6d55f83 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts @@ -13,11 +13,11 @@ _export(exports, { b: ()=>b, foo: ()=>foo }); -const _extends = require("@swc/helpers/lib/_extends.js").default; -const _object_destructuring_empty = require("@swc/helpers/lib/_object_destructuring_empty.js").default; +const _extends = require("@swc/helpers/_/_extends"); +const _object_destructuring_empty = require("@swc/helpers/_/_object_destructuring_empty"); const a = 1; const b = 2; -var foo = _extends({}, _object_destructuring_empty({ +var foo = _extends._({}, _object_destructuring_empty._({ a: 1, b: 2 })); diff --git a/crates/swc/tests/fixture/issues-2xxx/2990/1/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2990/1/output/index.ts index 20e99796c60b..460907042db9 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2990/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2990/1/output/index.ts @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Game { constructor(){ _define_property(this, "private", void 0); diff --git a/crates/swc/tests/fixture/issues-2xxx/2990/2/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2990/2/output/index.ts index 5ca3940db8c2..b7c68183f4b5 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2990/2/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2990/2/output/index.ts @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Foo { constructor(){ _define_property(this, "public", void 0); diff --git a/crates/swc/tests/fixture/issues-3xxx/3055/1/output/index.ts b/crates/swc/tests/fixture/issues-3xxx/3055/1/output/index.ts index e2b2fe71ab11..9b37a8f2bcda 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3055/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3055/1/output/index.ts @@ -1,6 +1,6 @@ -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _link = /*#__PURE__*/ new WeakSet(); export class Node { link() { diff --git a/crates/swc/tests/fixture/issues-3xxx/3272/1/output/index.js b/crates/swc/tests/fixture/issues-3xxx/3272/1/output/index.js index 26f0b0d47046..f959a20cc7a7 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3272/1/output/index.js +++ b/crates/swc/tests/fixture/issues-3xxx/3272/1/output/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _handlebars = /*#__PURE__*/ _interop_require_default(require("handlebars")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _handlebars = /*#__PURE__*/ _interop_require_default._(require("handlebars")); console.log(_handlebars.default); diff --git a/crates/swc/tests/fixture/issues-3xxx/3337/output/index.ts b/crates/swc/tests/fixture/issues-3xxx/3337/output/index.ts index f5f714b32b17..8f3d2b11dce6 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3337/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3337/output/index.ts @@ -2,18 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _define_property = require("@swc/helpers/lib/_define_property.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; -var _ts_metadata = require("@swc/helpers/lib/_ts_metadata.js").default; -var _joiful = /*#__PURE__*/ _interop_require_wildcard(require("joiful")); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _define_property = require("@swc/helpers/_/_define_property"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _ts_decorate = require("@swc/helpers/_/_ts_decorate"); +var _ts_metadata = require("@swc/helpers/_/_ts_metadata"); +var _joiful = /*#__PURE__*/ _interop_require_wildcard._(require("joiful")); var Schema = function Schema() { "use strict"; - _class_call_check(this, Schema); - _define_property(this, "id", void 0); + _class_call_check._(this, Schema); + _define_property._(this, "id", void 0); }; -_ts_decorate([ +_ts_decorate._([ _joiful.string().guid().required(), - _ts_metadata("design:type", String) + _ts_metadata._("design:type", String) ], Schema.prototype, "id", void 0); diff --git a/crates/swc/tests/fixture/issues-3xxx/3609/1/output/index.js b/crates/swc/tests/fixture/issues-3xxx/3609/1/output/index.js index c07a092b21d8..e06305d079e7 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3609/1/output/index.js +++ b/crates/swc/tests/fixture/issues-3xxx/3609/1/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; let _ref = `lit${"lit"}`, _ref1 = `tpl${`tpl`}`, _ref2 = `lit${1 + 1}`, _ref3 = `complex${"123".length()}`; class Foo { constructor(){ diff --git a/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts b/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts index 938fc8916a50..53cab48f7450 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts @@ -6,17 +6,17 @@ Object.defineProperty(exports, "ServiceError", { enumerable: true, get: ()=>ServiceError }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); const CD = ()=>{}; const PD = ()=>{}; let ServiceError = class ServiceError1 extends Error { code = ServiceError.Code.badResponse; name = "ServiceError.BadResponse"; }; -_ts_decorate([ +_ts_decorate._([ PD ], ServiceError.prototype, "code", void 0); -ServiceError = _ts_decorate([ +ServiceError = _ts_decorate._([ CD ], ServiceError); (function(ServiceError1) { diff --git a/crates/swc/tests/fixture/issues-4xxx/4006/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4006/1/output/index.ts index 21e128b30b82..887ce680939d 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4006/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4006/1/output/index.ts @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { html, css, LitElement } from "lit"; export class App extends LitElement { render() { diff --git a/crates/swc/tests/fixture/issues-4xxx/4021/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4021/output/index.ts index a396641405b9..4264abcb4487 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4021/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4021/output/index.ts @@ -1,4 +1,4 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; var N; (function(N) { let C1 = class C1 { diff --git a/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts index 329368f50aba..08239ae081e6 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts @@ -1,8 +1,8 @@ define([ "require", "exports", - "@swc/helpers/src/_define_property.mjs", - "@swc/helpers/src/_ts_decorate.mjs" + "@swc/helpers/_/_define_property", + "@swc/helpers/_/_ts_decorate" ], function(require, exports, _define_property, _ts_decorate) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -12,8 +12,6 @@ define([ enumerable: true, get: ()=>_class }); - _define_property = _define_property.default; - _ts_decorate = _ts_decorate.default; function state() {} class Controller { } @@ -21,10 +19,10 @@ define([ onChange() {} constructor(...args){ super(...args); - _define_property(this, "isTest", false); + _define_property._(this, "isTest", false); } } - _ts_decorate([ + _ts_decorate._([ state ], _class.prototype, "isTest", void 0); }); diff --git a/crates/swc/tests/fixture/issues-4xxx/4108/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4108/1/output/index.ts index caf20e541753..c112d63a6c1e 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4108/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4108/1/output/index.ts @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; import { Transaction } from "@solana/web3.js"; import { WalletNotConnectedError } from "@solana/wallet-adapter-base"; export var getErrorForTransaction = function() { diff --git a/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts index 3d0f49073718..62f3dba164b1 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts @@ -6,12 +6,12 @@ Object.defineProperty(exports, "default", { enumerable: true, get: ()=>_class }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); function test(constructor) { console.log(constructor); } let _class = class _class { }; -_class = _ts_decorate([ +_class = _ts_decorate._([ test ], _class); diff --git a/crates/swc/tests/fixture/issues-4xxx/4127/2/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4127/2/output/index.ts index 4fbe67d2f9f6..0e94c0077e75 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4127/2/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4127/2/output/index.ts @@ -1,4 +1,4 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; function test(constructor) { console.log(constructor); } diff --git a/crates/swc/tests/fixture/issues-4xxx/4208/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4208/1/output/index.ts index 2a0cd3f2cee9..455c67e8f618 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4208/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4208/1/output/index.ts @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; export var CompanyBgStore = function CompanyBgStore() { "use strict"; _class_call_check(this, CompanyBgStore); diff --git a/crates/swc/tests/fixture/issues-4xxx/4224/1/output/index.js b/crates/swc/tests/fixture/issues-4xxx/4224/1/output/index.js index 483806724240..03aaa597bd02 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4224/1/output/index.js +++ b/crates/swc/tests/fixture/issues-4xxx/4224/1/output/index.js @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/fixture/issues-4xxx/4224/2/output/index.js b/crates/swc/tests/fixture/issues-4xxx/4224/2/output/index.js index 758ce9f024c5..4254e1f230d1 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4224/2/output/index.js +++ b/crates/swc/tests/fixture/issues-4xxx/4224/2/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class A { constructor(){ var _this = this; diff --git a/crates/swc/tests/fixture/issues-4xxx/4224/3/output/index.js b/crates/swc/tests/fixture/issues-4xxx/4224/3/output/index.js index f8ab63d31daa..665550c85b20 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4224/3/output/index.js +++ b/crates/swc/tests/fixture/issues-4xxx/4224/3/output/index.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/fixture/issues-4xxx/4226/1/output/exec.js b/crates/swc/tests/fixture/issues-4xxx/4226/1/output/exec.js index 83294b765c7f..07a9c2d10773 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4226/1/output/exec.js +++ b/crates/swc/tests/fixture/issues-4xxx/4226/1/output/exec.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; import "reflect-metadata"; var v0 = function() { var _ref = _async_to_generator(function(v1) { diff --git a/crates/swc/tests/fixture/issues-4xxx/4226/2/output/exec.js b/crates/swc/tests/fixture/issues-4xxx/4226/2/output/exec.js index 0503d650a7b1..cd7eb0138134 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4226/2/output/exec.js +++ b/crates/swc/tests/fixture/issues-4xxx/4226/2/output/exec.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; import "reflect-metadata"; const v0 = function() { var _ref = _async_to_generator(function*(v1) { diff --git a/crates/swc/tests/fixture/issues-4xxx/4226/3/output/exec.js b/crates/swc/tests/fixture/issues-4xxx/4226/3/output/exec.js index 9573329f757e..e0850947b01e 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4226/3/output/exec.js +++ b/crates/swc/tests/fixture/issues-4xxx/4226/3/output/exec.js @@ -2,12 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); require("reflect-metadata"); var v0 = function() { - var _ref = _async_to_generator(function(v1) { - return _ts_generator(this, function(_state) { + var _ref = _async_to_generator._(function(v1) { + return _ts_generator._(this, function(_state) { return [ 2, v1 diff --git a/crates/swc/tests/fixture/issues-4xxx/4891/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4891/output/index.ts index 1bd0932e6cde..c1fefb668a35 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4891/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4891/output/index.ts @@ -1,5 +1,5 @@ -import _class_private_field_loose_base from "@swc/helpers/src/_class_private_field_loose_base.mjs"; -import _class_private_field_loose_key from "@swc/helpers/src/_class_private_field_loose_key.mjs"; +import { _ as _class_private_field_loose_base } from "@swc/helpers/_/_class_private_field_loose_base"; +import { _ as _class_private_field_loose_key } from "@swc/helpers/_/_class_private_field_loose_key"; var _channelName = _class_private_field_loose_key("_channelName"), _listeners = _class_private_field_loose_key("_listeners"); export class LocalStorageChannel { constructor(channelName){ diff --git a/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts index eee67f7bfb53..9862ede3f4c4 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts @@ -1,9 +1,8 @@ define([ "require", - "@swc/helpers/src/_ts_decorate.mjs" + "@swc/helpers/_/_ts_decorate" ], function(require, _ts_decorate) { "use strict"; - _ts_decorate = _ts_decorate.default; function es5ClassCompat(target) { function _() { return Reflect.construct(target, arguments, this.constructor); @@ -19,7 +18,7 @@ define([ } constructor(){} }; - Foo = _ts_decorate([ + Foo = _ts_decorate._([ es5ClassCompat ], Foo); }); diff --git a/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts index d59c4250690c..aa9a1b6d2025 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts @@ -6,6 +6,6 @@ Object.defineProperty(exports, "flakySuite", { enumerable: true, get: ()=>flakySuite }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _testUtils = /*#__PURE__*/ _interop_require_wildcard(require("vs/base/test/common/testUtils")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _testUtils = /*#__PURE__*/ _interop_require_wildcard._(require("vs/base/test/common/testUtils")); var flakySuite = _testUtils.flakySuite; diff --git a/crates/swc/tests/fixture/issues-5xxx/5068/1/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5068/1/output/index.js index be62302addc0..47e05eca3d00 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5068/1/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5068/1/output/index.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "\n position: absolute;\n" diff --git a/crates/swc/tests/fixture/issues-5xxx/5068/2/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5068/2/output/index.js index 23f50124eff5..3b88ebdebb68 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5068/2/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5068/2/output/index.js @@ -1,9 +1,9 @@ -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var n = _tagged_template_literal([ "\n position: absolute;\n" ]); - _templateObject = function r() { + _templateObject = function t() { return n; }; return n; @@ -12,7 +12,7 @@ function _templateObject1() { var n = _tagged_template_literal([ "\n position: absolute;\n" ]); - _templateObject1 = function r() { + _templateObject1 = function t() { return n; }; return n; diff --git a/crates/swc/tests/fixture/issues-5xxx/5102/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5102/output/index.js index 0d0af8dfa944..2822227d7fc6 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5102/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5102/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var a = function a() { "use strict"; _class_call_check(this, a); diff --git a/crates/swc/tests/fixture/issues-5xxx/5189/1/output/index.ts b/crates/swc/tests/fixture/issues-5xxx/5189/1/output/index.ts index d368b1c46c24..33ede0cbcc13 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5189/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-5xxx/5189/1/output/index.ts @@ -2,13 +2,13 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _ts_decorate = require("@swc/helpers/lib/_ts_decorate.js").default; +const _ts_decorate = require("@swc/helpers/_/_ts_decorate"); const sym = Symbol("sym"); var _key; _key = sym; class Cls { [_key]() {} } -_ts_decorate([ +_ts_decorate._([ Memoize() ], Cls.prototype, _key, null); diff --git a/crates/swc/tests/fixture/issues-5xxx/5258/output/index.ts b/crates/swc/tests/fixture/issues-5xxx/5258/output/index.ts index 85398fe095a4..6273344632f7 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5258/output/index.ts +++ b/crates/swc/tests/fixture/issues-5xxx/5258/output/index.ts @@ -1,16 +1,14 @@ define([ "require", "exports", - "@swc/helpers/src/_define_property.mjs", - "@swc/helpers/src/_ts_decorate.mjs" + "@swc/helpers/_/_define_property", + "@swc/helpers/_/_ts_decorate" ], function(require, exports, _define_property, _ts_decorate) { "use strict"; Object.defineProperty(exports, "FileSystemError", { enumerable: true, get: ()=>FileSystemError }); - _define_property = _define_property.default; - _ts_decorate = _ts_decorate.default; function es5ClassCompat(target) { function _() { return Reflect.construct(target, arguments, this.constructor); @@ -41,7 +39,7 @@ define([ } constructor(uriOrMessage, code = FileSystemProviderErrorCode.Unknown, terminator){ super(URI.isUri(uriOrMessage) ? uriOrMessage.toString(true) : uriOrMessage); - _define_property(this, "code", void 0); + _define_property._(this, "code", void 0); this.code = terminator?.name ?? 'Unknown'; markAsFileSystemProviderError(this, code); if (typeof Object.setPrototypeOf === 'function') { @@ -52,7 +50,7 @@ define([ } } }; - FileSystemError = _ts_decorate([ + FileSystemError = _ts_decorate._([ es5ClassCompat ], FileSystemError); }); diff --git a/crates/swc/tests/fixture/issues-5xxx/5313/1/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5313/1/output/index.js index 59e59af3646a..1d43c0a86ff1 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5313/1/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5313/1/output/index.js @@ -2,12 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); function a() { return _a.apply(this, arguments); } function _a() { - _a = _async_to_generator(function*() { + _a = _async_to_generator._(function*() { return true && (yield b)(); }); return _a.apply(this, arguments); diff --git a/crates/swc/tests/fixture/issues-5xxx/5556/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5556/output/index.js index 51597378cf59..a2ac04320d6c 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5556/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5556/output/index.js @@ -1,4 +1,4 @@ -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var app; var ctx; x = function x() { diff --git a/crates/swc/tests/fixture/issues-5xxx/5557/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5557/output/index.js index 02b4e9ee6df6..efdec9443156 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5557/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5557/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var commands; var command; function retornaTempoArenaEmMilisegundos(distancia, velocidade) { diff --git a/crates/swc/tests/fixture/issues-5xxx/5558/1/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5558/1/output/index.js index 4c735d884978..b9d741ddd0b5 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5558/1/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5558/1/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class Foo { bar(x = /*#__PURE__*/ _async_to_generator(function*() { return yield 1; diff --git a/crates/swc/tests/fixture/issues-5xxx/5558/2/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5558/2/output/index.js index 068468343d1c..79c0da1346a4 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5558/2/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5558/2/output/index.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/fixture/issues-5xxx/5596/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5596/output/index.js index a05ebac321fa..59b74fe2ab22 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5596/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5596/output/index.js @@ -1,7 +1,7 @@ -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class Base { superMethod() { return 'good'; diff --git a/crates/swc/tests/fixture/issues-5xxx/5608/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5608/output/index.js index 572ce246f0ea..0834def30ecf 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5608/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5608/output/index.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; import { jsx as c } from "react/jsx-runtime"; import i from "react-markdown"; var o = function(r) { diff --git a/crates/swc/tests/fixture/issues-5xxx/5626/output/index.ts b/crates/swc/tests/fixture/issues-5xxx/5626/output/index.ts index 3e90dcecc72d..89b75e48427c 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5626/output/index.ts +++ b/crates/swc/tests/fixture/issues-5xxx/5626/output/index.ts @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; function Prop() { return function() {}; } diff --git a/crates/swc/tests/fixture/issues-5xxx/5859/output/index.js b/crates/swc/tests/fixture/issues-5xxx/5859/output/index.js index d2a55c208cc9..4dc6992bed29 100644 --- a/crates/swc/tests/fixture/issues-5xxx/5859/output/index.js +++ b/crates/swc/tests/fixture/issues-5xxx/5859/output/index.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var result = []; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/fixture/issues-6xxx/6028/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6028/output/index.js index 256203e58d94..5b79ff2fa800 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6028/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6028/output/index.js @@ -1,11 +1,11 @@ -var _create_for_of_iterator_helper_loose = require("@swc/helpers/lib/_create_for_of_iterator_helper_loose.js").default; +var _create_for_of_iterator_helper_loose = require("@swc/helpers/_/_create_for_of_iterator_helper_loose"); var m = new Map([ [ 1, 2 ] ]); -for(var _iterator = _create_for_of_iterator_helper_loose(m.keys()), _step; !(_step = _iterator()).done;){ +for(var _iterator = _create_for_of_iterator_helper_loose._(m.keys()), _step; !(_step = _iterator()).done;){ var k = _step.value; console.log(k); } diff --git a/crates/swc/tests/fixture/issues-6xxx/6306/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6306/output/index.js index f1606c205fd4..3b692d6d837f 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6306/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6306/output/index.js @@ -1,3 +1,3 @@ "use strict"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; x = _object_destructuring_empty(null); diff --git a/crates/swc/tests/fixture/issues-6xxx/6309/output/input.js b/crates/swc/tests/fixture/issues-6xxx/6309/output/input.js index 2245485b693e..b592348c4a81 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6309/output/input.js +++ b/crates/swc/tests/fixture/issues-6xxx/6309/output/input.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _update from "@swc/helpers/src/_update.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _update } from "@swc/helpers/_/_update"; var x = function x() { "use strict"; _class_call_check(this, x); diff --git a/crates/swc/tests/fixture/issues-6xxx/6330/output/input.js b/crates/swc/tests/fixture/issues-6xxx/6330/output/input.js index 284b36aaf84b..aed524569ce6 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6330/output/input.js +++ b/crates/swc/tests/fixture/issues-6xxx/6330/output/input.js @@ -1,4 +1,4 @@ -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; new function(param) { var ref = _object_destructuring_empty(param); }(); diff --git a/crates/swc/tests/fixture/issues-6xxx/6353/output/input.js b/crates/swc/tests/fixture/issues-6xxx/6353/output/input.js index f696bee48164..7c936d2b7a63 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6353/output/input.js +++ b/crates/swc/tests/fixture/issues-6xxx/6353/output/input.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; (function() { var _ref = _async_to_generator(function*(x) { return 0; diff --git a/crates/swc/tests/fixture/issues-6xxx/6373/output/input.js b/crates/swc/tests/fixture/issues-6xxx/6373/output/input.js index e59f2a3523e7..a08b1997ca46 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6373/output/input.js +++ b/crates/swc/tests/fixture/issues-6xxx/6373/output/input.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = function x() { "use strict"; _class_call_check(this, x); diff --git a/crates/swc/tests/fixture/issues-6xxx/6390/output/input.js b/crates/swc/tests/fixture/issues-6xxx/6390/output/input.js index 4d723d8c5a9b..9e2f2b49387c 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6390/output/input.js +++ b/crates/swc/tests/fixture/issues-6xxx/6390/output/input.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var x = _extends({}, _object_destructuring_empty(null)); var y = _extends({}, _object_destructuring_empty(undefined)); var z; diff --git a/crates/swc/tests/fixture/issues-6xxx/6392/1/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6392/1/output/index.js index 25244c2a3630..4e1256dbc32b 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6392/1/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6392/1/output/index.js @@ -1,2 +1,2 @@ -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var ref = _object_destructuring_empty(x); diff --git a/crates/swc/tests/fixture/issues-6xxx/6392/2/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6392/2/output/index.js index 90fab4757200..9466597423a3 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6392/2/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6392/2/output/index.js @@ -1,4 +1,4 @@ -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var x = 42; function f() { var ref = _object_destructuring_empty(x); diff --git a/crates/swc/tests/fixture/issues-6xxx/6508/2/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6508/2/output/index.js index 3df58be09e47..a7a9a9c94e48 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6508/2/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6508/2/output/index.js @@ -1,6 +1,6 @@ "use client"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; export var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/fixture/issues-6xxx/6727/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6727/output/index.js index 474a0a53c62c..629262248847 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6727/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6727/output/index.js @@ -1,14 +1,14 @@ -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _type_of = require("@swc/helpers/lib/_type_of.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _type_of = require("@swc/helpers/_/_type_of"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); require("core-js/modules/es.object.to-string.js"); require("core-js/modules/es.promise.js"); function a() { return _a.apply(this, arguments); } function _a() { - _a = _async_to_generator(function() { - return _ts_generator(this, function(_state) { + _a = _async_to_generator._(function() { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -25,4 +25,4 @@ function _a() { }); return _a.apply(this, arguments); } -console.log(typeof a === "undefined" ? "undefined" : _type_of(a)); +console.log(typeof a === "undefined" ? "undefined" : _type_of._(a)); diff --git a/crates/swc/tests/fixture/issues-6xxx/6730/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6730/output/index.ts index a2c88b56dbb8..cea473d5bbf3 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6730/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6730/output/index.ts @@ -1,4 +1,4 @@ -import r from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as r } from "@swc/helpers/_/_async_to_generator"; export const styleLoader = ()=>{ return { setup (t) { diff --git a/crates/swc/tests/fixture/issues-6xxx/6871/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6871/output/index.js index 7c6dbffb038d..38ebd3517e5b 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6871/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6871/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function fromTokenizer() { return _fromTokenizer1.apply(this, arguments); } diff --git a/crates/swc/tests/fixture/issues-6xxx/6951/1/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6951/1/output/index.ts index 36ffec360e3b..5c0eb2b533ad 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6951/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6951/1/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/fixture/issues-6xxx/6951/2/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6951/2/output/index.ts index f1e79df1d08f..f8077ac037c0 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6951/2/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6951/2/output/index.ts @@ -1,4 +1,4 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class A { a = true; b = false; diff --git a/crates/swc/tests/fixture/issues-6xxx/6951/3/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6951/3/output/index.ts index a498294045a5..654b940c4255 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6951/3/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6951/3/output/index.ts @@ -1,5 +1,5 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class A { constructor(){ _define_property(this, "a", true); diff --git a/crates/swc/tests/fixture/issues-6xxx/6951/4/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6951/4/output/index.ts index 36ffec360e3b..5c0eb2b533ad 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6951/4/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6951/4/output/index.ts @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_JS/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_JS/output/index.js index d7496e126716..657e50aa1988 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_JS/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_JS/output/index.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _b = /*#__PURE__*/ new WeakMap(); class Foo { constructor(){ diff --git a/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_TS/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_TS/output/index.ts index b8e2c65a13e7..8007097aed08 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_TS/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6985/useDefineForClassFields/2020_TS/output/index.ts @@ -1,6 +1,6 @@ -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _b = /*#__PURE__*/ new WeakMap(); class Foo { constructor(foo){ diff --git a/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_JS/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_JS/output/index.js index cd0728173c56..ca1503232853 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_JS/output/index.js +++ b/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_JS/output/index.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _b = /*#__PURE__*/ new WeakMap(); class Foo { constructor(){ diff --git a/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_TS/output/index.ts b/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_TS/output/index.ts index 341c6c4a0d3e..b87f36fced3d 100644 --- a/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_TS/output/index.ts +++ b/crates/swc/tests/fixture/issues-6xxx/6985/useSetForClassFields/2020_TS/output/index.ts @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _b = /*#__PURE__*/ new WeakMap(); class Foo { constructor(foo){ diff --git a/crates/swc/tests/fixture/jest/issue-6540/output/index.ts b/crates/swc/tests/fixture/jest/issue-6540/output/index.ts index 4dc767a83ac8..849b1ea3c2d3 100644 --- a/crates/swc/tests/fixture/jest/issue-6540/output/index.ts +++ b/crates/swc/tests/fixture/jest/issue-6540/output/index.ts @@ -3,8 +3,8 @@ jest.mock("./foo").mock("./bar"); Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _foo = /*#__PURE__*/ _interop_require_default(require("./foo")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _foo = /*#__PURE__*/ _interop_require_default._(require("./foo")); test("Foo is a mock", ()=>{ expect(jest.isMockFunction(_foo.default)).toBe(true); }); diff --git a/crates/swc/tests/fixture/module/ignore-dynamic/1/output/index.js b/crates/swc/tests/fixture/module/ignore-dynamic/1/output/index.js index 1038bd28b3a9..37c54955f8b9 100644 --- a/crates/swc/tests/fixture/module/ignore-dynamic/1/output/index.js +++ b/crates/swc/tests/fixture/module/ignore-dynamic/1/output/index.js @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _foo = /*#__PURE__*/ _interop_require_default._(require("foo")); async function foo() { await import("foo"); callback(()=>import("foo")); diff --git a/crates/swc/tests/fixture/new-target/output/class-extends-error.ts b/crates/swc/tests/fixture/new-target/output/class-extends-error.ts index f95b6b1c974d..a310b4e83417 100644 --- a/crates/swc/tests/fixture/new-target/output/class-extends-error.ts +++ b/crates/swc/tests/fixture/new-target/output/class-extends-error.ts @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var CustomError = /*#__PURE__*/ function _target(Error1) { "use strict"; _inherits(CustomError, Error1); diff --git a/crates/swc/tests/fixture/next.js/40399/1/output/index.js b/crates/swc/tests/fixture/next.js/40399/1/output/index.js index e6261e8b6378..a8a5071d6e64 100644 --- a/crates/swc/tests/fixture/next.js/40399/1/output/index.js +++ b/crates/swc/tests/fixture/next.js/40399/1/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; _async_to_generator(function() { var blob, _; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/next.js/40399/2/output/index.js b/crates/swc/tests/fixture/next.js/40399/2/output/index.js index 6b360d2ca044..b0cee4734966 100644 --- a/crates/swc/tests/fixture/next.js/40399/2/output/index.js +++ b/crates/swc/tests/fixture/next.js/40399/2/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; _async_to_generator(function() { var a, b, _; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/next.js/40399/3/output/index.js b/crates/swc/tests/fixture/next.js/40399/3/output/index.js index e15f20da405e..7ccb7d038bfc 100644 --- a/crates/swc/tests/fixture/next.js/40399/3/output/index.js +++ b/crates/swc/tests/fixture/next.js/40399/3/output/index.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var Foo = function Foo(v) { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/fixture/next.js/shared/lib/router/1/output/index.ts b/crates/swc/tests/fixture/next.js/shared/lib/router/1/output/index.ts index f0df6abe2148..f588682ace86 100644 --- a/crates/swc/tests/fixture/next.js/shared/lib/router/1/output/index.ts +++ b/crates/swc/tests/fixture/next.js/shared/lib/router/1/output/index.ts @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var Router = /*#__PURE__*/ function() { "use strict"; function Router() { diff --git a/crates/swc/tests/fixture/next.js/slack-2/es5/output/index.js b/crates/swc/tests/fixture/next.js/slack-2/es5/output/index.js index af9ba9610119..69dd0415a766 100644 --- a/crates/swc/tests/fixture/next.js/slack-2/es5/output/index.js +++ b/crates/swc/tests/fixture/next.js/slack-2/es5/output/index.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/fixture/shopify/001/output/index.js b/crates/swc/tests/fixture/shopify/001/output/index.js index 1ac6f5b31a47..2ac56d4746dd 100644 --- a/crates/swc/tests/fixture/shopify/001/output/index.js +++ b/crates/swc/tests/fixture/shopify/001/output/index.js @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); -var _reactdom = /*#__PURE__*/ _interop_require_default(require("react-dom")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); +var _reactdom = /*#__PURE__*/ _interop_require_default._(require("react-dom")); var _App = require("./App"); _reactdom.default.render(/*#__PURE__*/ _react.default.createElement(_App.App, null), "div"); diff --git a/crates/swc/tests/fixture/shopify/002/output/index.js b/crates/swc/tests/fixture/shopify/002/output/index.js index ac8b290acd8a..ab5a74b99da9 100644 --- a/crates/swc/tests/fixture/shopify/002/output/index.js +++ b/crates/swc/tests/fixture/shopify/002/output/index.js @@ -8,11 +8,11 @@ Object.defineProperty(exports, "App", { return App; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _sliced_to_array = require("@swc/helpers/lib/_sliced_to_array.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); var _reacti18n = require("@shopify/react-i18n"); function App() { - var _useI18n = _sliced_to_array((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; + var _useI18n = _sliced_to_array._((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; return /*#__PURE__*/ _react.default.createElement("h1", null, i18n.translate("foo")); } diff --git a/crates/swc/tests/fixture/shopify/003-env/output/index.js b/crates/swc/tests/fixture/shopify/003-env/output/index.js index ac8b290acd8a..ab5a74b99da9 100644 --- a/crates/swc/tests/fixture/shopify/003-env/output/index.js +++ b/crates/swc/tests/fixture/shopify/003-env/output/index.js @@ -8,11 +8,11 @@ Object.defineProperty(exports, "App", { return App; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _sliced_to_array = require("@swc/helpers/lib/_sliced_to_array.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); var _reacti18n = require("@shopify/react-i18n"); function App() { - var _useI18n = _sliced_to_array((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; + var _useI18n = _sliced_to_array._((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; return /*#__PURE__*/ _react.default.createElement("h1", null, i18n.translate("foo")); } diff --git a/crates/swc/tests/fixture/shopify/004-jest/output/index.js b/crates/swc/tests/fixture/shopify/004-jest/output/index.js index ac8b290acd8a..ab5a74b99da9 100644 --- a/crates/swc/tests/fixture/shopify/004-jest/output/index.js +++ b/crates/swc/tests/fixture/shopify/004-jest/output/index.js @@ -8,11 +8,11 @@ Object.defineProperty(exports, "App", { return App; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _sliced_to_array = require("@swc/helpers/lib/_sliced_to_array.js").default; -var _react = /*#__PURE__*/ _interop_require_default(require("react")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array"); +var _react = /*#__PURE__*/ _interop_require_default._(require("react")); var _reacti18n = require("@shopify/react-i18n"); function App() { - var _useI18n = _sliced_to_array((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; + var _useI18n = _sliced_to_array._((0, _reacti18n.useI18n)(), 1), i18n = _useI18n[0]; return /*#__PURE__*/ _react.default.createElement("h1", null, i18n.translate("foo")); } diff --git a/crates/swc/tests/fixture/shopify/005-no-module/output/index.js b/crates/swc/tests/fixture/shopify/005-no-module/output/index.js index 2bc9aab67943..392001302466 100644 --- a/crates/swc/tests/fixture/shopify/005-no-module/output/index.js +++ b/crates/swc/tests/fixture/shopify/005-no-module/output/index.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; import React from "react"; import { useI18n } from "@shopify/react-i18n"; export function App() { diff --git a/crates/swc/tests/fixture/sourcemap/002/output/index.js b/crates/swc/tests/fixture/sourcemap/002/output/index.js index 796d33df19b2..1099a24bd807 100644 --- a/crates/swc/tests/fixture/sourcemap/002/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/002/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; export default function StaticPage(param) { var data = param.data; return /*#__PURE__*/ React.createElement("div", null, data.foo); diff --git a/crates/swc/tests/fixture/sourcemap/003/output/index.js b/crates/swc/tests/fixture/sourcemap/003/output/index.js index 9ef877197964..385cbda924f6 100644 --- a/crates/swc/tests/fixture/sourcemap/003/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/003/output/index.js @@ -1 +1 @@ -import t from"@swc/helpers/src/_async_to_generator.mjs";import r from"@swc/helpers/src/_ts_generator.mjs";export default function e(t){var r=t.data;return React.createElement("div",null,r.foo)}export function getStaticProps(){return n.apply(this,arguments)}function n(){return(n=t(function(){return r(this,function(t){return[2,{props:{data:{foo:"bar"}}}]})})).apply(this,arguments)} +import{_ as t}from"@swc/helpers/_/_async_to_generator";import{_ as r}from"@swc/helpers/_/_ts_generator";export default function e(t){var r=t.data;return React.createElement("div",null,r.foo)}export function getStaticProps(){return n.apply(this,arguments)}function n(){return(n=t(function(){return r(this,function(t){return[2,{props:{data:{foo:"bar"}}}]})})).apply(this,arguments)} diff --git a/crates/swc/tests/fixture/sourcemap/003/output/index.map b/crates/swc/tests/fixture/sourcemap/003/output/index.map index b89952f7c49d..3d101fa060ae 100644 --- a/crates/swc/tests/fixture/sourcemap/003/output/index.map +++ b/crates/swc/tests/fixture/sourcemap/003/output/index.map @@ -1,5 +1,5 @@ { - "mappings": "yGAAA,gBAAe,SAASA,EAAW,CAAQ,CAAE,KAAV,AAAEC,EAAF,EAAEA,KACjC,OAAO,oBAACC,WAAKD,EAAKE,GAAG,CACzB,CAAC,AAED,gBAAsBC,wBAAAA,wBAQrB,SARqBA,WAAAA,EAAf,EAAA,UAAgC,2BACnC,SAAO,CACHC,MAAO,CACHJ,KAAM,CACFE,IAAK,KACT,CACJ,CACJ,IACJ", + "mappings": "uGAAA,gBAAe,SAASA,EAAW,CAAQ,CAAE,KAAV,AAAEC,EAAF,EAAEA,KACjC,OAAO,oBAACC,WAAKD,EAAKE,GAAG,CACzB,CAAC,AAED,gBAAsBC,wBAAAA,wBAQrB,SARqBA,WAAAA,EAAf,EAAA,UAAgC,2BACnC,SAAO,CACHC,MAAO,CACHJ,KAAM,CACFE,IAAK,KACT,CACJ,CACJ,IACJ", "names": [ "StaticPage", "data", diff --git a/crates/swc/tests/fixture/sourcemap/005/output/index.js b/crates/swc/tests/fixture/sourcemap/005/output/index.js index 57c6e0b8b493..b90bb8208f19 100644 --- a/crates/swc/tests/fixture/sourcemap/005/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/005/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; it("should compress avif smaller than webp and smaller than jpg", /*#__PURE__*/ _async_to_generator(function() { var query, res1, res2, res3, avif, webp, jpeg; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/sourcemap/006/output/index.js b/crates/swc/tests/fixture/sourcemap/006/output/index.js index 57c6e0b8b493..b90bb8208f19 100644 --- a/crates/swc/tests/fixture/sourcemap/006/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/006/output/index.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; it("should compress avif smaller than webp and smaller than jpg", /*#__PURE__*/ _async_to_generator(function() { var query, res1, res2, res3, avif, webp, jpeg; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/fixture/sourcemap/011/output/CommentControlller.ts b/crates/swc/tests/fixture/sourcemap/011/output/CommentControlller.ts index 20dab4032c98..3457dff1f324 100644 --- a/crates/swc/tests/fixture/sourcemap/011/output/CommentControlller.ts +++ b/crates/swc/tests/fixture/sourcemap/011/output/CommentControlller.ts @@ -1,6 +1,6 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; -import _ts_param from "@swc/helpers/src/_ts_param.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; +import { _ as _ts_param } from "@swc/helpers/_/_ts_param"; import { Body, Controller, Delete, Param, Put, UseGuards, UseInterceptors } from '@nestjs/common'; import { COMMENT_CONTROLLER_ROUTE, COMMENT_DELETE_ENDPOINT, COMMENT_UPDATE_ENDPOINT } from '@server/constants/controllers'; import { MongooseClassSerializerInterceptor } from '@server/interceptors/MongooseClassSerializerInterceptor'; diff --git a/crates/swc/tests/fixture/sourcemap/012/output/CommentService.ts b/crates/swc/tests/fixture/sourcemap/012/output/CommentService.ts index 4e2b2ae8343c..673dceab7042 100644 --- a/crates/swc/tests/fixture/sourcemap/012/output/CommentService.ts +++ b/crates/swc/tests/fixture/sourcemap/012/output/CommentService.ts @@ -1,6 +1,6 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; -import _ts_param from "@swc/helpers/src/_ts_param.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; +import { _ as _ts_param } from "@swc/helpers/_/_ts_param"; import { Model, Connection as MongooseConnection } from 'mongoose'; import { ForbiddenException, Injectable, InternalServerErrorException, NotFoundException } from '@nestjs/common'; import { InjectModel, InjectConnection } from '@nestjs/mongoose'; diff --git a/crates/swc/tests/fixture/sourcemap/013/output/PistController.ts b/crates/swc/tests/fixture/sourcemap/013/output/PistController.ts index 20a4485865a6..bca7a8718663 100644 --- a/crates/swc/tests/fixture/sourcemap/013/output/PistController.ts +++ b/crates/swc/tests/fixture/sourcemap/013/output/PistController.ts @@ -1,6 +1,6 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; -import _ts_param from "@swc/helpers/src/_ts_param.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; +import { _ as _ts_param } from "@swc/helpers/_/_ts_param"; import { Body, Controller, Delete, Get, Param, Post, Put, UseGuards, UseInterceptors } from '@nestjs/common'; import { POST_CONTROLLER_ROUTE, POST_DELETE_ENDPOINT, POST_GET_ALL_ENDPOINT, POST_GET_ENDPOINT, POST_CREATE_COMMENT_ENDPOINT, POST_CREATE_ENDPOINT, POST_UPDATE_ENDPOINT } from '@server/constants/controllers'; import { MongooseClassSerializerInterceptor } from '@server/interceptors/MongooseClassSerializerInterceptor'; diff --git a/crates/swc/tests/fixture/sourcemap/014/output/UserController.ts b/crates/swc/tests/fixture/sourcemap/014/output/UserController.ts index 38e1e34f9dea..e0a8feea5662 100644 --- a/crates/swc/tests/fixture/sourcemap/014/output/UserController.ts +++ b/crates/swc/tests/fixture/sourcemap/014/output/UserController.ts @@ -1,6 +1,6 @@ -import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; -import _ts_metadata from "@swc/helpers/src/_ts_metadata.mjs"; -import _ts_param from "@swc/helpers/src/_ts_param.mjs"; +import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; +import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata"; +import { _ as _ts_param } from "@swc/helpers/_/_ts_param"; import { Controller, Post, UseGuards, Body, Put, Param, ForbiddenException, UseInterceptors } from '@nestjs/common'; import { USER_CONTROLLER_ROUTE, USER_CREATE_ENDPOINT, USER_UPDATE_ENDPOINT } from '@server/constants/controllers'; import { CreateUserDto } from '@server/user/dto/CreateUserDto'; diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map index 6973098a4fae..90d81ddbfc98 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map @@ -1,5 +1,5 @@ { - "mappings": ";;;;;;;;;;;IA2BYA,IAAI;IAEHC,MAAM,MAANA;IACAC,QAAQ,MAARA;IAEAC,MAAM,MAANA;IACAC,KAAK,MAALA;IAEAC,MAAM,MAANA;IAEAC,MAAM,MAANA;IAKAC,OAAO,MAAPA;IAGAC,GAAG,MAAHA;;;;;;;kCA7CuC;8BACJ;gCAC1B;uFAwBR;AAGP,MAAMP,SAAqC,IAAM,IAAIQ;AACrD,MAAMP,WAA2C,IACpD,IAAIQ;AACD,MAAMP,SAAuC,IAAM,IAAIQ;AACvD,MAAMP,QAAyC,IAClD,IAAIQ;AACD,MAAMP,SAA2C,IACpD,IAAIQ;AACD,MAAMP,SAGT,CAACQ,QAAkC,EAAE,GACrC,IAAIC,wBAAwBD;AACzB,MAAMP,UAAgD,IACzD,IAAIS;AAED,MAAMR,MAAM;IACfJ,OAAQ,IACJ,IAAIa;IACRX,QAAS,IACL,IAAIY;AACZ;IAGI,uCACA,yCACA,2CACA;AAJJ,MAAMT,oBAAoBU,iCAAe;IAMrCC,OAAO,GAAGA,MAA4B,EAAQ;uCACpCA,SAASA,OAAOC,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEApB,SAASA,QAA6B,EAAQ;uCACpCA,WAAWoB,IAAAA,yBAAW,EAACpB;QAC7B,OAAO,IAAI;IACf;IAEAqB,WAAWA,UAAqC,EAAQ;uCAC9CA,aAAaA,YAAYF,IAAIC,yBAAW;QAC9C,OAAO,IAAI;IACf;IAEAE,eAAeA,cAAyC,EAAQ;uCACtDA,iBAAiBF,IAAAA,yBAAW,EAACE;QACnC,OAAO,IAAI;IACf;IAEAC,QAAc;QACV,OAAO;YACHL,MAAM,2BAAE,IAAI,EAAEA;YACdlB,QAAQ,2BAAE,IAAI,EAAEA;YAChBqB,UAAU,2BAAE,IAAI,EAAEA;YAClBC,cAAc,2BAAE,IAAI,EAAEA;QAC1B;IACJ;;;QAhCA,gCAAA;;mBAAuB,EAAE;;QACzB,gCAAA;;mBAAuBE;;QACvB,gCAAA;;mBAAgCA;;QAChC,gCAAA;;mBAAmCA;;;AA8BvC;IAGI,sCACA;AAFJ,MAAMhB,wBAAwBS,iCAAe;IAIzCL,MAAMA,KAA+B,EAAQ;uCACnCA,QAAQA,MAAMO,GAAG,CAACC,yBAAW;QACnC,OAAO,IAAI;IACf;IAEAK,OAAOA,MAAgC,EAAQ;uCACrCA,SAASA,OAAON,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEAG,QAAkB;QACd,OAAO;YACHX,KAAK,2BAAE,IAAI,EAAEA;YACba,MAAM,2BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,gCAAA;;mBAA0B,EAAE;;QAC5B,gCAAA;;mBAA2B,EAAE;;;AAkBjC;IAGI;AADJ,MAAMhB,sBAAsBQ,iCAAe;IAGvCS,QAAQA,OAAoC,EAAQ;uCAC1CA,UAAUN,IAAAA,yBAAW,EAACM;QAC5B,OAAO,IAAI;IACf;IAEAH,QAAgB;QACZ,OAAO;YACHG,OAAO,2BAAE,IAAI,EAAEA;QACnB;IACJ;;;QAXA,gCAAA;;mBAA8BC,IAAAA,qBAAK,IAAGJ,KAAK;;;AAY/C;IAGI,uCACA,uCACA,2CACA;AAJJ,MAAMR,4BAA4Ba,oCAAkB;IAMhDhB,MAAMA,KAA2C,EAAQ;uCAC/CA,SAAQA,MAAMO,GAAG,CAACU,0BAAY;QACpC,OAAO,IAAI;IACf;IAEA1B,OAAOA,MAAyC,EAAQ;uCAC9CA,SAAS0B,IAAAA,0BAAY,EAAC1B,UAAU,EAAE;QACxC,OAAO,IAAI;IACf;IAEA2B,WAAWA,UAAsD,EAAQ;uCAC/DA,aAAaA,WAAWX,GAAG,CAACU,0BAAY;QAC9C,OAAO,IAAI;IACf;IAEAE,sBACIA,qBAA2D,EACvD;uCACEA,wBAAwBA,sBAAsBZ,GAAG,CAACU,0BAAY;QACpE,OAAO,IAAI;IACf;IAEAG,cAAcC,cAAuC,EAAa;QAC9D,OAAO;YACHC,IAAIC,IAAAA,kBAAI,EACJ,sCACA,IAAI,EAAEvB,mCACN,IAAI,EAAEkB,uCACN,IAAI,EAAEC,kDACN,IAAI,EAAE5B;YAEVS,OAAOqB,eAAeG,KAAK,0BAAC,IAAI,EAAExB;YAClCT,QAAQ8B,eAAeI,KAAK,0BAAC,IAAI,EAAElC;YACnC2B,YAAYG,eAAeG,KAAK,0BAAC,IAAI,EAAEN;YACvCC,uBAAuBE,eAAeG,KAAK,0BACvC,IAAI,EAAEL;QAEd;IACJ;;;QA3CA,gCAAA;;mBAAsC,EAAE;;QACxC,gCAAA;;mBAAmCP;;QACnC,gCAAA;;mBAAiD,EAAE;;QACnD,gCAAA;;mBAAsD,EAAE;;;AAyC5D;IAGI;AADJ,MAAMd,yBAAyBO,iCAAe;IAG1CL,MAAMA,KAA+B,EAAQ;QACzC,yBAAA,IAAI,EAAE0B,aAAW1B,KAAK,CAAC;YAACA;SAAM;QAC9B,OAAO,IAAI;IACf;IAEAT,OAAOA,MAA6B,EAAQ;QACxC,IAAIA,QAAQ;YACR,yBAAA,IAAI,EAAEmC,aAAWnC,MAAM,CAAC;gBAACA;aAAO;QACpC,CAAC;QACD,OAAO,IAAI;IACf;IAEA2B,WAAWA,UAA0C,EAAQ;QACzD,yBAAA,IAAI,EAAEQ,aAAWR,UAAU,CAAC;YAACA;SAAW;QACxC,OAAO,IAAI;IACf;IAEAC,sBACIA,qBAA+C,EAC3C;QACJ,yBAAA,IAAI,EAAEO,aAAWP,qBAAqB,CAAC;YAACA;SAAsB;QAC9D,OAAO,IAAI;IACf;IAEAR,QAAmB;QACf,OAAO,yBAAA,IAAI,EAAEe,aAAWf,KAAK;IACjC;;;QA5BA,gCAAA;;mBAAmC,IAAIR;;;AA6B3C;IAGI,wCACA;AAFJ,MAAMJ,0BAA0BM,iCAAe;IAI3CsB,QAAQA,OAA8B,EAAQ;uCACpCA,UAAUA;QAChB,OAAO,IAAI;IACf;IAEAtC,OAAOA,MAAwB,EAAQ;uCAC7BA,SAASmB,IAAAA,yBAAW,EAACnB;QAC3B,OAAO,IAAI;IACf;IAEAsB,QAAoB;QAChB,OAAO;YACHgB,OAAO,2BAAE,IAAI,EAAEA;YACftC,MAAM,2BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,gCAAA;;mBAAkC;;QAClC,gCAAA;;mBAAmBuB;;;AAkBvB;IAGI;AADJ,MAAMR,gCAAgCY,oCAAkB;IAGpDhB,MAAMA,KAA2C,EAAQ;uCAC/CA,SAAQA,MAAMO,GAAG,CAACU,0BAAY;QACpC,OAAO,IAAI;IACf;IAEAG,cAAcC,cAAuC,EAAiB;QAClE,MAAMC,KAAKC,IAAAA,kBAAI,EAAC,2CAAkB,IAAI,EAAEvB;QACxC,OAAO;YACHsB;YACAtB,OAAOqB,eAAeG,KAAK,0BAAC,IAAI,EAAExB;QACtC;IACJ;;;QAbA,gCAAA;;mBAAsC,EAAE;;;AAc5C;IAGI;AADJ,MAAMC,6BAA6BI,iCAAe;IAQ9CL,MAAM,GAAGA,KAA+B,EAAQ;QAC5C,yBAAA,IAAI,EAAE0B,cAAW1B,KAAK,CAAC;YAACA;SAAM;QAC9B,OAAO,IAAI;IACf;IAEAW,QAAuB;QACnB,OAAO,yBAAA,IAAI,EAAEe,cAAWf,KAAK;IACjC;IAZAiB,YAAY,GAAG5B,KAA+B,CAAE;QAC5C,KAAK;QAHT,gCAAA;;mBAAuC,IAAII;;QAIvC,IAAI,CAACJ,KAAK,IAAIA;IAClB;AAUJ;IAGI,uCACA;AAFJ,MAAME,8BAA8BG,iCAAe;IAI/CL,MAAM,GAAGA,KAA+B,EAAQ;uCACtCA,SAAQA,MAAMO,GAAG,CAACC,yBAAW;QACnC,OAAO,IAAI;IACf;IAEAK,OAAO,GAAGA,MAAgC,EAAQ;uCACxCA,UAASA,OAAON,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEAG,QAAwB;QACpB,OAAO;YACHX,KAAK,2BAAE,IAAI,EAAEA;YACba,MAAM,2BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,gCAAA;;mBAA0B,EAAE;;QAC5B,gCAAA;;mBAA2B,EAAE;;;AAkBjC", + "mappings": ";;;;;;;;;;;IA2BYA,IAAI;IAEHC,MAAM,MAANA;IACAC,QAAQ,MAARA;IAEAC,MAAM,MAANA;IACAC,KAAK,MAALA;IAEAC,MAAM,MAANA;IAEAC,MAAM,MAANA;IAKAC,OAAO,MAAPA;IAGAC,GAAG,MAAHA;;;;;;;kCA7CuC;8BACJ;gCAC1B;2FAwBR;AAGP,MAAMP,SAAqC,IAAM,IAAIQ;AACrD,MAAMP,WAA2C,IACpD,IAAIQ;AACD,MAAMP,SAAuC,IAAM,IAAIQ;AACvD,MAAMP,QAAyC,IAClD,IAAIQ;AACD,MAAMP,SAA2C,IACpD,IAAIQ;AACD,MAAMP,SAGT,CAACQ,QAAkC,EAAE,GACrC,IAAIC,wBAAwBD;AACzB,MAAMP,UAAgD,IACzD,IAAIS;AAED,MAAMR,MAAM;IACfJ,OAAQ,IACJ,IAAIa;IACRX,QAAS,IACL,IAAIY;AACZ;IAGI,uCACA,yCACA,2CACA;AAJJ,MAAMT,oBAAoBU,iCAAe;IAMrCC,OAAO,GAAGA,MAA4B,EAAQ;yCACpCA,SAASA,OAAOC,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEApB,SAASA,QAA6B,EAAQ;yCACpCA,WAAWoB,IAAAA,yBAAW,EAACpB;QAC7B,OAAO,IAAI;IACf;IAEAqB,WAAWA,UAAqC,EAAQ;yCAC9CA,aAAaA,YAAYF,IAAIC,yBAAW;QAC9C,OAAO,IAAI;IACf;IAEAE,eAAeA,cAAyC,EAAQ;yCACtDA,iBAAiBF,IAAAA,yBAAW,EAACE;QACnC,OAAO,IAAI;IACf;IAEAC,QAAc;QACV,OAAO;YACHL,MAAM,6BAAE,IAAI,EAAEA;YACdlB,QAAQ,6BAAE,IAAI,EAAEA;YAChBqB,UAAU,6BAAE,IAAI,EAAEA;YAClBC,cAAc,6BAAE,IAAI,EAAEA;QAC1B;IACJ;;;QAhCA,kCAAA;;mBAAuB,EAAE;;QACzB,kCAAA;;mBAAuBE;;QACvB,kCAAA;;mBAAgCA;;QAChC,kCAAA;;mBAAmCA;;;AA8BvC;IAGI,sCACA;AAFJ,MAAMhB,wBAAwBS,iCAAe;IAIzCL,MAAMA,KAA+B,EAAQ;yCACnCA,QAAQA,MAAMO,GAAG,CAACC,yBAAW;QACnC,OAAO,IAAI;IACf;IAEAK,OAAOA,MAAgC,EAAQ;yCACrCA,SAASA,OAAON,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEAG,QAAkB;QACd,OAAO;YACHX,KAAK,6BAAE,IAAI,EAAEA;YACba,MAAM,6BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,kCAAA;;mBAA0B,EAAE;;QAC5B,kCAAA;;mBAA2B,EAAE;;;AAkBjC;IAGI;AADJ,MAAMhB,sBAAsBQ,iCAAe;IAGvCS,QAAQA,OAAoC,EAAQ;yCAC1CA,UAAUN,IAAAA,yBAAW,EAACM;QAC5B,OAAO,IAAI;IACf;IAEAH,QAAgB;QACZ,OAAO;YACHG,OAAO,6BAAE,IAAI,EAAEA;QACnB;IACJ;;;QAXA,kCAAA;;mBAA8BC,IAAAA,qBAAK,IAAGJ,KAAK;;;AAY/C;IAGI,uCACA,uCACA,2CACA;AAJJ,MAAMR,4BAA4Ba,oCAAkB;IAMhDhB,MAAMA,KAA2C,EAAQ;yCAC/CA,SAAQA,MAAMO,GAAG,CAACU,0BAAY;QACpC,OAAO,IAAI;IACf;IAEA1B,OAAOA,MAAyC,EAAQ;yCAC9CA,SAAS0B,IAAAA,0BAAY,EAAC1B,UAAU,EAAE;QACxC,OAAO,IAAI;IACf;IAEA2B,WAAWA,UAAsD,EAAQ;yCAC/DA,aAAaA,WAAWX,GAAG,CAACU,0BAAY;QAC9C,OAAO,IAAI;IACf;IAEAE,sBACIA,qBAA2D,EACvD;yCACEA,wBAAwBA,sBAAsBZ,GAAG,CAACU,0BAAY;QACpE,OAAO,IAAI;IACf;IAEAG,cAAcC,cAAuC,EAAa;QAC9D,OAAO;YACHC,IAAIC,IAAAA,kBAAI,EACJ,wCACA,IAAI,EAAEvB,qCACN,IAAI,EAAEkB,yCACN,IAAI,EAAEC,oDACN,IAAI,EAAE5B;YAEVS,OAAOqB,eAAeG,KAAK,4BAAC,IAAI,EAAExB;YAClCT,QAAQ8B,eAAeI,KAAK,4BAAC,IAAI,EAAElC;YACnC2B,YAAYG,eAAeG,KAAK,4BAAC,IAAI,EAAEN;YACvCC,uBAAuBE,eAAeG,KAAK,4BACvC,IAAI,EAAEL;QAEd;IACJ;;;QA3CA,kCAAA;;mBAAsC,EAAE;;QACxC,kCAAA;;mBAAmCP;;QACnC,kCAAA;;mBAAiD,EAAE;;QACnD,kCAAA;;mBAAsD,EAAE;;;AAyC5D;IAGI;AADJ,MAAMd,yBAAyBO,iCAAe;IAG1CL,MAAMA,KAA+B,EAAQ;QACzC,2BAAA,IAAI,EAAE0B,aAAW1B,KAAK,CAAC;YAACA;SAAM;QAC9B,OAAO,IAAI;IACf;IAEAT,OAAOA,MAA6B,EAAQ;QACxC,IAAIA,QAAQ;YACR,2BAAA,IAAI,EAAEmC,aAAWnC,MAAM,CAAC;gBAACA;aAAO;QACpC,CAAC;QACD,OAAO,IAAI;IACf;IAEA2B,WAAWA,UAA0C,EAAQ;QACzD,2BAAA,IAAI,EAAEQ,aAAWR,UAAU,CAAC;YAACA;SAAW;QACxC,OAAO,IAAI;IACf;IAEAC,sBACIA,qBAA+C,EAC3C;QACJ,2BAAA,IAAI,EAAEO,aAAWP,qBAAqB,CAAC;YAACA;SAAsB;QAC9D,OAAO,IAAI;IACf;IAEAR,QAAmB;QACf,OAAO,2BAAA,IAAI,EAAEe,aAAWf,KAAK;IACjC;;;QA5BA,kCAAA;;mBAAmC,IAAIR;;;AA6B3C;IAGI,wCACA;AAFJ,MAAMJ,0BAA0BM,iCAAe;IAI3CsB,QAAQA,OAA8B,EAAQ;yCACpCA,UAAUA;QAChB,OAAO,IAAI;IACf;IAEAtC,OAAOA,MAAwB,EAAQ;yCAC7BA,SAASmB,IAAAA,yBAAW,EAACnB;QAC3B,OAAO,IAAI;IACf;IAEAsB,QAAoB;QAChB,OAAO;YACHgB,OAAO,6BAAE,IAAI,EAAEA;YACftC,MAAM,6BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,kCAAA;;mBAAkC;;QAClC,kCAAA;;mBAAmBuB;;;AAkBvB;IAGI;AADJ,MAAMR,gCAAgCY,oCAAkB;IAGpDhB,MAAMA,KAA2C,EAAQ;yCAC/CA,SAAQA,MAAMO,GAAG,CAACU,0BAAY;QACpC,OAAO,IAAI;IACf;IAEAG,cAAcC,cAAuC,EAAiB;QAClE,MAAMC,KAAKC,IAAAA,kBAAI,EAAC,6CAAkB,IAAI,EAAEvB;QACxC,OAAO;YACHsB;YACAtB,OAAOqB,eAAeG,KAAK,4BAAC,IAAI,EAAExB;QACtC;IACJ;;;QAbA,kCAAA;;mBAAsC,EAAE;;;AAc5C;IAGI;AADJ,MAAMC,6BAA6BI,iCAAe;IAQ9CL,MAAM,GAAGA,KAA+B,EAAQ;QAC5C,2BAAA,IAAI,EAAE0B,cAAW1B,KAAK,CAAC;YAACA;SAAM;QAC9B,OAAO,IAAI;IACf;IAEAW,QAAuB;QACnB,OAAO,2BAAA,IAAI,EAAEe,cAAWf,KAAK;IACjC;IAZAiB,YAAY,GAAG5B,KAA+B,CAAE;QAC5C,KAAK;QAHT,kCAAA;;mBAAuC,IAAII;;QAIvC,IAAI,CAACJ,KAAK,IAAIA;IAClB;AAUJ;IAGI,uCACA;AAFJ,MAAME,8BAA8BG,iCAAe;IAI/CL,MAAM,GAAGA,KAA+B,EAAQ;yCACtCA,SAAQA,MAAMO,GAAG,CAACC,yBAAW;QACnC,OAAO,IAAI;IACf;IAEAK,OAAO,GAAGA,MAAgC,EAAQ;yCACxCA,UAASA,OAAON,GAAG,CAACC,yBAAW;QACrC,OAAO,IAAI;IACf;IAEAG,QAAwB;QACpB,OAAO;YACHX,KAAK,6BAAE,IAAI,EAAEA;YACba,MAAM,6BAAE,IAAI,EAAEA;QAClB;IACJ;;;QAlBA,kCAAA;;mBAA0B,EAAE;;QAC5B,kCAAA;;mBAA2B,EAAE;;;AAkBjC", "names": [ "node", "create", diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts index b9aaa9b91147..c3c60317fc07 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts @@ -19,15 +19,15 @@ _export(exports, { sources: ()=>sources, seq: ()=>seq }); -const _class_private_field_get = require("@swc/helpers/lib/_class_private_field_get.js").default; -const _class_private_field_init = require("@swc/helpers/lib/_class_private_field_init.js").default; -const _class_private_field_set = require("@swc/helpers/lib/_class_private_field_set.js").default; -const _export_star = require("@swc/helpers/lib/_export_star.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _class_private_field_get = require("@swc/helpers/_/_class_private_field_get"); +const _class_private_field_init = require("@swc/helpers/_/_class_private_field_init"); +const _class_private_field_set = require("@swc/helpers/_/_class_private_field_set"); +const _export_star = require("@swc/helpers/_/_export_star"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _AbstractBuilders = require("./AbstractBuilders"); const _Builderutils = require("./Builder.utils"); const _ElementBuilder = require("./ElementBuilder"); -const _BodyNodesBuilder = /*#__PURE__*/ _interop_require_wildcard(_export_star(require("./BodyNodesBuilder"), exports)); +const _BodyNodesBuilder = /*#__PURE__*/ _interop_require_wildcard._(_export_star._(require("./BodyNodesBuilder"), exports)); const create = ()=>new BodyBuilder(); const trustBox = ()=>new TrustBoxBuilder(); const opener = ()=>new OpenerBuilder(); @@ -42,44 +42,44 @@ const seq = { var _stages = /*#__PURE__*/ new WeakMap(), _trustBox = /*#__PURE__*/ new WeakMap(), _disclaimer = /*#__PURE__*/ new WeakMap(), _articleSources = /*#__PURE__*/ new WeakMap(); class BodyBuilder extends _AbstractBuilders.AbstractBuilder { stages(...stages) { - _class_private_field_set(this, _stages, stages.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _stages, stages.map(_Builderutils.mapBuildArg)); return this; } trustBox(trustBox) { - _class_private_field_set(this, _trustBox, (0, _Builderutils.mapBuildArg)(trustBox)); + _class_private_field_set._(this, _trustBox, (0, _Builderutils.mapBuildArg)(trustBox)); return this; } disclaimer(disclaimer) { - _class_private_field_set(this, _disclaimer, disclaimer?.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _disclaimer, disclaimer?.map(_Builderutils.mapBuildArg)); return this; } articleSources(articleSources) { - _class_private_field_set(this, _articleSources, (0, _Builderutils.mapBuildArg)(articleSources)); + _class_private_field_set._(this, _articleSources, (0, _Builderutils.mapBuildArg)(articleSources)); return this; } build() { return { - stages: _class_private_field_get(this, _stages), - trustBox: _class_private_field_get(this, _trustBox), - disclaimer: _class_private_field_get(this, _disclaimer), - articleSources: _class_private_field_get(this, _articleSources) + stages: _class_private_field_get._(this, _stages), + trustBox: _class_private_field_get._(this, _trustBox), + disclaimer: _class_private_field_get._(this, _disclaimer), + articleSources: _class_private_field_get._(this, _articleSources) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _stages, { + _class_private_field_init._(this, _stages, { writable: true, value: [] }); - _class_private_field_init(this, _trustBox, { + _class_private_field_init._(this, _trustBox, { writable: true, value: undefined }); - _class_private_field_init(this, _disclaimer, { + _class_private_field_init._(this, _disclaimer, { writable: true, value: undefined }); - _class_private_field_init(this, _articleSources, { + _class_private_field_init._(this, _articleSources, { writable: true, value: undefined }); @@ -88,26 +88,26 @@ class BodyBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes = /*#__PURE__*/ new WeakMap(), _hidden = /*#__PURE__*/ new WeakMap(); class TrustBoxBuilder extends _AbstractBuilders.AbstractBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes, nodes.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _nodes, nodes.map(_Builderutils.mapBuildArg)); return this; } hidden(hidden) { - _class_private_field_set(this, _hidden, hidden.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _hidden, hidden.map(_Builderutils.mapBuildArg)); return this; } build() { return { - nodes: _class_private_field_get(this, _nodes), - hidden: _class_private_field_get(this, _hidden) + nodes: _class_private_field_get._(this, _nodes), + hidden: _class_private_field_get._(this, _hidden) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes, { + _class_private_field_init._(this, _nodes, { writable: true, value: [] }); - _class_private_field_init(this, _hidden, { + _class_private_field_init._(this, _hidden, { writable: true, value: [] }); @@ -116,17 +116,17 @@ class TrustBoxBuilder extends _AbstractBuilders.AbstractBuilder { var _element = /*#__PURE__*/ new WeakMap(); class OpenerBuilder extends _AbstractBuilders.AbstractBuilder { element(element) { - _class_private_field_set(this, _element, (0, _Builderutils.mapBuildArg)(element)); + _class_private_field_set._(this, _element, (0, _Builderutils.mapBuildArg)(element)); return this; } build() { return { - element: _class_private_field_get(this, _element) + element: _class_private_field_get._(this, _element) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _element, { + _class_private_field_init._(this, _element, { writable: true, value: (0, _ElementBuilder.image)().build() }); @@ -135,45 +135,45 @@ class OpenerBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes1 = /*#__PURE__*/ new WeakMap(), _header = /*#__PURE__*/ new WeakMap(), _companions = /*#__PURE__*/ new WeakMap(), _commercialsEndOfStage = /*#__PURE__*/ new WeakMap(); class BodyStageSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes1, nodes.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _nodes1, nodes.map(_Builderutils.mapBuildArgs)); return this; } header(header) { - _class_private_field_set(this, _header, (0, _Builderutils.mapBuildArgs)(header ?? [])); + _class_private_field_set._(this, _header, (0, _Builderutils.mapBuildArgs)(header ?? [])); return this; } companions(companions) { - _class_private_field_set(this, _companions, companions.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _companions, companions.map(_Builderutils.mapBuildArgs)); return this; } commercialsEndOfStage(commercialsEndOfStage) { - _class_private_field_set(this, _commercialsEndOfStage, commercialsEndOfStage.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _commercialsEndOfStage, commercialsEndOfStage.map(_Builderutils.mapBuildArgs)); return this; } buildListItem(seqNextElement) { return { - id: (0, _Builderutils.hash)("bodyStage", _class_private_field_get(this, _nodes1), _class_private_field_get(this, _companions), _class_private_field_get(this, _commercialsEndOfStage), _class_private_field_get(this, _header)), - nodes: seqNextElement.array(_class_private_field_get(this, _nodes1)), - header: seqNextElement.maybe(_class_private_field_get(this, _header)), - companions: seqNextElement.array(_class_private_field_get(this, _companions)), - commercialsEndOfStage: seqNextElement.array(_class_private_field_get(this, _commercialsEndOfStage)) + id: (0, _Builderutils.hash)("bodyStage", _class_private_field_get._(this, _nodes1), _class_private_field_get._(this, _companions), _class_private_field_get._(this, _commercialsEndOfStage), _class_private_field_get._(this, _header)), + nodes: seqNextElement.array(_class_private_field_get._(this, _nodes1)), + header: seqNextElement.maybe(_class_private_field_get._(this, _header)), + companions: seqNextElement.array(_class_private_field_get._(this, _companions)), + commercialsEndOfStage: seqNextElement.array(_class_private_field_get._(this, _commercialsEndOfStage)) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes1, { + _class_private_field_init._(this, _nodes1, { writable: true, value: [] }); - _class_private_field_init(this, _header, { + _class_private_field_init._(this, _header, { writable: true, value: undefined }); - _class_private_field_init(this, _companions, { + _class_private_field_init._(this, _companions, { writable: true, value: [] }); - _class_private_field_init(this, _commercialsEndOfStage, { + _class_private_field_init._(this, _commercialsEndOfStage, { writable: true, value: [] }); @@ -182,37 +182,37 @@ class BodyStageSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { var _seqBuilder = /*#__PURE__*/ new WeakMap(); class BodyStageBuilder extends _AbstractBuilders.AbstractBuilder { nodes(nodes) { - _class_private_field_get(this, _seqBuilder).nodes([ + _class_private_field_get._(this, _seqBuilder).nodes([ nodes ]); return this; } header(header) { if (header) { - _class_private_field_get(this, _seqBuilder).header([ + _class_private_field_get._(this, _seqBuilder).header([ header ]); } return this; } companions(companions) { - _class_private_field_get(this, _seqBuilder).companions([ + _class_private_field_get._(this, _seqBuilder).companions([ companions ]); return this; } commercialsEndOfStage(commercialsEndOfStage) { - _class_private_field_get(this, _seqBuilder).commercialsEndOfStage([ + _class_private_field_get._(this, _seqBuilder).commercialsEndOfStage([ commercialsEndOfStage ]); return this; } build() { - return _class_private_field_get(this, _seqBuilder).build(); + return _class_private_field_get._(this, _seqBuilder).build(); } constructor(...args){ super(...args); - _class_private_field_init(this, _seqBuilder, { + _class_private_field_init._(this, _seqBuilder, { writable: true, value: new BodyStageSeqBuilder() }); @@ -221,26 +221,26 @@ class BodyStageBuilder extends _AbstractBuilders.AbstractBuilder { var _variant = /*#__PURE__*/ new WeakMap(), _opener = /*#__PURE__*/ new WeakMap(); class BodyHeaderBuilder extends _AbstractBuilders.AbstractBuilder { variant(variant) { - _class_private_field_set(this, _variant, variant); + _class_private_field_set._(this, _variant, variant); return this; } opener(opener) { - _class_private_field_set(this, _opener, (0, _Builderutils.mapBuildArg)(opener)); + _class_private_field_set._(this, _opener, (0, _Builderutils.mapBuildArg)(opener)); return this; } build() { return { - variant: _class_private_field_get(this, _variant), - opener: _class_private_field_get(this, _opener) + variant: _class_private_field_get._(this, _variant), + opener: _class_private_field_get._(this, _opener) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _variant, { + _class_private_field_init._(this, _variant, { writable: true, value: "full" }); - _class_private_field_init(this, _opener, { + _class_private_field_init._(this, _opener, { writable: true, value: undefined }); @@ -249,19 +249,19 @@ class BodyHeaderBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes2 = /*#__PURE__*/ new WeakMap(); class ArticleSourceSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes2, nodes.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _nodes2, nodes.map(_Builderutils.mapBuildArgs)); return this; } buildListItem(seqNextElement) { - const id = (0, _Builderutils.hash)("article-source", _class_private_field_get(this, _nodes2)); + const id = (0, _Builderutils.hash)("article-source", _class_private_field_get._(this, _nodes2)); return { id, - nodes: seqNextElement.array(_class_private_field_get(this, _nodes2)) + nodes: seqNextElement.array(_class_private_field_get._(this, _nodes2)) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes2, { + _class_private_field_init._(this, _nodes2, { writable: true, value: [] }); @@ -270,17 +270,17 @@ class ArticleSourceSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { var _seqBuilder1 = /*#__PURE__*/ new WeakMap(); class ArticleSourceBuilder extends _AbstractBuilders.AbstractBuilder { nodes(...nodes) { - _class_private_field_get(this, _seqBuilder1).nodes([ + _class_private_field_get._(this, _seqBuilder1).nodes([ nodes ]); return this; } build() { - return _class_private_field_get(this, _seqBuilder1).build(); + return _class_private_field_get._(this, _seqBuilder1).build(); } constructor(...nodes){ super(); - _class_private_field_init(this, _seqBuilder1, { + _class_private_field_init._(this, _seqBuilder1, { writable: true, value: new ArticleSourceSeqBuilder() }); @@ -290,26 +290,26 @@ class ArticleSourceBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes3 = /*#__PURE__*/ new WeakMap(), _hidden1 = /*#__PURE__*/ new WeakMap(); class ArticleSourcesBuilder extends _AbstractBuilders.AbstractBuilder { nodes(...nodes) { - _class_private_field_set(this, _nodes3, nodes.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _nodes3, nodes.map(_Builderutils.mapBuildArg)); return this; } hidden(...hidden) { - _class_private_field_set(this, _hidden1, hidden.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _hidden1, hidden.map(_Builderutils.mapBuildArg)); return this; } build() { return { - nodes: _class_private_field_get(this, _nodes3), - hidden: _class_private_field_get(this, _hidden1) + nodes: _class_private_field_get._(this, _nodes3), + hidden: _class_private_field_get._(this, _hidden1) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes3, { + _class_private_field_init._(this, _nodes3, { writable: true, value: [] }); - _class_private_field_init(this, _hidden1, { + _class_private_field_init._(this, _hidden1, { writable: true, value: [] }); diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts index 8bd9f03277af..2f706ffdf93f 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts @@ -19,15 +19,15 @@ _export(exports, { sources: ()=>sources, seq: ()=>seq }); -const _class_private_field_get = require("@swc/helpers/lib/_class_private_field_get.js").default; -const _class_private_field_init = require("@swc/helpers/lib/_class_private_field_init.js").default; -const _class_private_field_set = require("@swc/helpers/lib/_class_private_field_set.js").default; -const _export_star = require("@swc/helpers/lib/_export_star.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _class_private_field_get = require("@swc/helpers/_/_class_private_field_get"); +const _class_private_field_init = require("@swc/helpers/_/_class_private_field_init"); +const _class_private_field_set = require("@swc/helpers/_/_class_private_field_set"); +const _export_star = require("@swc/helpers/_/_export_star"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _AbstractBuilders = require("./AbstractBuilders"); const _Builderutils = require("./Builder.utils"); const _ElementBuilder = require("./ElementBuilder"); -const _BodyNodesBuilder = /*#__PURE__*/ _interop_require_wildcard(_export_star(require("./BodyNodesBuilder"), exports)); +const _BodyNodesBuilder = /*#__PURE__*/ _interop_require_wildcard._(_export_star._(require("./BodyNodesBuilder"), exports)); const create = ()=>new BodyBuilder(); const trustBox = ()=>new TrustBoxBuilder(); const opener = ()=>new OpenerBuilder(); @@ -42,44 +42,44 @@ const seq = { var _stages = /*#__PURE__*/ new WeakMap(), _trustBox = /*#__PURE__*/ new WeakMap(), _disclaimer = /*#__PURE__*/ new WeakMap(), _articleSources = /*#__PURE__*/ new WeakMap(); class BodyBuilder extends _AbstractBuilders.AbstractBuilder { stages(...stages) { - _class_private_field_set(this, _stages, stages.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _stages, stages.map(_Builderutils.mapBuildArg)); return this; } trustBox(trustBox) { - _class_private_field_set(this, _trustBox, (0, _Builderutils.mapBuildArg)(trustBox)); + _class_private_field_set._(this, _trustBox, (0, _Builderutils.mapBuildArg)(trustBox)); return this; } disclaimer(disclaimer) { - _class_private_field_set(this, _disclaimer, disclaimer?.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _disclaimer, disclaimer?.map(_Builderutils.mapBuildArg)); return this; } articleSources(articleSources) { - _class_private_field_set(this, _articleSources, (0, _Builderutils.mapBuildArg)(articleSources)); + _class_private_field_set._(this, _articleSources, (0, _Builderutils.mapBuildArg)(articleSources)); return this; } build() { return { - stages: _class_private_field_get(this, _stages), - trustBox: _class_private_field_get(this, _trustBox), - disclaimer: _class_private_field_get(this, _disclaimer), - articleSources: _class_private_field_get(this, _articleSources) + stages: _class_private_field_get._(this, _stages), + trustBox: _class_private_field_get._(this, _trustBox), + disclaimer: _class_private_field_get._(this, _disclaimer), + articleSources: _class_private_field_get._(this, _articleSources) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _stages, { + _class_private_field_init._(this, _stages, { writable: true, value: [] }); - _class_private_field_init(this, _trustBox, { + _class_private_field_init._(this, _trustBox, { writable: true, value: undefined }); - _class_private_field_init(this, _disclaimer, { + _class_private_field_init._(this, _disclaimer, { writable: true, value: undefined }); - _class_private_field_init(this, _articleSources, { + _class_private_field_init._(this, _articleSources, { writable: true, value: undefined }); @@ -88,26 +88,26 @@ class BodyBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes = /*#__PURE__*/ new WeakMap(), _hidden = /*#__PURE__*/ new WeakMap(); class TrustBoxBuilder extends _AbstractBuilders.AbstractBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes, nodes.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _nodes, nodes.map(_Builderutils.mapBuildArg)); return this; } hidden(hidden) { - _class_private_field_set(this, _hidden, hidden.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _hidden, hidden.map(_Builderutils.mapBuildArg)); return this; } build() { return { - nodes: _class_private_field_get(this, _nodes), - hidden: _class_private_field_get(this, _hidden) + nodes: _class_private_field_get._(this, _nodes), + hidden: _class_private_field_get._(this, _hidden) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes, { + _class_private_field_init._(this, _nodes, { writable: true, value: [] }); - _class_private_field_init(this, _hidden, { + _class_private_field_init._(this, _hidden, { writable: true, value: [] }); @@ -116,17 +116,17 @@ class TrustBoxBuilder extends _AbstractBuilders.AbstractBuilder { var _element = /*#__PURE__*/ new WeakMap(); class OpenerBuilder extends _AbstractBuilders.AbstractBuilder { element(element) { - _class_private_field_set(this, _element, (0, _Builderutils.mapBuildArg)(element)); + _class_private_field_set._(this, _element, (0, _Builderutils.mapBuildArg)(element)); return this; } build() { return { - element: _class_private_field_get(this, _element) + element: _class_private_field_get._(this, _element) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _element, { + _class_private_field_init._(this, _element, { writable: true, value: (0, _ElementBuilder.image)().build() }); @@ -135,45 +135,45 @@ class OpenerBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes1 = /*#__PURE__*/ new WeakMap(), _header = /*#__PURE__*/ new WeakMap(), _companions = /*#__PURE__*/ new WeakMap(), _commercialsEndOfStage = /*#__PURE__*/ new WeakMap(); class BodyStageSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes1, nodes.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _nodes1, nodes.map(_Builderutils.mapBuildArgs)); return this; } header(header) { - _class_private_field_set(this, _header, (0, _Builderutils.mapBuildArgs)(header ?? [])); + _class_private_field_set._(this, _header, (0, _Builderutils.mapBuildArgs)(header ?? [])); return this; } companions(companions) { - _class_private_field_set(this, _companions, companions.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _companions, companions.map(_Builderutils.mapBuildArgs)); return this; } commercialsEndOfStage(commercialsEndOfStage) { - _class_private_field_set(this, _commercialsEndOfStage, commercialsEndOfStage.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _commercialsEndOfStage, commercialsEndOfStage.map(_Builderutils.mapBuildArgs)); return this; } buildListItem(seqNextElement) { return { - id: (0, _Builderutils.hash)("bodyStage", _class_private_field_get(this, _nodes1), _class_private_field_get(this, _companions), _class_private_field_get(this, _commercialsEndOfStage), _class_private_field_get(this, _header)), - nodes: seqNextElement.array(_class_private_field_get(this, _nodes1)), - header: seqNextElement.maybe(_class_private_field_get(this, _header)), - companions: seqNextElement.array(_class_private_field_get(this, _companions)), - commercialsEndOfStage: seqNextElement.array(_class_private_field_get(this, _commercialsEndOfStage)) + id: (0, _Builderutils.hash)("bodyStage", _class_private_field_get._(this, _nodes1), _class_private_field_get._(this, _companions), _class_private_field_get._(this, _commercialsEndOfStage), _class_private_field_get._(this, _header)), + nodes: seqNextElement.array(_class_private_field_get._(this, _nodes1)), + header: seqNextElement.maybe(_class_private_field_get._(this, _header)), + companions: seqNextElement.array(_class_private_field_get._(this, _companions)), + commercialsEndOfStage: seqNextElement.array(_class_private_field_get._(this, _commercialsEndOfStage)) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes1, { + _class_private_field_init._(this, _nodes1, { writable: true, value: [] }); - _class_private_field_init(this, _header, { + _class_private_field_init._(this, _header, { writable: true, value: undefined }); - _class_private_field_init(this, _companions, { + _class_private_field_init._(this, _companions, { writable: true, value: [] }); - _class_private_field_init(this, _commercialsEndOfStage, { + _class_private_field_init._(this, _commercialsEndOfStage, { writable: true, value: [] }); @@ -182,37 +182,37 @@ class BodyStageSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { var _seqBuilder = /*#__PURE__*/ new WeakMap(); class BodyStageBuilder extends _AbstractBuilders.AbstractBuilder { nodes(nodes) { - _class_private_field_get(this, _seqBuilder).nodes([ + _class_private_field_get._(this, _seqBuilder).nodes([ nodes ]); return this; } header(header) { if (header) { - _class_private_field_get(this, _seqBuilder).header([ + _class_private_field_get._(this, _seqBuilder).header([ header ]); } return this; } companions(companions) { - _class_private_field_get(this, _seqBuilder).companions([ + _class_private_field_get._(this, _seqBuilder).companions([ companions ]); return this; } commercialsEndOfStage(commercialsEndOfStage) { - _class_private_field_get(this, _seqBuilder).commercialsEndOfStage([ + _class_private_field_get._(this, _seqBuilder).commercialsEndOfStage([ commercialsEndOfStage ]); return this; } build() { - return _class_private_field_get(this, _seqBuilder).build(); + return _class_private_field_get._(this, _seqBuilder).build(); } constructor(...args){ super(...args); - _class_private_field_init(this, _seqBuilder, { + _class_private_field_init._(this, _seqBuilder, { writable: true, value: new BodyStageSeqBuilder() }); @@ -221,26 +221,26 @@ class BodyStageBuilder extends _AbstractBuilders.AbstractBuilder { var _variant = /*#__PURE__*/ new WeakMap(), _opener = /*#__PURE__*/ new WeakMap(); class BodyHeaderBuilder extends _AbstractBuilders.AbstractBuilder { variant(variant) { - _class_private_field_set(this, _variant, variant); + _class_private_field_set._(this, _variant, variant); return this; } opener(opener) { - _class_private_field_set(this, _opener, (0, _Builderutils.mapBuildArg)(opener)); + _class_private_field_set._(this, _opener, (0, _Builderutils.mapBuildArg)(opener)); return this; } build() { return { - variant: _class_private_field_get(this, _variant), - opener: _class_private_field_get(this, _opener) + variant: _class_private_field_get._(this, _variant), + opener: _class_private_field_get._(this, _opener) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _variant, { + _class_private_field_init._(this, _variant, { writable: true, value: "full" }); - _class_private_field_init(this, _opener, { + _class_private_field_init._(this, _opener, { writable: true, value: undefined }); @@ -249,19 +249,19 @@ class BodyHeaderBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes2 = /*#__PURE__*/ new WeakMap(); class ArticleSourceSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { nodes(nodes) { - _class_private_field_set(this, _nodes2, nodes.map(_Builderutils.mapBuildArgs)); + _class_private_field_set._(this, _nodes2, nodes.map(_Builderutils.mapBuildArgs)); return this; } buildListItem(seqNextElement) { - const id = (0, _Builderutils.hash)("article-source", _class_private_field_get(this, _nodes2)); + const id = (0, _Builderutils.hash)("article-source", _class_private_field_get._(this, _nodes2)); return { id, - nodes: seqNextElement.array(_class_private_field_get(this, _nodes2)) + nodes: seqNextElement.array(_class_private_field_get._(this, _nodes2)) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes2, { + _class_private_field_init._(this, _nodes2, { writable: true, value: [] }); @@ -270,17 +270,17 @@ class ArticleSourceSeqBuilder extends _AbstractBuilders.AbstractSeqBuilder { var _seqBuilder1 = /*#__PURE__*/ new WeakMap(); class ArticleSourceBuilder extends _AbstractBuilders.AbstractBuilder { nodes(...nodes) { - _class_private_field_get(this, _seqBuilder1).nodes([ + _class_private_field_get._(this, _seqBuilder1).nodes([ nodes ]); return this; } build() { - return _class_private_field_get(this, _seqBuilder1).build(); + return _class_private_field_get._(this, _seqBuilder1).build(); } constructor(...nodes){ super(); - _class_private_field_init(this, _seqBuilder1, { + _class_private_field_init._(this, _seqBuilder1, { writable: true, value: new ArticleSourceSeqBuilder() }); @@ -290,30 +290,30 @@ class ArticleSourceBuilder extends _AbstractBuilders.AbstractBuilder { var _nodes3 = /*#__PURE__*/ new WeakMap(), _hidden1 = /*#__PURE__*/ new WeakMap(); class ArticleSourcesBuilder extends _AbstractBuilders.AbstractBuilder { nodes(...nodes) { - _class_private_field_set(this, _nodes3, nodes.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _nodes3, nodes.map(_Builderutils.mapBuildArg)); return this; } hidden(...hidden) { - _class_private_field_set(this, _hidden1, hidden.map(_Builderutils.mapBuildArg)); + _class_private_field_set._(this, _hidden1, hidden.map(_Builderutils.mapBuildArg)); return this; } build() { return { - nodes: _class_private_field_get(this, _nodes3), - hidden: _class_private_field_get(this, _hidden1) + nodes: _class_private_field_get._(this, _nodes3), + hidden: _class_private_field_get._(this, _hidden1) }; } constructor(...args){ super(...args); - _class_private_field_init(this, _nodes3, { + _class_private_field_init._(this, _nodes3, { writable: true, value: [] }); - _class_private_field_init(this, _hidden1, { + _class_private_field_init._(this, _hidden1, { writable: true, value: [] }); } } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFic3RyYWN0QnVpbGRlciwgQWJzdHJhY3RTZXFCdWlsZGVyIH0gZnJvbSBcIi4vQWJzdHJhY3RCdWlsZGVyc1wiO1xuaW1wb3J0IHsgaGFzaCwgbWFwQnVpbGRBcmcsIG1hcEJ1aWxkQXJncyB9IGZyb20gXCIuL0J1aWxkZXIudXRpbHNcIjtcbmltcG9ydCB7IGltYWdlIH0gZnJvbSBcIi4vRWxlbWVudEJ1aWxkZXJcIjtcblxuaW1wb3J0IHR5cGUge1xuICAgIEJvZHksXG4gICAgQm9keVN0YWdlLFxuICAgIFRydXN0Qm94LFxuICAgIFJpY2hUZXh0LFxuICAgIE9wZW5lcixcbiAgICBCb2R5SGVhZGVyLFxuICAgIFN0YWdlLFxuICAgIEFydGljbGVTb3VyY2UsXG4gICAgQXJ0aWNsZVNvdXJjZXMsXG59IGZyb20gXCJAcGFwZXIvbW9kZWxzXCI7XG5pbXBvcnQgdHlwZSB7XG4gICAgQnVpbGRBcmcsXG4gICAgQnVpbGRBcmdzLFxuICAgIENyZWF0ZUJ1aWxkZXIsXG4gICAgU2VxRWxlbWVudCxcbiAgICBTZXFOZXh0RWxlbWVudENvbnZlcnRlcixcbn0gZnJvbSBcIi4vdHlwZXNcIjtcblxuLyoqXG4gKiBAZGVwcmVjYXRlZCB1c2Uge0J1aWxkZXIuYm9keS5ub2RlLmltZygpfVxuICovXG5leHBvcnQgKiBmcm9tIFwiLi9Cb2R5Tm9kZXNCdWlsZGVyXCI7XG5leHBvcnQgKiBhcyBub2RlIGZyb20gXCIuL0JvZHlOb2Rlc0J1aWxkZXJcIjtcblxuZXhwb3J0IGNvbnN0IGNyZWF0ZTogQ3JlYXRlQnVpbGRlcjxCb2R5QnVpbGRlcj4gPSAoKSA9PiBuZXcgQm9keUJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCB0cnVzdEJveDogQ3JlYXRlQnVpbGRlcjxUcnVzdEJveEJ1aWxkZXI+ID0gKCkgPT5cbiAgICBuZXcgVHJ1c3RCb3hCdWlsZGVyKCk7XG5leHBvcnQgY29uc3Qgb3BlbmVyOiBDcmVhdGVCdWlsZGVyPE9wZW5lckJ1aWxkZXI+ID0gKCkgPT4gbmV3IE9wZW5lckJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBzdGFnZTogQ3JlYXRlQnVpbGRlcjxCb2R5U3RhZ2VCdWlsZGVyPiA9ICgpID0+XG4gICAgbmV3IEJvZHlTdGFnZUJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBoZWFkZXI6IENyZWF0ZUJ1aWxkZXI8Qm9keUhlYWRlckJ1aWxkZXI+ID0gKCkgPT5cbiAgICBuZXcgQm9keUhlYWRlckJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBzb3VyY2U6IENyZWF0ZUJ1aWxkZXI8XG4gICAgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIsXG4gICAgQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+XG4+ID0gKG5vZGVzOiBCdWlsZEFyZ3M8UmljaFRleHQuTm9kZT4gPSBbXSkgPT5cbiAgICBuZXcgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIoLi4ubm9kZXMpO1xuZXhwb3J0IGNvbnN0IHNvdXJjZXM6IENyZWF0ZUJ1aWxkZXI8QXJ0aWNsZVNvdXJjZXNCdWlsZGVyPiA9ICgpID0+XG4gICAgbmV3IEFydGljbGVTb3VyY2VzQnVpbGRlcigpO1xuXG5leHBvcnQgY29uc3Qgc2VxID0ge1xuICAgIHN0YWdlOiAoKCkgPT5cbiAgICAgICAgbmV3IEJvZHlTdGFnZVNlcUJ1aWxkZXIoKSkgYXMgQ3JlYXRlQnVpbGRlcjxCb2R5U3RhZ2VTZXFCdWlsZGVyPixcbiAgICBzb3VyY2U6ICgoKSA9PlxuICAgICAgICBuZXcgQXJ0aWNsZVNvdXJjZVNlcUJ1aWxkZXIoKSkgYXMgQ3JlYXRlQnVpbGRlcjxBcnRpY2xlU291cmNlU2VxQnVpbGRlcj4sXG59IGFzIGNvbnN0O1xuXG5jbGFzcyBCb2R5QnVpbGRlciBleHRlbmRzIEFic3RyYWN0QnVpbGRlcjxCb2R5PiB7XG4gICAgI3N0YWdlczogQm9keVN0YWdlW10gPSBbXTtcbiAgICAjdHJ1c3RCb3g/OiBUcnVzdEJveCA9IHVuZGVmaW5lZDtcbiAgICAjZGlzY2xhaW1lcj86IFJpY2hUZXh0Lk5vZGVbXSA9IHVuZGVmaW5lZDtcbiAgICAjYXJ0aWNsZVNvdXJjZXM/OiBBcnRpY2xlU291cmNlcyA9IHVuZGVmaW5lZDtcblxuICAgIHN0YWdlcyguLi5zdGFnZXM6IEJ1aWxkQXJnczxCb2R5U3RhZ2U+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI3N0YWdlcyA9IHN0YWdlcy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICB0cnVzdEJveCh0cnVzdEJveD86IEJ1aWxkQXJnPFRydXN0Qm94Pik6IHRoaXMge1xuICAgICAgICB0aGlzLiN0cnVzdEJveCA9IG1hcEJ1aWxkQXJnKHRydXN0Qm94KTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgZGlzY2xhaW1lcihkaXNjbGFpbWVyPzogQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI2Rpc2NsYWltZXIgPSBkaXNjbGFpbWVyPy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBhcnRpY2xlU291cmNlcyhhcnRpY2xlU291cmNlcz86IEJ1aWxkQXJnPEFydGljbGVTb3VyY2VzPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNhcnRpY2xlU291cmNlcyA9IG1hcEJ1aWxkQXJnKGFydGljbGVTb3VyY2VzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogQm9keSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBzdGFnZXM6IHRoaXMuI3N0YWdlcyxcbiAgICAgICAgICAgIHRydXN0Qm94OiB0aGlzLiN0cnVzdEJveCxcbiAgICAgICAgICAgIGRpc2NsYWltZXI6IHRoaXMuI2Rpc2NsYWltZXIsXG4gICAgICAgICAgICBhcnRpY2xlU291cmNlczogdGhpcy4jYXJ0aWNsZVNvdXJjZXMsXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBUcnVzdEJveEJ1aWxkZXIgZXh0ZW5kcyBBYnN0cmFjdEJ1aWxkZXI8VHJ1c3RCb3g+IHtcbiAgICAjbm9kZXM6IFJpY2hUZXh0Lk5vZGVbXSA9IFtdO1xuICAgICNoaWRkZW46IFJpY2hUZXh0Lk5vZGVbXSA9IFtdO1xuXG4gICAgbm9kZXMobm9kZXM6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNub2RlcyA9IG5vZGVzLm1hcChtYXBCdWlsZEFyZyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGhpZGRlbihoaWRkZW46IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNoaWRkZW4gPSBoaWRkZW4ubWFwKG1hcEJ1aWxkQXJnKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogVHJ1c3RCb3gge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgbm9kZXM6IHRoaXMuI25vZGVzLFxuICAgICAgICAgICAgaGlkZGVuOiB0aGlzLiNoaWRkZW4sXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBPcGVuZXJCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPE9wZW5lcj4ge1xuICAgICNlbGVtZW50OiBPcGVuZXJbXCJlbGVtZW50XCJdID0gaW1hZ2UoKS5idWlsZCgpO1xuXG4gICAgZWxlbWVudChlbGVtZW50OiBCdWlsZEFyZzxPcGVuZXJbXCJlbGVtZW50XCJdPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNlbGVtZW50ID0gbWFwQnVpbGRBcmcoZWxlbWVudCk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IE9wZW5lciB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBlbGVtZW50OiB0aGlzLiNlbGVtZW50LFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuY2xhc3MgQm9keVN0YWdlU2VxQnVpbGRlciBleHRlbmRzIEFic3RyYWN0U2VxQnVpbGRlcjxCb2R5U3RhZ2U+IHtcbiAgICAjbm9kZXM6IFNlcUVsZW1lbnQ8UmljaFRleHQuTm9kZVtdPiA9IFtdO1xuICAgICNoZWFkZXI/OiBTZXFFbGVtZW50PEJvZHlIZWFkZXI+ID0gdW5kZWZpbmVkO1xuICAgICNjb21wYW5pb25zOiBTZXFFbGVtZW50PFN0YWdlLkNvbXBhbmlvbkl0ZW1bXT4gPSBbXTtcbiAgICAjY29tbWVyY2lhbHNFbmRPZlN0YWdlOiBTZXFFbGVtZW50PFJpY2hUZXh0Lk5vZGVbXT4gPSBbXTtcblxuICAgIG5vZGVzKG5vZGVzOiBTZXFFbGVtZW50PEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgaGVhZGVyKGhlYWRlcj86IFNlcUVsZW1lbnQ8QnVpbGRBcmc8Qm9keUhlYWRlcj4+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI2hlYWRlciA9IG1hcEJ1aWxkQXJncyhoZWFkZXIgPz8gW10pO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBjb21wYW5pb25zKGNvbXBhbmlvbnM6IFNlcUVsZW1lbnQ8QnVpbGRBcmdzPFN0YWdlLkNvbXBhbmlvbkl0ZW0+Pik6IHRoaXMge1xuICAgICAgICB0aGlzLiNjb21wYW5pb25zID0gY29tcGFuaW9ucy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlKFxuICAgICAgICBjb21tZXJjaWFsc0VuZE9mU3RhZ2U6IFNlcUVsZW1lbnQ8QnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+PlxuICAgICk6IHRoaXMge1xuICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2UgPSBjb21tZXJjaWFsc0VuZE9mU3RhZ2UubWFwKG1hcEJ1aWxkQXJncyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkTGlzdEl0ZW0oc2VxTmV4dEVsZW1lbnQ6IFNlcU5leHRFbGVtZW50Q29udmVydGVyKTogQm9keVN0YWdlIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGlkOiBoYXNoKFxuICAgICAgICAgICAgICAgIFwiYm9keVN0YWdlXCIsXG4gICAgICAgICAgICAgICAgdGhpcy4jbm9kZXMsXG4gICAgICAgICAgICAgICAgdGhpcy4jY29tcGFuaW9ucyxcbiAgICAgICAgICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2UsXG4gICAgICAgICAgICAgICAgdGhpcy4jaGVhZGVyXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgbm9kZXM6IHNlcU5leHRFbGVtZW50LmFycmF5KHRoaXMuI25vZGVzKSxcbiAgICAgICAgICAgIGhlYWRlcjogc2VxTmV4dEVsZW1lbnQubWF5YmUodGhpcy4jaGVhZGVyKSxcbiAgICAgICAgICAgIGNvbXBhbmlvbnM6IHNlcU5leHRFbGVtZW50LmFycmF5KHRoaXMuI2NvbXBhbmlvbnMpLFxuICAgICAgICAgICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlOiBzZXFOZXh0RWxlbWVudC5hcnJheShcbiAgICAgICAgICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2VcbiAgICAgICAgICAgICksXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBCb2R5U3RhZ2VCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPEJvZHlTdGFnZT4ge1xuICAgICNzZXFCdWlsZGVyOiBCb2R5U3RhZ2VTZXFCdWlsZGVyID0gbmV3IEJvZHlTdGFnZVNlcUJ1aWxkZXIoKTtcblxuICAgIG5vZGVzKG5vZGVzOiBCdWlsZEFyZ3M8UmljaFRleHQuTm9kZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jc2VxQnVpbGRlci5ub2Rlcyhbbm9kZXNdKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgaGVhZGVyKGhlYWRlcj86IEJ1aWxkQXJnPEJvZHlIZWFkZXI+KTogdGhpcyB7XG4gICAgICAgIGlmIChoZWFkZXIpIHtcbiAgICAgICAgICAgIHRoaXMuI3NlcUJ1aWxkZXIuaGVhZGVyKFtoZWFkZXJdKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBjb21wYW5pb25zKGNvbXBhbmlvbnM6IEJ1aWxkQXJnczxTdGFnZS5Db21wYW5pb25JdGVtPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNzZXFCdWlsZGVyLmNvbXBhbmlvbnMoW2NvbXBhbmlvbnNdKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlKFxuICAgICAgICBjb21tZXJjaWFsc0VuZE9mU3RhZ2U6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPlxuICAgICk6IHRoaXMge1xuICAgICAgICB0aGlzLiNzZXFCdWlsZGVyLmNvbW1lcmNpYWxzRW5kT2ZTdGFnZShbY29tbWVyY2lhbHNFbmRPZlN0YWdlXSk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEJvZHlTdGFnZSB7XG4gICAgICAgIHJldHVybiB0aGlzLiNzZXFCdWlsZGVyLmJ1aWxkKCk7XG4gICAgfVxufVxuXG5jbGFzcyBCb2R5SGVhZGVyQnVpbGRlciBleHRlbmRzIEFic3RyYWN0QnVpbGRlcjxCb2R5SGVhZGVyPiB7XG4gICAgI3ZhcmlhbnQ6IEJvZHlIZWFkZXJbXCJ2YXJpYW50XCJdID0gXCJmdWxsXCI7XG4gICAgI29wZW5lcj86IE9wZW5lciA9IHVuZGVmaW5lZDtcblxuICAgIHZhcmlhbnQodmFyaWFudDogQm9keUhlYWRlcltcInZhcmlhbnRcIl0pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jdmFyaWFudCA9IHZhcmlhbnQ7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIG9wZW5lcihvcGVuZXI6IEJ1aWxkQXJnPE9wZW5lcj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jb3BlbmVyID0gbWFwQnVpbGRBcmcob3BlbmVyKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogQm9keUhlYWRlciB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB2YXJpYW50OiB0aGlzLiN2YXJpYW50LFxuICAgICAgICAgICAgb3BlbmVyOiB0aGlzLiNvcGVuZXIsXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBBcnRpY2xlU291cmNlU2VxQnVpbGRlciBleHRlbmRzIEFic3RyYWN0U2VxQnVpbGRlcjxBcnRpY2xlU291cmNlPiB7XG4gICAgI25vZGVzOiBTZXFFbGVtZW50PFJpY2hUZXh0Lk5vZGVbXT4gPSBbXTtcblxuICAgIG5vZGVzKG5vZGVzOiBTZXFFbGVtZW50PEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGRMaXN0SXRlbShzZXFOZXh0RWxlbWVudDogU2VxTmV4dEVsZW1lbnRDb252ZXJ0ZXIpOiBBcnRpY2xlU291cmNlIHtcbiAgICAgICAgY29uc3QgaWQgPSBoYXNoKFwiYXJ0aWNsZS1zb3VyY2VcIiwgdGhpcy4jbm9kZXMpO1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICBub2Rlczogc2VxTmV4dEVsZW1lbnQuYXJyYXkodGhpcy4jbm9kZXMpLFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuY2xhc3MgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIgZXh0ZW5kcyBBYnN0cmFjdEJ1aWxkZXI8QXJ0aWNsZVNvdXJjZT4ge1xuICAgICNzZXFCdWlsZGVyOiBBcnRpY2xlU291cmNlU2VxQnVpbGRlciA9IG5ldyBBcnRpY2xlU291cmNlU2VxQnVpbGRlcigpO1xuXG4gICAgY29uc3RydWN0b3IoLi4ubm9kZXM6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPikge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICB0aGlzLm5vZGVzKC4uLm5vZGVzKTtcbiAgICB9XG5cbiAgICBub2RlcyguLi5ub2RlczogQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI3NlcUJ1aWxkZXIubm9kZXMoW25vZGVzXSk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEFydGljbGVTb3VyY2Uge1xuICAgICAgICByZXR1cm4gdGhpcy4jc2VxQnVpbGRlci5idWlsZCgpO1xuICAgIH1cbn1cblxuY2xhc3MgQXJ0aWNsZVNvdXJjZXNCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPEFydGljbGVTb3VyY2VzPiB7XG4gICAgI25vZGVzOiBBcnRpY2xlU291cmNlW10gPSBbXTtcbiAgICAjaGlkZGVuOiBBcnRpY2xlU291cmNlW10gPSBbXTtcblxuICAgIG5vZGVzKC4uLm5vZGVzOiBCdWlsZEFyZ3M8QXJ0aWNsZVNvdXJjZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBoaWRkZW4oLi4uaGlkZGVuOiBCdWlsZEFyZ3M8QXJ0aWNsZVNvdXJjZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jaGlkZGVuID0gaGlkZGVuLm1hcChtYXBCdWlsZEFyZyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEFydGljbGVTb3VyY2VzIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIG5vZGVzOiB0aGlzLiNub2RlcyxcbiAgICAgICAgICAgIGhpZGRlbjogdGhpcy4jaGlkZGVuLFxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdLCJuYW1lcyI6WyJub2RlIiwiY3JlYXRlIiwidHJ1c3RCb3giLCJvcGVuZXIiLCJzdGFnZSIsImhlYWRlciIsInNvdXJjZSIsInNvdXJjZXMiLCJzZXEiLCJCb2R5QnVpbGRlciIsIlRydXN0Qm94QnVpbGRlciIsIk9wZW5lckJ1aWxkZXIiLCJCb2R5U3RhZ2VCdWlsZGVyIiwiQm9keUhlYWRlckJ1aWxkZXIiLCJub2RlcyIsIkFydGljbGVTb3VyY2VCdWlsZGVyIiwiQXJ0aWNsZVNvdXJjZXNCdWlsZGVyIiwiQm9keVN0YWdlU2VxQnVpbGRlciIsIkFydGljbGVTb3VyY2VTZXFCdWlsZGVyIiwiQWJzdHJhY3RCdWlsZGVyIiwic3RhZ2VzIiwibWFwIiwibWFwQnVpbGRBcmciLCJkaXNjbGFpbWVyIiwiYXJ0aWNsZVNvdXJjZXMiLCJidWlsZCIsInVuZGVmaW5lZCIsImhpZGRlbiIsImVsZW1lbnQiLCJpbWFnZSIsIkFic3RyYWN0U2VxQnVpbGRlciIsIm1hcEJ1aWxkQXJncyIsImNvbXBhbmlvbnMiLCJjb21tZXJjaWFsc0VuZE9mU3RhZ2UiLCJidWlsZExpc3RJdGVtIiwic2VxTmV4dEVsZW1lbnQiLCJpZCIsImhhc2giLCJhcnJheSIsIm1heWJlIiwic2VxQnVpbGRlciIsInZhcmlhbnQiLCJjb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUEyQllBLElBQUk7SUFFSEMsTUFBTSxNQUFOQTtJQUNBQyxRQUFRLE1BQVJBO0lBRUFDLE1BQU0sTUFBTkE7SUFDQUMsS0FBSyxNQUFMQTtJQUVBQyxNQUFNLE1BQU5BO0lBRUFDLE1BQU0sTUFBTkE7SUFLQUMsT0FBTyxNQUFQQTtJQUdBQyxHQUFHLE1BQUhBOzs7Ozs7O2tDQTdDdUM7OEJBQ0o7Z0NBQzFCO3VGQXdCUjtBQUdQLE1BQU1QLFNBQXFDLElBQU0sSUFBSVE7QUFDckQsTUFBTVAsV0FBMkMsSUFDcEQsSUFBSVE7QUFDRCxNQUFNUCxTQUF1QyxJQUFNLElBQUlRO0FBQ3ZELE1BQU1QLFFBQXlDLElBQ2xELElBQUlRO0FBQ0QsTUFBTVAsU0FBMkMsSUFDcEQsSUFBSVE7QUFDRCxNQUFNUCxTQUdULENBQUNRLFFBQWtDLEVBQUUsR0FDckMsSUFBSUMsd0JBQXdCRDtBQUN6QixNQUFNUCxVQUFnRCxJQUN6RCxJQUFJUztBQUVELE1BQU1SLE1BQU07SUFDZkosT0FBUSxJQUNKLElBQUlhO0lBQ1JYLFFBQVMsSUFDTCxJQUFJWTtBQUNaO0lBR0ksdUNBQ0EseUNBQ0EsMkNBQ0E7QUFKSixNQUFNVCxvQkFBb0JVLGlDQUFlO0lBTXJDQyxPQUFPLEdBQUdBLE1BQTRCLEVBQVE7dUNBQ3BDQSxTQUFTQSxPQUFPQyxHQUFHLENBQUNDLHlCQUFXO1FBQ3JDLE9BQU8sSUFBSTtJQUNmO0lBRUFwQixTQUFTQSxRQUE2QixFQUFRO3VDQUNwQ0EsV0FBV29CLElBQUFBLHlCQUFXLEVBQUNwQjtRQUM3QixPQUFPLElBQUk7SUFDZjtJQUVBcUIsV0FBV0EsVUFBcUMsRUFBUTt1Q0FDOUNBLGFBQWFBLFlBQVlGLElBQUlDLHlCQUFXO1FBQzlDLE9BQU8sSUFBSTtJQUNmO0lBRUFFLGVBQWVBLGNBQXlDLEVBQVE7dUNBQ3REQSxpQkFBaUJGLElBQUFBLHlCQUFXLEVBQUNFO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFDLFFBQWM7UUFDVixPQUFPO1lBQ0hMLE1BQU0sMkJBQUUsSUFBSSxFQUFFQTtZQUNkbEIsUUFBUSwyQkFBRSxJQUFJLEVBQUVBO1lBQ2hCcUIsVUFBVSwyQkFBRSxJQUFJLEVBQUVBO1lBQ2xCQyxjQUFjLDJCQUFFLElBQUksRUFBRUE7UUFDMUI7SUFDSjs7O1FBaENBLGdDQUFBOzttQkFBdUIsRUFBRTs7UUFDekIsZ0NBQUE7O21CQUF1QkU7O1FBQ3ZCLGdDQUFBOzttQkFBZ0NBOztRQUNoQyxnQ0FBQTs7bUJBQW1DQTs7O0FBOEJ2QztJQUdJLHNDQUNBO0FBRkosTUFBTWhCLHdCQUF3QlMsaUNBQWU7SUFJekNMLE1BQU1BLEtBQStCLEVBQVE7dUNBQ25DQSxRQUFRQSxNQUFNTyxHQUFHLENBQUNDLHlCQUFXO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFLLE9BQU9BLE1BQWdDLEVBQVE7dUNBQ3JDQSxTQUFTQSxPQUFPTixHQUFHLENBQUNDLHlCQUFXO1FBQ3JDLE9BQU8sSUFBSTtJQUNmO0lBRUFHLFFBQWtCO1FBQ2QsT0FBTztZQUNIWCxLQUFLLDJCQUFFLElBQUksRUFBRUE7WUFDYmEsTUFBTSwyQkFBRSxJQUFJLEVBQUVBO1FBQ2xCO0lBQ0o7OztRQWxCQSxnQ0FBQTs7bUJBQTBCLEVBQUU7O1FBQzVCLGdDQUFBOzttQkFBMkIsRUFBRTs7O0FBa0JqQztJQUdJO0FBREosTUFBTWhCLHNCQUFzQlEsaUNBQWU7SUFHdkNTLFFBQVFBLE9BQW9DLEVBQVE7dUNBQzFDQSxVQUFVTixJQUFBQSx5QkFBVyxFQUFDTTtRQUM1QixPQUFPLElBQUk7SUFDZjtJQUVBSCxRQUFnQjtRQUNaLE9BQU87WUFDSEcsT0FBTywyQkFBRSxJQUFJLEVBQUVBO1FBQ25CO0lBQ0o7OztRQVhBLGdDQUFBOzttQkFBOEJDLElBQUFBLHFCQUFLLElBQUdKLEtBQUs7OztBQVkvQztJQUdJLHVDQUNBLHVDQUNBLDJDQUNBO0FBSkosTUFBTVIsNEJBQTRCYSxvQ0FBa0I7SUFNaERoQixNQUFNQSxLQUEyQyxFQUFRO3VDQUMvQ0EsU0FBUUEsTUFBTU8sR0FBRyxDQUFDVSwwQkFBWTtRQUNwQyxPQUFPLElBQUk7SUFDZjtJQUVBMUIsT0FBT0EsTUFBeUMsRUFBUTt1Q0FDOUNBLFNBQVMwQixJQUFBQSwwQkFBWSxFQUFDMUIsVUFBVSxFQUFFO1FBQ3hDLE9BQU8sSUFBSTtJQUNmO0lBRUEyQixXQUFXQSxVQUFzRCxFQUFRO3VDQUMvREEsYUFBYUEsV0FBV1gsR0FBRyxDQUFDVSwwQkFBWTtRQUM5QyxPQUFPLElBQUk7SUFDZjtJQUVBRSxzQkFDSUEscUJBQTJELEVBQ3ZEO3VDQUNFQSx3QkFBd0JBLHNCQUFzQlosR0FBRyxDQUFDVSwwQkFBWTtRQUNwRSxPQUFPLElBQUk7SUFDZjtJQUVBRyxjQUFjQyxjQUF1QyxFQUFhO1FBQzlELE9BQU87WUFDSEMsSUFBSUMsSUFBQUEsa0JBQUksRUFDSixzQ0FDQSxJQUFJLEVBQUV2QixtQ0FDTixJQUFJLEVBQUVrQix1Q0FDTixJQUFJLEVBQUVDLGtEQUNOLElBQUksRUFBRTVCO1lBRVZTLE9BQU9xQixlQUFlRyxLQUFLLDBCQUFDLElBQUksRUFBRXhCO1lBQ2xDVCxRQUFROEIsZUFBZUksS0FBSywwQkFBQyxJQUFJLEVBQUVsQztZQUNuQzJCLFlBQVlHLGVBQWVHLEtBQUssMEJBQUMsSUFBSSxFQUFFTjtZQUN2Q0MsdUJBQXVCRSxlQUFlRyxLQUFLLDBCQUN2QyxJQUFJLEVBQUVMO1FBRWQ7SUFDSjs7O1FBM0NBLGdDQUFBOzttQkFBc0MsRUFBRTs7UUFDeEMsZ0NBQUE7O21CQUFtQ1A7O1FBQ25DLGdDQUFBOzttQkFBaUQsRUFBRTs7UUFDbkQsZ0NBQUE7O21CQUFzRCxFQUFFOzs7QUF5QzVEO0lBR0k7QUFESixNQUFNZCx5QkFBeUJPLGlDQUFlO0lBRzFDTCxNQUFNQSxLQUErQixFQUFRO1FBQ3pDLHlCQUFBLElBQUksRUFBRTBCLGFBQVcxQixLQUFLLENBQUM7WUFBQ0E7U0FBTTtRQUM5QixPQUFPLElBQUk7SUFDZjtJQUVBVCxPQUFPQSxNQUE2QixFQUFRO1FBQ3hDLElBQUlBLFFBQVE7WUFDUix5QkFBQSxJQUFJLEVBQUVtQyxhQUFXbkMsTUFBTSxDQUFDO2dCQUFDQTthQUFPO1FBQ3BDLENBQUM7UUFDRCxPQUFPLElBQUk7SUFDZjtJQUVBMkIsV0FBV0EsVUFBMEMsRUFBUTtRQUN6RCx5QkFBQSxJQUFJLEVBQUVRLGFBQVdSLFVBQVUsQ0FBQztZQUFDQTtTQUFXO1FBQ3hDLE9BQU8sSUFBSTtJQUNmO0lBRUFDLHNCQUNJQSxxQkFBK0MsRUFDM0M7UUFDSix5QkFBQSxJQUFJLEVBQUVPLGFBQVdQLHFCQUFxQixDQUFDO1lBQUNBO1NBQXNCO1FBQzlELE9BQU8sSUFBSTtJQUNmO0lBRUFSLFFBQW1CO1FBQ2YsT0FBTyx5QkFBQSxJQUFJLEVBQUVlLGFBQVdmLEtBQUs7SUFDakM7OztRQTVCQSxnQ0FBQTs7bUJBQW1DLElBQUlSOzs7QUE2QjNDO0lBR0ksd0NBQ0E7QUFGSixNQUFNSiwwQkFBMEJNLGlDQUFlO0lBSTNDc0IsUUFBUUEsT0FBOEIsRUFBUTt1Q0FDcENBLFVBQVVBO1FBQ2hCLE9BQU8sSUFBSTtJQUNmO0lBRUF0QyxPQUFPQSxNQUF3QixFQUFRO3VDQUM3QkEsU0FBU21CLElBQUFBLHlCQUFXLEVBQUNuQjtRQUMzQixPQUFPLElBQUk7SUFDZjtJQUVBc0IsUUFBb0I7UUFDaEIsT0FBTztZQUNIZ0IsT0FBTywyQkFBRSxJQUFJLEVBQUVBO1lBQ2Z0QyxNQUFNLDJCQUFFLElBQUksRUFBRUE7UUFDbEI7SUFDSjs7O1FBbEJBLGdDQUFBOzttQkFBa0M7O1FBQ2xDLGdDQUFBOzttQkFBbUJ1Qjs7O0FBa0J2QjtJQUdJO0FBREosTUFBTVIsZ0NBQWdDWSxvQ0FBa0I7SUFHcERoQixNQUFNQSxLQUEyQyxFQUFRO3VDQUMvQ0EsU0FBUUEsTUFBTU8sR0FBRyxDQUFDVSwwQkFBWTtRQUNwQyxPQUFPLElBQUk7SUFDZjtJQUVBRyxjQUFjQyxjQUF1QyxFQUFpQjtRQUNsRSxNQUFNQyxLQUFLQyxJQUFBQSxrQkFBSSxFQUFDLDJDQUFrQixJQUFJLEVBQUV2QjtRQUN4QyxPQUFPO1lBQ0hzQjtZQUNBdEIsT0FBT3FCLGVBQWVHLEtBQUssMEJBQUMsSUFBSSxFQUFFeEI7UUFDdEM7SUFDSjs7O1FBYkEsZ0NBQUE7O21CQUFzQyxFQUFFOzs7QUFjNUM7SUFHSTtBQURKLE1BQU1DLDZCQUE2QkksaUNBQWU7SUFROUNMLE1BQU0sR0FBR0EsS0FBK0IsRUFBUTtRQUM1Qyx5QkFBQSxJQUFJLEVBQUUwQixjQUFXMUIsS0FBSyxDQUFDO1lBQUNBO1NBQU07UUFDOUIsT0FBTyxJQUFJO0lBQ2Y7SUFFQVcsUUFBdUI7UUFDbkIsT0FBTyx5QkFBQSxJQUFJLEVBQUVlLGNBQVdmLEtBQUs7SUFDakM7SUFaQWlCLFlBQVksR0FBRzVCLEtBQStCLENBQUU7UUFDNUMsS0FBSztRQUhULGdDQUFBOzttQkFBdUMsSUFBSUk7O1FBSXZDLElBQUksQ0FBQ0osS0FBSyxJQUFJQTtJQUNsQjtBQVVKO0lBR0ksdUNBQ0E7QUFGSixNQUFNRSw4QkFBOEJHLGlDQUFlO0lBSS9DTCxNQUFNLEdBQUdBLEtBQStCLEVBQVE7dUNBQ3RDQSxTQUFRQSxNQUFNTyxHQUFHLENBQUNDLHlCQUFXO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFLLE9BQU8sR0FBR0EsTUFBZ0MsRUFBUTt1Q0FDeENBLFVBQVNBLE9BQU9OLEdBQUcsQ0FBQ0MseUJBQVc7UUFDckMsT0FBTyxJQUFJO0lBQ2Y7SUFFQUcsUUFBd0I7UUFDcEIsT0FBTztZQUNIWCxLQUFLLDJCQUFFLElBQUksRUFBRUE7WUFDYmEsTUFBTSwyQkFBRSxJQUFJLEVBQUVBO1FBQ2xCO0lBQ0o7OztRQWxCQSxnQ0FBQTs7bUJBQTBCLEVBQUU7O1FBQzVCLGdDQUFBOzttQkFBMkIsRUFBRTs7O0FBa0JqQyJ9 +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFic3RyYWN0QnVpbGRlciwgQWJzdHJhY3RTZXFCdWlsZGVyIH0gZnJvbSBcIi4vQWJzdHJhY3RCdWlsZGVyc1wiO1xuaW1wb3J0IHsgaGFzaCwgbWFwQnVpbGRBcmcsIG1hcEJ1aWxkQXJncyB9IGZyb20gXCIuL0J1aWxkZXIudXRpbHNcIjtcbmltcG9ydCB7IGltYWdlIH0gZnJvbSBcIi4vRWxlbWVudEJ1aWxkZXJcIjtcblxuaW1wb3J0IHR5cGUge1xuICAgIEJvZHksXG4gICAgQm9keVN0YWdlLFxuICAgIFRydXN0Qm94LFxuICAgIFJpY2hUZXh0LFxuICAgIE9wZW5lcixcbiAgICBCb2R5SGVhZGVyLFxuICAgIFN0YWdlLFxuICAgIEFydGljbGVTb3VyY2UsXG4gICAgQXJ0aWNsZVNvdXJjZXMsXG59IGZyb20gXCJAcGFwZXIvbW9kZWxzXCI7XG5pbXBvcnQgdHlwZSB7XG4gICAgQnVpbGRBcmcsXG4gICAgQnVpbGRBcmdzLFxuICAgIENyZWF0ZUJ1aWxkZXIsXG4gICAgU2VxRWxlbWVudCxcbiAgICBTZXFOZXh0RWxlbWVudENvbnZlcnRlcixcbn0gZnJvbSBcIi4vdHlwZXNcIjtcblxuLyoqXG4gKiBAZGVwcmVjYXRlZCB1c2Uge0J1aWxkZXIuYm9keS5ub2RlLmltZygpfVxuICovXG5leHBvcnQgKiBmcm9tIFwiLi9Cb2R5Tm9kZXNCdWlsZGVyXCI7XG5leHBvcnQgKiBhcyBub2RlIGZyb20gXCIuL0JvZHlOb2Rlc0J1aWxkZXJcIjtcblxuZXhwb3J0IGNvbnN0IGNyZWF0ZTogQ3JlYXRlQnVpbGRlcjxCb2R5QnVpbGRlcj4gPSAoKSA9PiBuZXcgQm9keUJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCB0cnVzdEJveDogQ3JlYXRlQnVpbGRlcjxUcnVzdEJveEJ1aWxkZXI+ID0gKCkgPT5cbiAgICBuZXcgVHJ1c3RCb3hCdWlsZGVyKCk7XG5leHBvcnQgY29uc3Qgb3BlbmVyOiBDcmVhdGVCdWlsZGVyPE9wZW5lckJ1aWxkZXI+ID0gKCkgPT4gbmV3IE9wZW5lckJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBzdGFnZTogQ3JlYXRlQnVpbGRlcjxCb2R5U3RhZ2VCdWlsZGVyPiA9ICgpID0+XG4gICAgbmV3IEJvZHlTdGFnZUJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBoZWFkZXI6IENyZWF0ZUJ1aWxkZXI8Qm9keUhlYWRlckJ1aWxkZXI+ID0gKCkgPT5cbiAgICBuZXcgQm9keUhlYWRlckJ1aWxkZXIoKTtcbmV4cG9ydCBjb25zdCBzb3VyY2U6IENyZWF0ZUJ1aWxkZXI8XG4gICAgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIsXG4gICAgQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+XG4+ID0gKG5vZGVzOiBCdWlsZEFyZ3M8UmljaFRleHQuTm9kZT4gPSBbXSkgPT5cbiAgICBuZXcgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIoLi4ubm9kZXMpO1xuZXhwb3J0IGNvbnN0IHNvdXJjZXM6IENyZWF0ZUJ1aWxkZXI8QXJ0aWNsZVNvdXJjZXNCdWlsZGVyPiA9ICgpID0+XG4gICAgbmV3IEFydGljbGVTb3VyY2VzQnVpbGRlcigpO1xuXG5leHBvcnQgY29uc3Qgc2VxID0ge1xuICAgIHN0YWdlOiAoKCkgPT5cbiAgICAgICAgbmV3IEJvZHlTdGFnZVNlcUJ1aWxkZXIoKSkgYXMgQ3JlYXRlQnVpbGRlcjxCb2R5U3RhZ2VTZXFCdWlsZGVyPixcbiAgICBzb3VyY2U6ICgoKSA9PlxuICAgICAgICBuZXcgQXJ0aWNsZVNvdXJjZVNlcUJ1aWxkZXIoKSkgYXMgQ3JlYXRlQnVpbGRlcjxBcnRpY2xlU291cmNlU2VxQnVpbGRlcj4sXG59IGFzIGNvbnN0O1xuXG5jbGFzcyBCb2R5QnVpbGRlciBleHRlbmRzIEFic3RyYWN0QnVpbGRlcjxCb2R5PiB7XG4gICAgI3N0YWdlczogQm9keVN0YWdlW10gPSBbXTtcbiAgICAjdHJ1c3RCb3g/OiBUcnVzdEJveCA9IHVuZGVmaW5lZDtcbiAgICAjZGlzY2xhaW1lcj86IFJpY2hUZXh0Lk5vZGVbXSA9IHVuZGVmaW5lZDtcbiAgICAjYXJ0aWNsZVNvdXJjZXM/OiBBcnRpY2xlU291cmNlcyA9IHVuZGVmaW5lZDtcblxuICAgIHN0YWdlcyguLi5zdGFnZXM6IEJ1aWxkQXJnczxCb2R5U3RhZ2U+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI3N0YWdlcyA9IHN0YWdlcy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICB0cnVzdEJveCh0cnVzdEJveD86IEJ1aWxkQXJnPFRydXN0Qm94Pik6IHRoaXMge1xuICAgICAgICB0aGlzLiN0cnVzdEJveCA9IG1hcEJ1aWxkQXJnKHRydXN0Qm94KTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgZGlzY2xhaW1lcihkaXNjbGFpbWVyPzogQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI2Rpc2NsYWltZXIgPSBkaXNjbGFpbWVyPy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBhcnRpY2xlU291cmNlcyhhcnRpY2xlU291cmNlcz86IEJ1aWxkQXJnPEFydGljbGVTb3VyY2VzPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNhcnRpY2xlU291cmNlcyA9IG1hcEJ1aWxkQXJnKGFydGljbGVTb3VyY2VzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogQm9keSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBzdGFnZXM6IHRoaXMuI3N0YWdlcyxcbiAgICAgICAgICAgIHRydXN0Qm94OiB0aGlzLiN0cnVzdEJveCxcbiAgICAgICAgICAgIGRpc2NsYWltZXI6IHRoaXMuI2Rpc2NsYWltZXIsXG4gICAgICAgICAgICBhcnRpY2xlU291cmNlczogdGhpcy4jYXJ0aWNsZVNvdXJjZXMsXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBUcnVzdEJveEJ1aWxkZXIgZXh0ZW5kcyBBYnN0cmFjdEJ1aWxkZXI8VHJ1c3RCb3g+IHtcbiAgICAjbm9kZXM6IFJpY2hUZXh0Lk5vZGVbXSA9IFtdO1xuICAgICNoaWRkZW46IFJpY2hUZXh0Lk5vZGVbXSA9IFtdO1xuXG4gICAgbm9kZXMobm9kZXM6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNub2RlcyA9IG5vZGVzLm1hcChtYXBCdWlsZEFyZyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGhpZGRlbihoaWRkZW46IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNoaWRkZW4gPSBoaWRkZW4ubWFwKG1hcEJ1aWxkQXJnKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogVHJ1c3RCb3gge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgbm9kZXM6IHRoaXMuI25vZGVzLFxuICAgICAgICAgICAgaGlkZGVuOiB0aGlzLiNoaWRkZW4sXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBPcGVuZXJCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPE9wZW5lcj4ge1xuICAgICNlbGVtZW50OiBPcGVuZXJbXCJlbGVtZW50XCJdID0gaW1hZ2UoKS5idWlsZCgpO1xuXG4gICAgZWxlbWVudChlbGVtZW50OiBCdWlsZEFyZzxPcGVuZXJbXCJlbGVtZW50XCJdPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNlbGVtZW50ID0gbWFwQnVpbGRBcmcoZWxlbWVudCk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IE9wZW5lciB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBlbGVtZW50OiB0aGlzLiNlbGVtZW50LFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuY2xhc3MgQm9keVN0YWdlU2VxQnVpbGRlciBleHRlbmRzIEFic3RyYWN0U2VxQnVpbGRlcjxCb2R5U3RhZ2U+IHtcbiAgICAjbm9kZXM6IFNlcUVsZW1lbnQ8UmljaFRleHQuTm9kZVtdPiA9IFtdO1xuICAgICNoZWFkZXI/OiBTZXFFbGVtZW50PEJvZHlIZWFkZXI+ID0gdW5kZWZpbmVkO1xuICAgICNjb21wYW5pb25zOiBTZXFFbGVtZW50PFN0YWdlLkNvbXBhbmlvbkl0ZW1bXT4gPSBbXTtcbiAgICAjY29tbWVyY2lhbHNFbmRPZlN0YWdlOiBTZXFFbGVtZW50PFJpY2hUZXh0Lk5vZGVbXT4gPSBbXTtcblxuICAgIG5vZGVzKG5vZGVzOiBTZXFFbGVtZW50PEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgaGVhZGVyKGhlYWRlcj86IFNlcUVsZW1lbnQ8QnVpbGRBcmc8Qm9keUhlYWRlcj4+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI2hlYWRlciA9IG1hcEJ1aWxkQXJncyhoZWFkZXIgPz8gW10pO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBjb21wYW5pb25zKGNvbXBhbmlvbnM6IFNlcUVsZW1lbnQ8QnVpbGRBcmdzPFN0YWdlLkNvbXBhbmlvbkl0ZW0+Pik6IHRoaXMge1xuICAgICAgICB0aGlzLiNjb21wYW5pb25zID0gY29tcGFuaW9ucy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlKFxuICAgICAgICBjb21tZXJjaWFsc0VuZE9mU3RhZ2U6IFNlcUVsZW1lbnQ8QnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+PlxuICAgICk6IHRoaXMge1xuICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2UgPSBjb21tZXJjaWFsc0VuZE9mU3RhZ2UubWFwKG1hcEJ1aWxkQXJncyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkTGlzdEl0ZW0oc2VxTmV4dEVsZW1lbnQ6IFNlcU5leHRFbGVtZW50Q29udmVydGVyKTogQm9keVN0YWdlIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGlkOiBoYXNoKFxuICAgICAgICAgICAgICAgIFwiYm9keVN0YWdlXCIsXG4gICAgICAgICAgICAgICAgdGhpcy4jbm9kZXMsXG4gICAgICAgICAgICAgICAgdGhpcy4jY29tcGFuaW9ucyxcbiAgICAgICAgICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2UsXG4gICAgICAgICAgICAgICAgdGhpcy4jaGVhZGVyXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgbm9kZXM6IHNlcU5leHRFbGVtZW50LmFycmF5KHRoaXMuI25vZGVzKSxcbiAgICAgICAgICAgIGhlYWRlcjogc2VxTmV4dEVsZW1lbnQubWF5YmUodGhpcy4jaGVhZGVyKSxcbiAgICAgICAgICAgIGNvbXBhbmlvbnM6IHNlcU5leHRFbGVtZW50LmFycmF5KHRoaXMuI2NvbXBhbmlvbnMpLFxuICAgICAgICAgICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlOiBzZXFOZXh0RWxlbWVudC5hcnJheShcbiAgICAgICAgICAgICAgICB0aGlzLiNjb21tZXJjaWFsc0VuZE9mU3RhZ2VcbiAgICAgICAgICAgICksXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBCb2R5U3RhZ2VCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPEJvZHlTdGFnZT4ge1xuICAgICNzZXFCdWlsZGVyOiBCb2R5U3RhZ2VTZXFCdWlsZGVyID0gbmV3IEJvZHlTdGFnZVNlcUJ1aWxkZXIoKTtcblxuICAgIG5vZGVzKG5vZGVzOiBCdWlsZEFyZ3M8UmljaFRleHQuTm9kZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jc2VxQnVpbGRlci5ub2Rlcyhbbm9kZXNdKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgaGVhZGVyKGhlYWRlcj86IEJ1aWxkQXJnPEJvZHlIZWFkZXI+KTogdGhpcyB7XG4gICAgICAgIGlmIChoZWFkZXIpIHtcbiAgICAgICAgICAgIHRoaXMuI3NlcUJ1aWxkZXIuaGVhZGVyKFtoZWFkZXJdKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBjb21wYW5pb25zKGNvbXBhbmlvbnM6IEJ1aWxkQXJnczxTdGFnZS5Db21wYW5pb25JdGVtPik6IHRoaXMge1xuICAgICAgICB0aGlzLiNzZXFCdWlsZGVyLmNvbXBhbmlvbnMoW2NvbXBhbmlvbnNdKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY29tbWVyY2lhbHNFbmRPZlN0YWdlKFxuICAgICAgICBjb21tZXJjaWFsc0VuZE9mU3RhZ2U6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPlxuICAgICk6IHRoaXMge1xuICAgICAgICB0aGlzLiNzZXFCdWlsZGVyLmNvbW1lcmNpYWxzRW5kT2ZTdGFnZShbY29tbWVyY2lhbHNFbmRPZlN0YWdlXSk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEJvZHlTdGFnZSB7XG4gICAgICAgIHJldHVybiB0aGlzLiNzZXFCdWlsZGVyLmJ1aWxkKCk7XG4gICAgfVxufVxuXG5jbGFzcyBCb2R5SGVhZGVyQnVpbGRlciBleHRlbmRzIEFic3RyYWN0QnVpbGRlcjxCb2R5SGVhZGVyPiB7XG4gICAgI3ZhcmlhbnQ6IEJvZHlIZWFkZXJbXCJ2YXJpYW50XCJdID0gXCJmdWxsXCI7XG4gICAgI29wZW5lcj86IE9wZW5lciA9IHVuZGVmaW5lZDtcblxuICAgIHZhcmlhbnQodmFyaWFudDogQm9keUhlYWRlcltcInZhcmlhbnRcIl0pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jdmFyaWFudCA9IHZhcmlhbnQ7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIG9wZW5lcihvcGVuZXI6IEJ1aWxkQXJnPE9wZW5lcj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jb3BlbmVyID0gbWFwQnVpbGRBcmcob3BlbmVyKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGQoKTogQm9keUhlYWRlciB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB2YXJpYW50OiB0aGlzLiN2YXJpYW50LFxuICAgICAgICAgICAgb3BlbmVyOiB0aGlzLiNvcGVuZXIsXG4gICAgICAgIH07XG4gICAgfVxufVxuXG5jbGFzcyBBcnRpY2xlU291cmNlU2VxQnVpbGRlciBleHRlbmRzIEFic3RyYWN0U2VxQnVpbGRlcjxBcnRpY2xlU291cmNlPiB7XG4gICAgI25vZGVzOiBTZXFFbGVtZW50PFJpY2hUZXh0Lk5vZGVbXT4gPSBbXTtcblxuICAgIG5vZGVzKG5vZGVzOiBTZXFFbGVtZW50PEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPj4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmdzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYnVpbGRMaXN0SXRlbShzZXFOZXh0RWxlbWVudDogU2VxTmV4dEVsZW1lbnRDb252ZXJ0ZXIpOiBBcnRpY2xlU291cmNlIHtcbiAgICAgICAgY29uc3QgaWQgPSBoYXNoKFwiYXJ0aWNsZS1zb3VyY2VcIiwgdGhpcy4jbm9kZXMpO1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICBub2Rlczogc2VxTmV4dEVsZW1lbnQuYXJyYXkodGhpcy4jbm9kZXMpLFxuICAgICAgICB9O1xuICAgIH1cbn1cblxuY2xhc3MgQXJ0aWNsZVNvdXJjZUJ1aWxkZXIgZXh0ZW5kcyBBYnN0cmFjdEJ1aWxkZXI8QXJ0aWNsZVNvdXJjZT4ge1xuICAgICNzZXFCdWlsZGVyOiBBcnRpY2xlU291cmNlU2VxQnVpbGRlciA9IG5ldyBBcnRpY2xlU291cmNlU2VxQnVpbGRlcigpO1xuXG4gICAgY29uc3RydWN0b3IoLi4ubm9kZXM6IEJ1aWxkQXJnczxSaWNoVGV4dC5Ob2RlPikge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICB0aGlzLm5vZGVzKC4uLm5vZGVzKTtcbiAgICB9XG5cbiAgICBub2RlcyguLi5ub2RlczogQnVpbGRBcmdzPFJpY2hUZXh0Lk5vZGU+KTogdGhpcyB7XG4gICAgICAgIHRoaXMuI3NlcUJ1aWxkZXIubm9kZXMoW25vZGVzXSk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEFydGljbGVTb3VyY2Uge1xuICAgICAgICByZXR1cm4gdGhpcy4jc2VxQnVpbGRlci5idWlsZCgpO1xuICAgIH1cbn1cblxuY2xhc3MgQXJ0aWNsZVNvdXJjZXNCdWlsZGVyIGV4dGVuZHMgQWJzdHJhY3RCdWlsZGVyPEFydGljbGVTb3VyY2VzPiB7XG4gICAgI25vZGVzOiBBcnRpY2xlU291cmNlW10gPSBbXTtcbiAgICAjaGlkZGVuOiBBcnRpY2xlU291cmNlW10gPSBbXTtcblxuICAgIG5vZGVzKC4uLm5vZGVzOiBCdWlsZEFyZ3M8QXJ0aWNsZVNvdXJjZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jbm9kZXMgPSBub2Rlcy5tYXAobWFwQnVpbGRBcmcpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBoaWRkZW4oLi4uaGlkZGVuOiBCdWlsZEFyZ3M8QXJ0aWNsZVNvdXJjZT4pOiB0aGlzIHtcbiAgICAgICAgdGhpcy4jaGlkZGVuID0gaGlkZGVuLm1hcChtYXBCdWlsZEFyZyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGJ1aWxkKCk6IEFydGljbGVTb3VyY2VzIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIG5vZGVzOiB0aGlzLiNub2RlcyxcbiAgICAgICAgICAgIGhpZGRlbjogdGhpcy4jaGlkZGVuLFxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdLCJuYW1lcyI6WyJub2RlIiwiY3JlYXRlIiwidHJ1c3RCb3giLCJvcGVuZXIiLCJzdGFnZSIsImhlYWRlciIsInNvdXJjZSIsInNvdXJjZXMiLCJzZXEiLCJCb2R5QnVpbGRlciIsIlRydXN0Qm94QnVpbGRlciIsIk9wZW5lckJ1aWxkZXIiLCJCb2R5U3RhZ2VCdWlsZGVyIiwiQm9keUhlYWRlckJ1aWxkZXIiLCJub2RlcyIsIkFydGljbGVTb3VyY2VCdWlsZGVyIiwiQXJ0aWNsZVNvdXJjZXNCdWlsZGVyIiwiQm9keVN0YWdlU2VxQnVpbGRlciIsIkFydGljbGVTb3VyY2VTZXFCdWlsZGVyIiwiQWJzdHJhY3RCdWlsZGVyIiwic3RhZ2VzIiwibWFwIiwibWFwQnVpbGRBcmciLCJkaXNjbGFpbWVyIiwiYXJ0aWNsZVNvdXJjZXMiLCJidWlsZCIsInVuZGVmaW5lZCIsImhpZGRlbiIsImVsZW1lbnQiLCJpbWFnZSIsIkFic3RyYWN0U2VxQnVpbGRlciIsIm1hcEJ1aWxkQXJncyIsImNvbXBhbmlvbnMiLCJjb21tZXJjaWFsc0VuZE9mU3RhZ2UiLCJidWlsZExpc3RJdGVtIiwic2VxTmV4dEVsZW1lbnQiLCJpZCIsImhhc2giLCJhcnJheSIsIm1heWJlIiwic2VxQnVpbGRlciIsInZhcmlhbnQiLCJjb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUEyQllBLElBQUk7SUFFSEMsTUFBTSxNQUFOQTtJQUNBQyxRQUFRLE1BQVJBO0lBRUFDLE1BQU0sTUFBTkE7SUFDQUMsS0FBSyxNQUFMQTtJQUVBQyxNQUFNLE1BQU5BO0lBRUFDLE1BQU0sTUFBTkE7SUFLQUMsT0FBTyxNQUFQQTtJQUdBQyxHQUFHLE1BQUhBOzs7Ozs7O2tDQTdDdUM7OEJBQ0o7Z0NBQzFCOzJGQXdCUjtBQUdQLE1BQU1QLFNBQXFDLElBQU0sSUFBSVE7QUFDckQsTUFBTVAsV0FBMkMsSUFDcEQsSUFBSVE7QUFDRCxNQUFNUCxTQUF1QyxJQUFNLElBQUlRO0FBQ3ZELE1BQU1QLFFBQXlDLElBQ2xELElBQUlRO0FBQ0QsTUFBTVAsU0FBMkMsSUFDcEQsSUFBSVE7QUFDRCxNQUFNUCxTQUdULENBQUNRLFFBQWtDLEVBQUUsR0FDckMsSUFBSUMsd0JBQXdCRDtBQUN6QixNQUFNUCxVQUFnRCxJQUN6RCxJQUFJUztBQUVELE1BQU1SLE1BQU07SUFDZkosT0FBUSxJQUNKLElBQUlhO0lBQ1JYLFFBQVMsSUFDTCxJQUFJWTtBQUNaO0lBR0ksdUNBQ0EseUNBQ0EsMkNBQ0E7QUFKSixNQUFNVCxvQkFBb0JVLGlDQUFlO0lBTXJDQyxPQUFPLEdBQUdBLE1BQTRCLEVBQVE7eUNBQ3BDQSxTQUFTQSxPQUFPQyxHQUFHLENBQUNDLHlCQUFXO1FBQ3JDLE9BQU8sSUFBSTtJQUNmO0lBRUFwQixTQUFTQSxRQUE2QixFQUFRO3lDQUNwQ0EsV0FBV29CLElBQUFBLHlCQUFXLEVBQUNwQjtRQUM3QixPQUFPLElBQUk7SUFDZjtJQUVBcUIsV0FBV0EsVUFBcUMsRUFBUTt5Q0FDOUNBLGFBQWFBLFlBQVlGLElBQUlDLHlCQUFXO1FBQzlDLE9BQU8sSUFBSTtJQUNmO0lBRUFFLGVBQWVBLGNBQXlDLEVBQVE7eUNBQ3REQSxpQkFBaUJGLElBQUFBLHlCQUFXLEVBQUNFO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFDLFFBQWM7UUFDVixPQUFPO1lBQ0hMLE1BQU0sNkJBQUUsSUFBSSxFQUFFQTtZQUNkbEIsUUFBUSw2QkFBRSxJQUFJLEVBQUVBO1lBQ2hCcUIsVUFBVSw2QkFBRSxJQUFJLEVBQUVBO1lBQ2xCQyxjQUFjLDZCQUFFLElBQUksRUFBRUE7UUFDMUI7SUFDSjs7O1FBaENBLGtDQUFBOzttQkFBdUIsRUFBRTs7UUFDekIsa0NBQUE7O21CQUF1QkU7O1FBQ3ZCLGtDQUFBOzttQkFBZ0NBOztRQUNoQyxrQ0FBQTs7bUJBQW1DQTs7O0FBOEJ2QztJQUdJLHNDQUNBO0FBRkosTUFBTWhCLHdCQUF3QlMsaUNBQWU7SUFJekNMLE1BQU1BLEtBQStCLEVBQVE7eUNBQ25DQSxRQUFRQSxNQUFNTyxHQUFHLENBQUNDLHlCQUFXO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFLLE9BQU9BLE1BQWdDLEVBQVE7eUNBQ3JDQSxTQUFTQSxPQUFPTixHQUFHLENBQUNDLHlCQUFXO1FBQ3JDLE9BQU8sSUFBSTtJQUNmO0lBRUFHLFFBQWtCO1FBQ2QsT0FBTztZQUNIWCxLQUFLLDZCQUFFLElBQUksRUFBRUE7WUFDYmEsTUFBTSw2QkFBRSxJQUFJLEVBQUVBO1FBQ2xCO0lBQ0o7OztRQWxCQSxrQ0FBQTs7bUJBQTBCLEVBQUU7O1FBQzVCLGtDQUFBOzttQkFBMkIsRUFBRTs7O0FBa0JqQztJQUdJO0FBREosTUFBTWhCLHNCQUFzQlEsaUNBQWU7SUFHdkNTLFFBQVFBLE9BQW9DLEVBQVE7eUNBQzFDQSxVQUFVTixJQUFBQSx5QkFBVyxFQUFDTTtRQUM1QixPQUFPLElBQUk7SUFDZjtJQUVBSCxRQUFnQjtRQUNaLE9BQU87WUFDSEcsT0FBTyw2QkFBRSxJQUFJLEVBQUVBO1FBQ25CO0lBQ0o7OztRQVhBLGtDQUFBOzttQkFBOEJDLElBQUFBLHFCQUFLLElBQUdKLEtBQUs7OztBQVkvQztJQUdJLHVDQUNBLHVDQUNBLDJDQUNBO0FBSkosTUFBTVIsNEJBQTRCYSxvQ0FBa0I7SUFNaERoQixNQUFNQSxLQUEyQyxFQUFRO3lDQUMvQ0EsU0FBUUEsTUFBTU8sR0FBRyxDQUFDVSwwQkFBWTtRQUNwQyxPQUFPLElBQUk7SUFDZjtJQUVBMUIsT0FBT0EsTUFBeUMsRUFBUTt5Q0FDOUNBLFNBQVMwQixJQUFBQSwwQkFBWSxFQUFDMUIsVUFBVSxFQUFFO1FBQ3hDLE9BQU8sSUFBSTtJQUNmO0lBRUEyQixXQUFXQSxVQUFzRCxFQUFRO3lDQUMvREEsYUFBYUEsV0FBV1gsR0FBRyxDQUFDVSwwQkFBWTtRQUM5QyxPQUFPLElBQUk7SUFDZjtJQUVBRSxzQkFDSUEscUJBQTJELEVBQ3ZEO3lDQUNFQSx3QkFBd0JBLHNCQUFzQlosR0FBRyxDQUFDVSwwQkFBWTtRQUNwRSxPQUFPLElBQUk7SUFDZjtJQUVBRyxjQUFjQyxjQUF1QyxFQUFhO1FBQzlELE9BQU87WUFDSEMsSUFBSUMsSUFBQUEsa0JBQUksRUFDSix3Q0FDQSxJQUFJLEVBQUV2QixxQ0FDTixJQUFJLEVBQUVrQix5Q0FDTixJQUFJLEVBQUVDLG9EQUNOLElBQUksRUFBRTVCO1lBRVZTLE9BQU9xQixlQUFlRyxLQUFLLDRCQUFDLElBQUksRUFBRXhCO1lBQ2xDVCxRQUFROEIsZUFBZUksS0FBSyw0QkFBQyxJQUFJLEVBQUVsQztZQUNuQzJCLFlBQVlHLGVBQWVHLEtBQUssNEJBQUMsSUFBSSxFQUFFTjtZQUN2Q0MsdUJBQXVCRSxlQUFlRyxLQUFLLDRCQUN2QyxJQUFJLEVBQUVMO1FBRWQ7SUFDSjs7O1FBM0NBLGtDQUFBOzttQkFBc0MsRUFBRTs7UUFDeEMsa0NBQUE7O21CQUFtQ1A7O1FBQ25DLGtDQUFBOzttQkFBaUQsRUFBRTs7UUFDbkQsa0NBQUE7O21CQUFzRCxFQUFFOzs7QUF5QzVEO0lBR0k7QUFESixNQUFNZCx5QkFBeUJPLGlDQUFlO0lBRzFDTCxNQUFNQSxLQUErQixFQUFRO1FBQ3pDLDJCQUFBLElBQUksRUFBRTBCLGFBQVcxQixLQUFLLENBQUM7WUFBQ0E7U0FBTTtRQUM5QixPQUFPLElBQUk7SUFDZjtJQUVBVCxPQUFPQSxNQUE2QixFQUFRO1FBQ3hDLElBQUlBLFFBQVE7WUFDUiwyQkFBQSxJQUFJLEVBQUVtQyxhQUFXbkMsTUFBTSxDQUFDO2dCQUFDQTthQUFPO1FBQ3BDLENBQUM7UUFDRCxPQUFPLElBQUk7SUFDZjtJQUVBMkIsV0FBV0EsVUFBMEMsRUFBUTtRQUN6RCwyQkFBQSxJQUFJLEVBQUVRLGFBQVdSLFVBQVUsQ0FBQztZQUFDQTtTQUFXO1FBQ3hDLE9BQU8sSUFBSTtJQUNmO0lBRUFDLHNCQUNJQSxxQkFBK0MsRUFDM0M7UUFDSiwyQkFBQSxJQUFJLEVBQUVPLGFBQVdQLHFCQUFxQixDQUFDO1lBQUNBO1NBQXNCO1FBQzlELE9BQU8sSUFBSTtJQUNmO0lBRUFSLFFBQW1CO1FBQ2YsT0FBTywyQkFBQSxJQUFJLEVBQUVlLGFBQVdmLEtBQUs7SUFDakM7OztRQTVCQSxrQ0FBQTs7bUJBQW1DLElBQUlSOzs7QUE2QjNDO0lBR0ksd0NBQ0E7QUFGSixNQUFNSiwwQkFBMEJNLGlDQUFlO0lBSTNDc0IsUUFBUUEsT0FBOEIsRUFBUTt5Q0FDcENBLFVBQVVBO1FBQ2hCLE9BQU8sSUFBSTtJQUNmO0lBRUF0QyxPQUFPQSxNQUF3QixFQUFRO3lDQUM3QkEsU0FBU21CLElBQUFBLHlCQUFXLEVBQUNuQjtRQUMzQixPQUFPLElBQUk7SUFDZjtJQUVBc0IsUUFBb0I7UUFDaEIsT0FBTztZQUNIZ0IsT0FBTyw2QkFBRSxJQUFJLEVBQUVBO1lBQ2Z0QyxNQUFNLDZCQUFFLElBQUksRUFBRUE7UUFDbEI7SUFDSjs7O1FBbEJBLGtDQUFBOzttQkFBa0M7O1FBQ2xDLGtDQUFBOzttQkFBbUJ1Qjs7O0FBa0J2QjtJQUdJO0FBREosTUFBTVIsZ0NBQWdDWSxvQ0FBa0I7SUFHcERoQixNQUFNQSxLQUEyQyxFQUFRO3lDQUMvQ0EsU0FBUUEsTUFBTU8sR0FBRyxDQUFDVSwwQkFBWTtRQUNwQyxPQUFPLElBQUk7SUFDZjtJQUVBRyxjQUFjQyxjQUF1QyxFQUFpQjtRQUNsRSxNQUFNQyxLQUFLQyxJQUFBQSxrQkFBSSxFQUFDLDZDQUFrQixJQUFJLEVBQUV2QjtRQUN4QyxPQUFPO1lBQ0hzQjtZQUNBdEIsT0FBT3FCLGVBQWVHLEtBQUssNEJBQUMsSUFBSSxFQUFFeEI7UUFDdEM7SUFDSjs7O1FBYkEsa0NBQUE7O21CQUFzQyxFQUFFOzs7QUFjNUM7SUFHSTtBQURKLE1BQU1DLDZCQUE2QkksaUNBQWU7SUFROUNMLE1BQU0sR0FBR0EsS0FBK0IsRUFBUTtRQUM1QywyQkFBQSxJQUFJLEVBQUUwQixjQUFXMUIsS0FBSyxDQUFDO1lBQUNBO1NBQU07UUFDOUIsT0FBTyxJQUFJO0lBQ2Y7SUFFQVcsUUFBdUI7UUFDbkIsT0FBTywyQkFBQSxJQUFJLEVBQUVlLGNBQVdmLEtBQUs7SUFDakM7SUFaQWlCLFlBQVksR0FBRzVCLEtBQStCLENBQUU7UUFDNUMsS0FBSztRQUhULGtDQUFBOzttQkFBdUMsSUFBSUk7O1FBSXZDLElBQUksQ0FBQ0osS0FBSyxJQUFJQTtJQUNsQjtBQVVKO0lBR0ksdUNBQ0E7QUFGSixNQUFNRSw4QkFBOEJHLGlDQUFlO0lBSS9DTCxNQUFNLEdBQUdBLEtBQStCLEVBQVE7eUNBQ3RDQSxTQUFRQSxNQUFNTyxHQUFHLENBQUNDLHlCQUFXO1FBQ25DLE9BQU8sSUFBSTtJQUNmO0lBRUFLLE9BQU8sR0FBR0EsTUFBZ0MsRUFBUTt5Q0FDeENBLFVBQVNBLE9BQU9OLEdBQUcsQ0FBQ0MseUJBQVc7UUFDckMsT0FBTyxJQUFJO0lBQ2Y7SUFFQUcsUUFBd0I7UUFDcEIsT0FBTztZQUNIWCxLQUFLLDZCQUFFLElBQUksRUFBRUE7WUFDYmEsTUFBTSw2QkFBRSxJQUFJLEVBQUVBO1FBQ2xCO0lBQ0o7OztRQWxCQSxrQ0FBQTs7bUJBQTBCLEVBQUU7O1FBQzVCLGtDQUFBOzttQkFBMkIsRUFBRTs7O0FBa0JqQyJ9 diff --git a/crates/swc/tests/fixture/swc-node-335/case1/output/index.js b/crates/swc/tests/fixture/swc-node-335/case1/output/index.js index 59e135932636..bab4be5a97f6 100644 --- a/crates/swc/tests/fixture/swc-node-335/case1/output/index.js +++ b/crates/swc/tests/fixture/swc-node-335/case1/output/index.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; let Foo = class Foo { method() { let Foo = class Foo { diff --git a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.1.normal.js index 3988aeaee163..3e3f8730395a 100644 --- a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.1.normal.js @@ -1,6 +1,6 @@ //// [module.d.ts] //// [classPoint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.2.minified.js index 9382b65c90e9..1c58d029de7d 100644 --- a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.2.minified.js @@ -1,7 +1,7 @@ //// [module.d.ts] //// [classPoint.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).Point = function Point(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.1.normal.js index 1db8d9827f11..599ad2019119 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.1.normal.js @@ -1,6 +1,6 @@ //// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts] // all expected to be errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule1 = function clodule1() { "use strict"; _class_call_check(this, clodule1); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.2.minified.js index 220f4c456893..d6264f8197be 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule1 = function clodule1() { "use strict"; _class_call_check(this, clodule1); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.1.normal.js index 06c97b306e96..33e80cf2267a 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.2.minified.js index f131fe84a816..b1626973cc7c 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.1.normal.js index 9d57114b8616..2a3275641763 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.2.minified.js index 72fcfbd420fb..bd766bd9d8be 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.1.normal.js index e1afbfc2e085..3327efb7c642 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.2.minified.js index 17d0375c3148..17b136956f29 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.1.normal.js index d4d9af7b177b..bffa50d53248 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Point = /*#__PURE__*/ function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.2.minified.js index 35dbe798edfd..494904ea1a51 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A, Point = function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.1.normal.js index af08a6f5850c..b14e185c0609 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Point = /*#__PURE__*/ function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.2.minified.js index 7308f8746971..fa76fc531607 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A, Point = function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.1.normal.js index a121ee5868cb..0157aeabd38c 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Point = function Point(x, y) { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.2.minified.js index 1e69794f7ab0..05d255879a6b 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A, Point = function Point(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.1.normal.js index 8d0d89aa3070..b57d639726b7 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.1.normal.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Point = function Point(x, y) { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.2.minified.js index 09eb4c8d36a6..4aacf26bea3d 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.2.minified.js @@ -1,5 +1,5 @@ //// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A, Point = function Point(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.1.normal.js index 6823f4dc1232..3e607d2b78bf 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.1.normal.js @@ -1,5 +1,5 @@ //// [class.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X; (function(X) { var Y; @@ -29,7 +29,7 @@ var X; var cl = new X.Y.Point(1, 1); var cl = X.Y.Point.Origin; // error not expected here same as bug 83996 ? //// [simple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.2.minified.js index 682088d6d707..ceb2da782348 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot.2.minified.js @@ -1,6 +1,6 @@ //// [class.ts] var X; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(X) { (X.Y || (X.Y = {})).Point = function Point(x, y) { "use strict"; @@ -16,7 +16,7 @@ var X; //// [test.ts] new X.Y.Point(1, 1), X.Y.Point.Origin; //// [simple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/ES5For-of26.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of26.1.normal.js index ec61ca95b346..5640fa8353a0 100644 --- a/crates/swc/tests/tsc-references/ES5For-of26.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of26.1.normal.js @@ -1,5 +1,5 @@ //// [ES5For-of26.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-of26.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of26.2.minified.js index 666d510aee00..c4e0949909f1 100644 --- a/crates/swc/tests/tsc-references/ES5For-of26.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of26.2.minified.js @@ -1,5 +1,5 @@ //// [ES5For-of26.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-of28.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of28.1.normal.js index 058aa082467c..31989a0b3073 100644 --- a/crates/swc/tests/tsc-references/ES5For-of28.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of28.1.normal.js @@ -1,5 +1,5 @@ //// [ES5For-of28.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-of28.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of28.2.minified.js index 5a3f1ce3ef53..8621d7fff0fd 100644 --- a/crates/swc/tests/tsc-references/ES5For-of28.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of28.2.minified.js @@ -1,5 +1,5 @@ //// [ES5For-of28.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-of30.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of30.1.normal.js index fb75981d1d53..b2699a630a75 100644 --- a/crates/swc/tests/tsc-references/ES5For-of30.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of30.1.normal.js @@ -1,5 +1,5 @@ //// [ES5For-of30.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a, b; var tuple = [ 2, diff --git a/crates/swc/tests/tsc-references/ES5For-of30.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of30.2.minified.js index 97522ab0c065..4084ef483628 100644 --- a/crates/swc/tests/tsc-references/ES5For-of30.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of30.2.minified.js @@ -1,5 +1,5 @@ //// [ES5For-of30.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var ref, _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-of36.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of36.1.normal.js index c4aa01e3ef4a..e4c086c18cff 100644 --- a/crates/swc/tests/tsc-references/ES5For-of36.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of36.1.normal.js @@ -1,5 +1,5 @@ //// [ES5For-of36.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-of36.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of36.2.minified.js index ddfa1abf91fc..33d150eb5df5 100644 --- a/crates/swc/tests/tsc-references/ES5For-of36.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of36.2.minified.js @@ -1,5 +1,5 @@ //// [ES5For-of36.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var _i = 0, _iter = [ 2, 3 diff --git a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.1.normal.js b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.1.normal.js index 6b611b1906a6..4616dd3dbe41 100644 --- a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.1.normal.js @@ -1,6 +1,6 @@ //// [ES5For-ofTypeCheck10.ts] // In ES3/5, you cannot for...of over an arbitrary iterable. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var StringIterator = /*#__PURE__*/ function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.2.minified.js b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.2.minified.js index 0cbef49c4dd7..150a5fced5e3 100644 --- a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10.2.minified.js @@ -1,5 +1,5 @@ //// [ES5For-ofTypeCheck10.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty1.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty1.1.normal.js index 92040f0723cc..bbede6bac7b5 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty1.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty1.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty1.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var Symbol; var obj = _define_property({}, Symbol.foo, 0); obj[Symbol.foo]; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty1.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty1.2.minified.js index 43c64f3bd877..7e78cb199fc0 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty1.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty1.2.minified.js @@ -1,4 +1,4 @@ //// [ES5SymbolProperty1.ts] var Symbol; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, Symbol.foo, 0)[Symbol.foo]; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty2.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty2.1.normal.js index d2b93e2fba14..a598ef660d74 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty2.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty2.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var _$Symbol; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty2.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty2.2.minified.js index ccc7d85ecf2e..e3f3dd16004a 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty2.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty2.2.minified.js @@ -1,6 +1,6 @@ //// [ES5SymbolProperty2.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(M) { var _$Symbol, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty3.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty3.1.normal.js index 63987d3337a6..4e372a95bd0f 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty3.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty3.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Symbol; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty3.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty3.2.minified.js index a4934de5b60c..0a0432b4deac 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty3.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty3.2.minified.js @@ -1,6 +1,6 @@ //// [ES5SymbolProperty3.ts] var Symbol; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty4.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty4.1.normal.js index e7dd0a8aee5f..97eacabdedac 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty4.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty4.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Symbol; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty4.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty4.2.minified.js index 447a3b0c1f62..94280d1ff745 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty4.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty4.2.minified.js @@ -1,6 +1,6 @@ //// [ES5SymbolProperty4.ts] var Symbol; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty5.1.normal.js index 02d524d9ea19..520a7ea53fa7 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty5.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Symbol; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty5.2.minified.js index 6f77b9094cfe..9289b41669c9 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty5.2.minified.js @@ -1,6 +1,6 @@ //// [ES5SymbolProperty5.ts] var Symbol; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty6.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty6.1.normal.js index 733cab7cd0c3..c8067c3c20bf 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty6.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty6.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty6.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty6.2.minified.js index 6cf413239fda..ada0b92456a1 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty6.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty6.2.minified.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty7.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty7.1.normal.js index 69631d14bc73..9dd5707dc4fe 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty7.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty7.1.normal.js @@ -1,5 +1,5 @@ //// [ES5SymbolProperty7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Symbol; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty7.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty7.2.minified.js index 5f8ca77f5387..5f57cab7640b 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty7.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty7.2.minified.js @@ -1,6 +1,6 @@ //// [ES5SymbolProperty7.ts] var Symbol; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.1.normal.js index f9cd0d618a2c..8ffbb9b07f34 100644 --- a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.1.normal.js @@ -1,5 +1,5 @@ //// [EnumAndModuleWithSameNameAndCommonRoot.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var enumdule; (function(enumdule) { enumdule[enumdule["Red"] = 0] = "Red"; diff --git a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.2.minified.js index 2f7556bc5004..43ee694e710b 100644 --- a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot.2.minified.js @@ -1,6 +1,6 @@ //// [EnumAndModuleWithSameNameAndCommonRoot.ts] var enumdule; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(enumdule) { enumdule[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue"; }(enumdule || (enumdule = {})), (enumdule || (enumdule = {})).Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.1.normal.js index 2c3f187d12bd..f11bdb602103 100644 --- a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.1.normal.js @@ -1,5 +1,5 @@ //// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point2d = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.2.minified.js index d48aa308f2f0..f8f8b2891590 100644 --- a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType.2.minified.js @@ -1,6 +1,6 @@ //// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var Point2d = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.1.normal.js index ae519a677e4f..96fcd9de053e 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.1.normal.js @@ -1,7 +1,7 @@ //// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A; (function(A) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.2.minified.js index fd97fc89e3ca..c4d26af43b06 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.2.minified.js @@ -1,8 +1,8 @@ //// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(A) { var Point = function Point() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.1.normal.js index f019d3ac291c..93567de4e673 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.1.normal.js @@ -1,5 +1,5 @@ //// [ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.2.minified.js index cebdfd1ecb0b..9e281d2961f9 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.2.minified.js @@ -1,6 +1,6 @@ //// [ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).points = function points() { "use strict"; _class_call_check(this, points); diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.1.normal.js index ab10764ef77c..2e8f50fdb227 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.1.normal.js @@ -1,7 +1,7 @@ //// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A; (function(A) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.2.minified.js index 593f98687240..fa9814a8f11f 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint.2.minified.js @@ -1,8 +1,8 @@ //// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(A) { A.Origin = { x: 0, diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.1.normal.js index 4e8a2bc66f0a..fefec132b997 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.1.normal.js @@ -1,5 +1,5 @@ //// [ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.2.minified.js index a61a43252c73..2111a82f4092 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.2.minified.js @@ -1,6 +1,6 @@ //// [ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { A.Point = function Point() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.1.normal.js index bb2ee8ac4a86..7da6abdf2e05 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.1.normal.js @@ -1,5 +1,5 @@ //// [ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.2.minified.js index 9358bb714830..99031e0866f7 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.2.minified.js @@ -1,6 +1,6 @@ //// [ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var Line = function Line(start, end) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.1.normal.js index 6a39435c272f..d1dbc6ad0bf8 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.1.normal.js @@ -1,5 +1,5 @@ //// [ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.2.minified.js index 7f309688b977..93a6b326be1a 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.2.minified.js @@ -1,6 +1,6 @@ //// [ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { A.Point = function Point() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.1.normal.js b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.1.normal.js index ee69bad516a1..ae565ca29f61 100644 --- a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.1.normal.js @@ -1,5 +1,5 @@ //// [ExportModuleWithAccessibleTypesOnItsExportedMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.2.minified.js b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.2.minified.js index 57de7747ad77..5e359122e20c 100644 --- a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers.2.minified.js @@ -1,6 +1,6 @@ //// [ExportModuleWithAccessibleTypesOnItsExportedMembers.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var B, Line, Point = function Point(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.1.normal.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.1.normal.js index a50fc6268e2b..50ace62ba612 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.1.normal.js @@ -1,5 +1,5 @@ //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.2.minified.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.2.minified.js index 322bb52d902c..b85846b0e399 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.2.minified.js @@ -1,6 +1,6 @@ //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var Point = function Point(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.1.normal.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.1.normal.js index d38bed46400e..734bd641cc18 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.1.normal.js @@ -1,5 +1,5 @@ //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.2.minified.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.2.minified.js index db2d958a178c..ced4f3dd2d0f 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.2.minified.js @@ -1,4 +1,4 @@ //// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts] var A; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; (A || (A = {})).UnitSquare = null; diff --git a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.1.normal.js b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.1.normal.js index 12f0d53e8e5e..ffa8abf4ab5a 100644 --- a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.1.normal.js @@ -1,5 +1,5 @@ //// [ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var B = function B() { diff --git a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.2.minified.js b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.2.minified.js index a56aa4e59ba9..c1e70f454ac5 100644 --- a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.2.minified.js @@ -1,6 +1,6 @@ //// [ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts] var A; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(A) { var beez; A.beez2 = [], A.beez = beez; diff --git a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.1.normal.js index 82d2b9a0890e..07a64bbeea3e 100644 --- a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.1.normal.js @@ -10,7 +10,7 @@ var X; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); //// [classPoint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X; (function(X) { var Y; @@ -25,7 +25,7 @@ var X; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); //// [simple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function(A1) { var Instance = A1.Instance = new A(); })(A || (A = {})); diff --git a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.2.minified.js index 9459f135754d..61ce165ec039 100644 --- a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot.2.minified.js @@ -6,7 +6,7 @@ var X; }(X || (X = {})); //// [classPoint.ts] var X; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(X) { (X.Y || (X.Y = {})).Point = function Point(x, y) { "use strict"; @@ -14,7 +14,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; }; }(X || (X = {})); //// [simple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).Instance = new A(); var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.1.normal.js index 10c608e485cd..57d96cf93bd1 100644 --- a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.1.normal.js @@ -1,5 +1,5 @@ //// [ModuleAndEnumWithSameNameAndCommonRoot.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var enumdule; (function(enumdule) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.2.minified.js index 5197a15fbcc9..30c62234bd82 100644 --- a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot.2.minified.js @@ -1,6 +1,6 @@ //// [ModuleAndEnumWithSameNameAndCommonRoot.ts] var enumdule; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (enumdule || (enumdule = {})).Point = function Point(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.1.normal.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.1.normal.js index f8ae03388084..6d07283688ba 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.1.normal.js @@ -1,5 +1,5 @@ //// [ModuleWithExportedAndNonExportedClasses.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var _$A = function A() { diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.2.minified.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.2.minified.js index af9fe7d729ce..67dd86825a9e 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses.2.minified.js @@ -1,6 +1,6 @@ //// [ModuleWithExportedAndNonExportedClasses.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { A.A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.1.normal.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.1.normal.js index 31b932758f28..4e9379211460 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.1.normal.js @@ -1,5 +1,5 @@ //// [ModuleWithExportedAndNonExportedImportAlias.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B; (function(B) { var Line = function Line(start, end) { diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.2.minified.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.2.minified.js index 12bda674a9eb..7ab0f1592f1e 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias.2.minified.js @@ -1,6 +1,6 @@ //// [ModuleWithExportedAndNonExportedImportAlias.ts] var B, Geometry; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (B || (B = {})).Line = function Line(start, end) { "use strict"; _class_call_check(this, Line), this.start = start, this.end = end; diff --git a/crates/swc/tests/tsc-references/Protected3.1.normal.js b/crates/swc/tests/tsc-references/Protected3.1.normal.js index 170cc8081af0..aa35c4a46a41 100644 --- a/crates/swc/tests/tsc-references/Protected3.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected3.1.normal.js @@ -1,5 +1,5 @@ //// [Protected3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/Protected3.2.minified.js b/crates/swc/tests/tsc-references/Protected3.2.minified.js index 2b82cb34f84d..16928c868cc5 100644 --- a/crates/swc/tests/tsc-references/Protected3.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected3.2.minified.js @@ -1,2 +1,2 @@ //// [Protected3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/Protected5.1.normal.js b/crates/swc/tests/tsc-references/Protected5.1.normal.js index e49595dd70db..4f223272232f 100644 --- a/crates/swc/tests/tsc-references/Protected5.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected5.1.normal.js @@ -1,5 +1,5 @@ //// [Protected5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/Protected5.2.minified.js b/crates/swc/tests/tsc-references/Protected5.2.minified.js index ba8c93cbd276..aa0cfabc5fbf 100644 --- a/crates/swc/tests/tsc-references/Protected5.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected5.2.minified.js @@ -1,2 +1,2 @@ //// [Protected5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/Protected9.1.normal.js b/crates/swc/tests/tsc-references/Protected9.1.normal.js index e6c95e20fc0f..f957af3460ec 100644 --- a/crates/swc/tests/tsc-references/Protected9.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected9.1.normal.js @@ -1,5 +1,5 @@ //// [Protected9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(p) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/Protected9.2.minified.js b/crates/swc/tests/tsc-references/Protected9.2.minified.js index 36bd699c531e..b7f38179b91e 100644 --- a/crates/swc/tests/tsc-references/Protected9.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected9.2.minified.js @@ -1,2 +1,2 @@ //// [Protected9.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.1.normal.js index be3bf25b9fbc..2514e54c411e 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.1.normal.js @@ -1,5 +1,5 @@ //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.2.minified.js index 3bca6e3437de..45a80cae95ab 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.2.minified.js @@ -1,6 +1,6 @@ //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts] var A, X; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).Point = function Point() { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.1.normal.js index 95acf75bb8f5..2032b0f1e10b 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.1.normal.js @@ -17,7 +17,7 @@ var A; }; })(A || (A = {})); //// [part2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { // not a collision, since we don't export diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.2.minified.js index 3306442912b5..481439e712ab 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.2.minified.js @@ -13,7 +13,7 @@ var A; }(A || (A = {})); //// [part2.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { (A.Utils || (A.Utils = {})).Plane = function Plane(tl, br) { "use strict"; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.1.normal.js index 78ec7b0c3f62..9bcdf5ad7ffa 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.1.normal.js @@ -1,5 +1,5 @@ //// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.2.minified.js index 7f04134c7454..453f7777cb22 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.2.minified.js @@ -1,6 +1,6 @@ //// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts] var A, X; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).Point = function Point() { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.1.normal.js index 09ca197b5dc2..aaaae6725ec0 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.1.normal.js @@ -17,7 +17,7 @@ export var A; }; })(A || (A = {})); //// [part2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A; (function(A) { var Origin = A.Origin = { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.2.minified.js index 793e80daedd4..5518d936351c 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.2.minified.js @@ -12,7 +12,7 @@ export var A; }; }(A || (A = {})); //// [part2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A; !function(A) { A.Origin = { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.1.normal.js index 97021d53576a..6423aa9b3f9e 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.1.normal.js @@ -1,5 +1,5 @@ //// [TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var B; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.2.minified.js index ee09c7056e6f..7789bffc1cae 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.2.minified.js @@ -1,6 +1,6 @@ //// [TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts] var A, X; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var x; (A.B || (A.B = {})).x = x; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.1.normal.js index b752a8acf4c0..e1a0a2749eea 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.1.normal.js @@ -16,7 +16,7 @@ var Root; })(A = Root.A || (Root.A = {})); })(Root || (Root = {})); //// [part2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var otherRoot; (function(otherRoot) { var A; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.2.minified.js index 48a7cf7f0b13..37369d5762ba 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.2.minified.js @@ -11,7 +11,7 @@ var Root; }(Root || (Root = {})); //// [part2.ts] var otherRoot; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(otherRoot) { var A; (A = otherRoot.A || (otherRoot.A = {})).Origin = { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.1.normal.js index 4dc2b16b6967..398c63a03d6b 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.1.normal.js @@ -13,7 +13,7 @@ var A; })(Utils = A.Utils || (A.Utils = {})); })(A || (A = {})); //// [part2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Origin = A.Origin = { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.2.minified.js index dd15097ce32f..fc0de4d11965 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot.2.minified.js @@ -10,7 +10,7 @@ var A; }(A || (A = {})); //// [part2.ts] var A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { A.Origin = { x: 0, diff --git a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.1.normal.js b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.1.normal.js index ff52cbbca4b6..40f28a778138 100644 --- a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.1.normal.js +++ b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.1.normal.js @@ -1,6 +1,6 @@ //// [TypeGuardWithArrayUnion.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var Message = function Message() { "use strict"; _class_call_check(this, Message); diff --git a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.2.minified.js b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.2.minified.js index aa8a57041594..95fc77d63064 100644 --- a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.2.minified.js +++ b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.2.minified.js @@ -1,3 +1,3 @@ //// [TypeGuardWithArrayUnion.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/abstractProperty(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/abstractProperty(target=es2015).1.normal.js index 706535295edb..8cd903a494af 100644 --- a/crates/swc/tests/tsc-references/abstractProperty(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/abstractProperty(target=es2015).1.normal.js @@ -1,5 +1,5 @@ //// [abstractProperty.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class A { foo() { console.log(this.x); diff --git a/crates/swc/tests/tsc-references/abstractProperty(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/abstractProperty(target=es2015).2.minified.js index aafcb18b1ec8..5e3ea364c98d 100644 --- a/crates/swc/tests/tsc-references/abstractProperty(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/abstractProperty(target=es2015).2.minified.js @@ -1,2 +1,2 @@ //// [abstractProperty.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/accessorWithES5.1.normal.js b/crates/swc/tests/tsc-references/accessorWithES5.1.normal.js index 8fccd6807af1..0bf06f3479e3 100644 --- a/crates/swc/tests/tsc-references/accessorWithES5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorWithES5.1.normal.js @@ -1,6 +1,6 @@ //// [accessorWithES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorWithES5.2.minified.js b/crates/swc/tests/tsc-references/accessorWithES5.2.minified.js index 4f398db9179b..1d03c9504cc2 100644 --- a/crates/swc/tests/tsc-references/accessorWithES5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorWithES5.2.minified.js @@ -1,3 +1,3 @@ //// [accessorWithES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.1.normal.js b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.1.normal.js index 6b6fece164d4..ca6fd66a3e35 100644 --- a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.1.normal.js @@ -1,6 +1,6 @@ //// [accessorWithMismatchedAccessibilityModifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.2.minified.js b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.2.minified.js index 2fbd25371cc9..71320666f3b7 100644 --- a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers.2.minified.js @@ -1,3 +1,3 @@ //// [accessorWithMismatchedAccessibilityModifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.1.normal.js b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.1.normal.js index 934ed6c6e820..ebbe9fb78f2f 100644 --- a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.1.normal.js @@ -1,7 +1,7 @@ //// [accessorsAreNotContextuallyTyped.ts] // accessors are not contextually typed -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.2.minified.js b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.2.minified.js index fd0875abcadf..876e747c2a2b 100644 --- a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped.2.minified.js @@ -1,5 +1,5 @@ //// [accessorsAreNotContextuallyTyped.ts] var c; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; c.x(""); diff --git a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.1.normal.js b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.1.normal.js index f8796373a0cd..d8a70a2bf399 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.1.normal.js @@ -1,5 +1,5 @@ //// [additionOperatorWithAnyAndEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.2.minified.js b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.2.minified.js index 28e85150d1d5..aa73901c74f2 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType.2.minified.js @@ -1,5 +1,5 @@ //// [additionOperatorWithAnyAndEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E, M, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.1.normal.js b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.1.normal.js index 941dbd474a1c..badf396e49e9 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.1.normal.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.1.normal.js @@ -1,5 +1,5 @@ //// [additionOperatorWithInvalidOperands.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.2.minified.js b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.2.minified.js index 5b2a70faaf00..a63801f6136d 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.2.minified.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands.2.minified.js @@ -1,5 +1,5 @@ //// [additionOperatorWithInvalidOperands.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E, M, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ambient.1.normal.js b/crates/swc/tests/tsc-references/ambient.1.normal.js index e757f249a99b..fdd5a6057d52 100644 --- a/crates/swc/tests/tsc-references/ambient.1.normal.js +++ b/crates/swc/tests/tsc-references/ambient.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/ambient.2.minified.js b/crates/swc/tests/tsc-references/ambient.2.minified.js index e757f249a99b..fdd5a6057d52 100644 --- a/crates/swc/tests/tsc-references/ambient.2.minified.js +++ b/crates/swc/tests/tsc-references/ambient.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.1.normal.js b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.1.normal.js index b5ae1ee2ab45..11118746aef6 100644 --- a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.1.normal.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -22,10 +22,9 @@ define([ return C1; } }); - _class_call_check = _class_call_check.default; var C1 = function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); this.m1 = 42; }; (function() { diff --git a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.2.minified.js b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.2.minified.js index cb4ca5d689c3..ee6c6d1c4442 100644 --- a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression.2.minified.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -19,10 +19,10 @@ define([ C1: function() { return C1; } - }), _class_call_check = _class_call_check.default; + }); var E1, E11, C1 = function C1() { "use strict"; - _class_call_check(this, C1), this.m1 = 42; + _class_call_check._(this, C1), this.m1 = 42; }; C1.s1 = !0, (E1 = E11 || (E11 = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C"; }); diff --git a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.1.normal.js b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.1.normal.js index da9177f6bde6..db4fcbff2f0b 100644 --- a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.1.normal.js +++ b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.1.normal.js @@ -1,6 +1,6 @@ //// [Compilation.js] // from webpack/lib/Compilation.js and filed at #26427 -/** @param {{ [s: string]: number }} map */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @param {{ [s: string]: number }} map */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function mappy(map) {} export var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.2.minified.js b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.2.minified.js index 4601c4d6fb85..4448aad1687a 100644 --- a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.2.minified.js +++ b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow.2.minified.js @@ -1,5 +1,5 @@ //// [Compilation.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.1.normal.js b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.1.normal.js index 9b23f1314ef6..3090f2758aa5 100644 --- a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.1.normal.js @@ -1,7 +1,7 @@ //// [anyAsGenericFunctionCall.ts] // any is considered an untyped function call // can be called except with type arguments which is an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; var a = x(); var b = x("hello"); diff --git a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.2.minified.js b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.2.minified.js index 1ac64f9f2d1e..f0ce93d36f42 100644 --- a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall.2.minified.js @@ -1,4 +1,4 @@ //// [anyAsGenericFunctionCall.ts] var x; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; x(), x("hello"), x(x), x(x); diff --git a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.1.normal.js b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.1.normal.js index 878177d1859b..74f190e95382 100644 --- a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.1.normal.js @@ -1,6 +1,6 @@ //// [anyAssignabilityInInheritance.ts] // any is not a subtype of any other types, errors expected on all the below derived classes unless otherwise noted -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a; var r3 = foo2(a); // any, not a subtype of number so it skips that overload, is a subtype of itself so it picks second (if truly ambiguous it would pick first overload) var r3 = foo3(a); // any diff --git a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.2.minified.js b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.2.minified.js index 8d924fc2bfac..01039159147c 100644 --- a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance.2.minified.js @@ -1,5 +1,5 @@ //// [anyAssignabilityInInheritance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} foo2(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType.1.normal.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType.1.normal.js index 654c54f7685d..650c42cf3876 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType.1.normal.js @@ -1,5 +1,5 @@ //// [anyAssignableToEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType.2.minified.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType.2.minified.js index a3dffeb66701..594864d28a69 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType.2.minified.js @@ -1,6 +1,6 @@ //// [anyAssignableToEveryType.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType2.1.normal.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType2.1.normal.js index 8f1858bc4815..81c27947866c 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType2.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType2.1.normal.js @@ -1,6 +1,6 @@ //// [anyAssignableToEveryType2.ts] // any is not a subtype of any other types, but is assignable, all the below should work -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType2.2.minified.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType2.2.minified.js index b75770db8049..a83e7b75a3b4 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType2.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType2.2.minified.js @@ -1,5 +1,5 @@ //// [anyAssignableToEveryType2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/apparentTypeSubtyping.1.normal.js b/crates/swc/tests/tsc-references/apparentTypeSubtyping.1.normal.js index ab47f2e1df26..a27b6ddbae19 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSubtyping.1.normal.js +++ b/crates/swc/tests/tsc-references/apparentTypeSubtyping.1.normal.js @@ -1,9 +1,9 @@ //// [apparentTypeSubtyping.ts] // subtype checks use the apparent type of the target type // S is a subtype of a type T, and T is a supertype of S, if one of the following is true, where S' denotes the apparent type (section 3.8.1) of S: -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/apparentTypeSubtyping.2.minified.js b/crates/swc/tests/tsc-references/apparentTypeSubtyping.2.minified.js index 0c2466022fff..0315c324e09e 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSubtyping.2.minified.js +++ b/crates/swc/tests/tsc-references/apparentTypeSubtyping.2.minified.js @@ -1,4 +1,4 @@ //// [apparentTypeSubtyping.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/apparentTypeSupertype.1.normal.js b/crates/swc/tests/tsc-references/apparentTypeSupertype.1.normal.js index a86cf7722824..ebbb7c092da5 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSupertype.1.normal.js +++ b/crates/swc/tests/tsc-references/apparentTypeSupertype.1.normal.js @@ -1,9 +1,9 @@ //// [apparentTypeSupertype.ts] // subtype checks use the apparent type of the target type // S is a subtype of a type T, and T is a supertype of S, if one of the following is true, where S' denotes the apparent type (section 3.8.1) of S: -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/apparentTypeSupertype.2.minified.js b/crates/swc/tests/tsc-references/apparentTypeSupertype.2.minified.js index 92e58d094ce2..5e9c7ce999c4 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSupertype.2.minified.js +++ b/crates/swc/tests/tsc-references/apparentTypeSupertype.2.minified.js @@ -1,4 +1,4 @@ //// [apparentTypeSupertype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.1.normal.js b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.1.normal.js index 1aa96e335a28..23e959d5ab76 100644 --- a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.1.normal.js +++ b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.1.normal.js @@ -1,7 +1,7 @@ //// [argumentExpressionContextualTyping.ts] // In a typed function call, argument expressions are contextually typed by their corresponding parameter types. -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function foo(param) { var _param_x = _sliced_to_array(param.x, 2), a = _param_x[0], b = _param_x[1], _param_y = param.y, c = _param_y.c, d = _param_y.d, e = _param_y.e; } diff --git a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.2.minified.js b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.2.minified.js index 43be12fc510c..f7ea44189d5c 100644 --- a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.2.minified.js +++ b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping.2.minified.js @@ -1,6 +1,6 @@ //// [argumentExpressionContextualTyping.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function foo(param) { var _param_x = _sliced_to_array(param.x, 2), _param_y = (_param_x[0], _param_x[1], param.y); _param_y.c, _param_y.d, _param_y.e; diff --git a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.1.normal.js b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.1.normal.js index ff45afc21d7a..917fd2b0b590 100644 --- a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.1.normal.js +++ b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.1.normal.js @@ -1,5 +1,5 @@ //// [arityAndOrderCompatibility01.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var x; var y; var z; diff --git a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.2.minified.js b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.2.minified.js index 1f7ff6eaa5e9..b351d371169f 100644 --- a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.2.minified.js +++ b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01.2.minified.js @@ -1,5 +1,5 @@ //// [arityAndOrderCompatibility01.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var y, z, _x = _sliced_to_array(void 0, 3); _x[0], _x[1], _x[2]; var _y = _sliced_to_array(y, 3); diff --git a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.1.normal.js b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.1.normal.js index bebeb12d9cdd..da27fad5cc76 100644 --- a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.1.normal.js @@ -1,5 +1,5 @@ //// [arrayAssignmentPatternWithAny.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; var x; var ref; diff --git a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.2.minified.js b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.2.minified.js index 98eeb3973d96..1f64b291af8b 100644 --- a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny.2.minified.js @@ -1,4 +1,4 @@ //// [arrayAssignmentPatternWithAny.ts] var a; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _sliced_to_array(a, 1)[0]; diff --git a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.1.normal.js index 382c59422df7..58f19e1aaa9f 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.1.normal.js @@ -2,7 +2,7 @@ // In a contextually typed array literal expression containing no spread elements, an element expression at index N is contextually typed by // the type of the property with the numeric name N in the contextual type, if any, or otherwise // the numeric index type of the contextual type, if any. -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var array = [ 1, 2, diff --git a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.2.minified.js index 35a12f2ed1fe..68b88944c610 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping.2.minified.js @@ -1,5 +1,5 @@ //// [arrayLiteralExpressionContextualTyping.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var tup = [ 1, 2, diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpread.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralSpread.1.normal.js index 3e7e624b15d5..cd0b908b0206 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpread.1.normal.js @@ -1,5 +1,5 @@ //// [arrayLiteralSpread.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f0() { var a = [ 1, diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpread.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralSpread.2.minified.js index 129850c60e7e..ff84dec56553 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpread.2.minified.js @@ -1,2 +1,2 @@ //// [arrayLiteralSpread.ts] -import "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.1.normal.js index 19c94948fc2b..9de4794d32d3 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.1.normal.js @@ -1,5 +1,5 @@ //// [arrayLiteralSpreadES5iterable.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f0() { var a = [ 1, diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.2.minified.js index c12db455831e..a141ec5a7f2a 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.2.minified.js @@ -1,2 +1,2 @@ //// [arrayLiteralSpreadES5iterable.ts] -import "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/arrayLiterals.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals.1.normal.js index e986d78002a7..0d639466281b 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals.1.normal.js @@ -1,8 +1,8 @@ //// [arrayLiterals.ts] // Empty array literal with no contextual type has type Undefined[] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var arr1 = [ [], [ diff --git a/crates/swc/tests/tsc-references/arrayLiterals.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals.2.minified.js index e81ff7f303e7..90900057477b 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals.2.minified.js @@ -1,7 +1,7 @@ //// [arrayLiterals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals2ES5.1.normal.js index b214f5f555ec..cc274866b8ea 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES5.1.normal.js @@ -6,7 +6,7 @@ // ElementList, Elisionopt SpreadElement // SpreadElement: // ... AssignmentExpression -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var a0 = [ , , diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals2ES5.2.minified.js index 42ec0827c54e..1d21b473850c 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES5.2.minified.js @@ -1,5 +1,5 @@ //// [arrayLiterals2ES5.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var a0 = [ , , diff --git a/crates/swc/tests/tsc-references/arrayLiterals3.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals3.1.normal.js index d122490d3c93..46dcf37ce8b7 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals3.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals3.1.normal.js @@ -6,7 +6,7 @@ // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is contextually typed by a tuple-like type, // the resulting type is a tuple type constructed from the types of the element expressions. -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var a0 = []; // Error var a1 = [ "string", diff --git a/crates/swc/tests/tsc-references/arrayLiterals3.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals3.2.minified.js index 5b88e228afd2..54e9442bdbe4 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals3.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals3.2.minified.js @@ -1,5 +1,5 @@ //// [arrayLiterals3.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref = [ 1, 2, diff --git a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.1.normal.js index 3126ea4efa40..afba4b49aff5 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.1.normal.js @@ -1,7 +1,7 @@ //// [arrayLiteralsWithRecursiveGenerics.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.2.minified.js index 8df58804e003..2b1468426e1c 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics.2.minified.js @@ -1,4 +1,4 @@ //// [arrayLiteralsWithRecursiveGenerics.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.1.normal.js b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.1.normal.js index 6db632074a6b..b6c30b119492 100644 --- a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.1.normal.js @@ -1,6 +1,6 @@ //// [arrayOfFunctionTypes3.ts] // valid uses of arrays of function types -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = [ function() { return 1; diff --git a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.2.minified.js b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.2.minified.js index f6211d9c2286..f79735eb0e86 100644 --- a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3.2.minified.js @@ -1,6 +1,6 @@ //// [arrayOfFunctionTypes3.ts] var a, a2, b2, c2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; [ function() { return 1; diff --git a/crates/swc/tests/tsc-references/arraySpreadImportHelpers.1.normal.js b/crates/swc/tests/tsc-references/arraySpreadImportHelpers.1.normal.js index 9d2d748f067f..9c58a6d6f360 100644 --- a/crates/swc/tests/tsc-references/arraySpreadImportHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/arraySpreadImportHelpers.1.normal.js @@ -1,5 +1,5 @@ //// [main.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var k = [ 1, , diff --git a/crates/swc/tests/tsc-references/arraySpreadImportHelpers.2.minified.js b/crates/swc/tests/tsc-references/arraySpreadImportHelpers.2.minified.js index 2ab9939b5720..03280ff6bd95 100644 --- a/crates/swc/tests/tsc-references/arraySpreadImportHelpers.2.minified.js +++ b/crates/swc/tests/tsc-references/arraySpreadImportHelpers.2.minified.js @@ -1,5 +1,5 @@ //// [main.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; [ 3 ].concat(_to_consumable_array([ diff --git a/crates/swc/tests/tsc-references/arrowFunctionExpressions.1.normal.js b/crates/swc/tests/tsc-references/arrowFunctionExpressions.1.normal.js index 39d27f30c6b6..b513f4767e71 100644 --- a/crates/swc/tests/tsc-references/arrowFunctionExpressions.1.normal.js +++ b/crates/swc/tests/tsc-references/arrowFunctionExpressions.1.normal.js @@ -1,8 +1,8 @@ //// [arrowFunctionExpressions.ts] // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; var a = function(p) { return p.length; }; diff --git a/crates/swc/tests/tsc-references/arrowFunctionExpressions.2.minified.js b/crates/swc/tests/tsc-references/arrowFunctionExpressions.2.minified.js index 2c3faeef22b9..cf5c38712329 100644 --- a/crates/swc/tests/tsc-references/arrowFunctionExpressions.2.minified.js +++ b/crates/swc/tests/tsc-references/arrowFunctionExpressions.2.minified.js @@ -1,4 +1,4 @@ //// [arrowFunctionExpressions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_sliced_to_array.mjs"; -import "@swc/helpers/src/_to_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_sliced_to_array"; +import "@swc/helpers/_/_to_array"; diff --git a/crates/swc/tests/tsc-references/asOperator3.1.normal.js b/crates/swc/tests/tsc-references/asOperator3.1.normal.js index ffacc1864191..0325a994f808 100644 --- a/crates/swc/tests/tsc-references/asOperator3.1.normal.js +++ b/crates/swc/tests/tsc-references/asOperator3.1.normal.js @@ -1,5 +1,5 @@ //// [asOperator3.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/asOperator3.2.minified.js b/crates/swc/tests/tsc-references/asOperator3.2.minified.js index b58abd8053de..7246326363ea 100644 --- a/crates/swc/tests/tsc-references/asOperator3.2.minified.js +++ b/crates/swc/tests/tsc-references/asOperator3.2.minified.js @@ -1,5 +1,5 @@ //// [asOperator3.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/asOperatorASI.1.normal.js b/crates/swc/tests/tsc-references/asOperatorASI.1.normal.js index 2d0ac3939985..40b65acca643 100644 --- a/crates/swc/tests/tsc-references/asOperatorASI.1.normal.js +++ b/crates/swc/tests/tsc-references/asOperatorASI.1.normal.js @@ -1,6 +1,6 @@ //// [asOperatorASI.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world" diff --git a/crates/swc/tests/tsc-references/asOperatorASI.2.minified.js b/crates/swc/tests/tsc-references/asOperatorASI.2.minified.js index 2c3486fbe830..a117a1b16a13 100644 --- a/crates/swc/tests/tsc-references/asOperatorASI.2.minified.js +++ b/crates/swc/tests/tsc-references/asOperatorASI.2.minified.js @@ -1,6 +1,6 @@ //// [asOperatorASI.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world" diff --git a/crates/swc/tests/tsc-references/assignAnyToEveryType.1.normal.js b/crates/swc/tests/tsc-references/assignAnyToEveryType.1.normal.js index 0f500bf44638..d918de3bc005 100644 --- a/crates/swc/tests/tsc-references/assignAnyToEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/assignAnyToEveryType.1.normal.js @@ -1,6 +1,6 @@ //// [assignAnyToEveryType.ts] // all of these are valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/assignAnyToEveryType.2.minified.js b/crates/swc/tests/tsc-references/assignAnyToEveryType.2.minified.js index 708e2c391156..d4159523aee6 100644 --- a/crates/swc/tests/tsc-references/assignAnyToEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/assignAnyToEveryType.2.minified.js @@ -1,6 +1,6 @@ //// [assignAnyToEveryType.ts] var x, E, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A, (M || (M = {})).foo = 1, M = x; diff --git a/crates/swc/tests/tsc-references/assignEveryTypeToAny.1.normal.js b/crates/swc/tests/tsc-references/assignEveryTypeToAny.1.normal.js index 946298d1d699..a6c0a2d75af2 100644 --- a/crates/swc/tests/tsc-references/assignEveryTypeToAny.1.normal.js +++ b/crates/swc/tests/tsc-references/assignEveryTypeToAny.1.normal.js @@ -1,6 +1,6 @@ //// [assignEveryTypeToAny.ts] // all of these are valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; x = 1; var a = 2; diff --git a/crates/swc/tests/tsc-references/assignEveryTypeToAny.2.minified.js b/crates/swc/tests/tsc-references/assignEveryTypeToAny.2.minified.js index 7b566a54a627..118c312eccc4 100644 --- a/crates/swc/tests/tsc-references/assignEveryTypeToAny.2.minified.js +++ b/crates/swc/tests/tsc-references/assignEveryTypeToAny.2.minified.js @@ -1,6 +1,6 @@ //// [assignEveryTypeToAny.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A, E.A; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.1.normal.js index c09def8a6690..03f85c1bb8f0 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithCallSignatures3.ts] // these are all permitted with the current rules, since we do not do contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.2.minified.js index 7ce067179388..a517a5728a2b 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithCallSignatures3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.1.normal.js index ef865f5dbda7..e42ffb47e0f8 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithCallSignatures4.ts] // These are mostly permitted with the current loose rules. All ok unless otherwise noted. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.2.minified.js index dea133c2b0ab..9d78303913a2 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4.2.minified.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithCallSignatures4.ts] var Errors; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(Errors) { var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType; WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {}), WithGenericSignaturesInBaseType || (WithGenericSignaturesInBaseType = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.1.normal.js index 1d3a68e354a5..6961b531f819 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithCallSignatures5.ts] // checking assignment compat for function types. No errors in this file -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.2.minified.js index 795d9e31b755..61f1727053dc 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithCallSignatures5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.1.normal.js index 0562f85e3ca6..57533b88211c 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithCallSignatures6.ts] // checking assignment compatibility relations for function types. All valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.2.minified.js index 11ee074a1a04..c16d0ac769ea 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithCallSignatures6.ts] var x, b, b2, b3, b4, b5, b11, b16; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; x.a = b, b = x.a, x.a2 = b2, b2 = x.a2, x.a3 = b3, b3 = x.a3, x.a4 = b4, b4 = x.a4, x.a5 = b5, b5 = x.a5, x.a11 = b11, b11 = x.a11, x.a16 = b16, b16 = x.a16; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.1.normal.js index 81981369ea26..0ef18f234ef5 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithConstructSignatures3.ts] // checking assignment compatibility relations for function types. All of these are valid. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.2.minified.js index 9cd5a3e98e41..38d19f526614 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithConstructSignatures3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.1.normal.js index c18ba28f7d33..9e9acaca3daa 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithConstructSignatures4.ts] // checking assignment compatibility relations for function types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.2.minified.js index d1ecafa67bef..70784e528031 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4.2.minified.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithConstructSignatures4.ts] var Errors; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(Errors) { var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType; WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {}), WithGenericSignaturesInBaseType || (WithGenericSignaturesInBaseType = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.1.normal.js index b3bd1ddb12c2..42c68bc7cfbc 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithConstructSignatures5.ts] // checking assignment compat for function types. All valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.2.minified.js index e8f12dc3e748..f683cd505d01 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithConstructSignatures5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.1.normal.js index 13055e0d4663..4c9e23abf9b2 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithConstructSignatures6.ts] // checking assignment compatibility relations for function types. All valid. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.2.minified.js index a7636e5e6bee..51c109cd6fc2 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithConstructSignatures6.ts] var x, b, b2, b3, b4, b5, b11, b16; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; x.a = b, b = x.a, x.a2 = b2, b2 = x.a2, x.a3 = b3, b3 = x.a3, x.a4 = b4, b4 = x.a4, x.a5 = b5, b5 = x.a5, x.a11 = b11, b11 = x.a11, x.a16 = b16, b16 = x.a16; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.1.normal.js index 2b8958feeaff..0725acb3bf29 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.1.normal.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts] // call signatures in derived types must have the same or fewer optional parameters as the target for assignment -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ClassTypeParam; (function(ClassTypeParam) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.2.minified.js index 0472b99e913d..dce09b422706 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts] var ClassTypeParam, GenericSignaturesInvalid, GenericSignaturesValid; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; ClassTypeParam || (ClassTypeParam = {}), GenericSignaturesInvalid || (GenericSignaturesInvalid = {}), GenericSignaturesValid || (GenericSignaturesValid = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.1.normal.js index 55bcfa03ee08..3e745c34e523 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithNumericIndexer.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.2.minified.js index 947f2fd28346..545834755797 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithNumericIndexer.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.1.normal.js index a4bea777d476..8d81a76551cd 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithNumericIndexer3.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.2.minified.js index 2b750513e064..6ec041eb4155 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithNumericIndexer3.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.1.normal.js index 458e7a3bd5f6..849f1cfac2c8 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.1.normal.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembers.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var SimpleTypes; (function(SimpleTypes) { var S = function S() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.2.minified.js index 2bea8b07178f..264d2666ba81 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithObjectMembers.ts] var SimpleTypes, ObjectTypes; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; SimpleTypes || (SimpleTypes = {}), function(ObjectTypes) { var t, t2, b, a2 = { foo: a2 diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.1.normal.js index c28de3aabdc9..4c92548c3915 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.1.normal.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembers2.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // additional optional properties do not cause errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var S = function S() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.2.minified.js index d3dd79e61355..35c267211941 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.2.minified.js @@ -1,2 +1,2 @@ //// [assignmentCompatWithObjectMembers2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.1.normal.js index 5d1b28a24495..9464523aa365 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.1.normal.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembers3.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // additional optional properties do not cause errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var S = function S() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.2.minified.js index eed35a496d7f..84b29678a965 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.2.minified.js @@ -1,2 +1,2 @@ //// [assignmentCompatWithObjectMembers3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.1.normal.js index 483f0de8a035..ad74fc529c8f 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithObjectMembers4.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is not assignable M -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var OnlyDerived; (function(OnlyDerived) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.2.minified.js index 034938c64e3a..749f9655f509 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4.2.minified.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithObjectMembers4.ts] var OnlyDerived, WithBase; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(OnlyDerived) { var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.1.normal.js index dd8dcff8feec..29e8cb5e0628 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.1.normal.js @@ -1,5 +1,5 @@ //// [assignmentCompatWithObjectMembers5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.2.minified.js index 26b96bc9bde9..6bfbf8636a6c 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.2.minified.js @@ -1,2 +1,2 @@ //// [assignmentCompatWithObjectMembers5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.1.normal.js index c0c825f44622..0a0eee13c902 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.1.normal.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithObjectMembersAccessibility.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TargetIsPublic; (function(TargetIsPublic) { // targets diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.2.minified.js index 65ed2c82aa66..3bf9121d1fba 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithObjectMembersAccessibility.ts] var TargetIsPublic; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(TargetIsPublic) { var a, b, i, d, e; a = b, a = i, a = d, b = a = e, b = i, b = d, b = e, i = a, i = b, i = d, i = e, d = a, d = b, d = i, d = e, e = a, e = b, e = i, e = d; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.1.normal.js index f9d7087b46ed..ae63657d8b25 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.1.normal.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembersNumericNames.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // numeric named properties work correctly, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var S = function S() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.2.minified.js index d9e51973e54e..372fcd7fe2c6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.2.minified.js @@ -1,2 +1,2 @@ //// [assignmentCompatWithObjectMembersNumericNames.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.1.normal.js index f2f61bcba019..6e8465f8ea23 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithObjectMembersOptionality.ts] // Derived member is not optional but base member is, should be ok -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.2.minified.js index d6d8aa5cfadc..781db9fc00d0 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality.2.minified.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembersOptionality.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var TargetHasOptional, SourceHasOptional, Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.1.normal.js index 9ba9a6a802d9..8bb5e9f03d77 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.1.normal.js @@ -1,9 +1,9 @@ //// [assignmentCompatWithObjectMembersOptionality2.ts] // M is optional and S contains no property with the same name as M // N is optional and T contains no property with the same name as N -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.2.minified.js index 2dae553cdd18..afabbeddd760 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2.2.minified.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembersOptionality2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var TargetHasOptional, SourceHasOptional, Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.1.normal.js index 058671e80d65..d8d0378e3195 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.1.normal.js @@ -1,7 +1,7 @@ //// [assignmentCompatWithObjectMembersStringNumericNames.ts] // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // string named numeric properties work correctly, errors below unless otherwise noted -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var JustStrings; (function(JustStrings) { var S = function S() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.2.minified.js index 8f2eb42e3625..e49fc71893a6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithObjectMembersStringNumericNames.ts] var JustStrings, NumbersAndStrings; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; JustStrings || (JustStrings = {}), NumbersAndStrings || (NumbersAndStrings = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.1.normal.js index 4eac3b894e6f..104011f76a15 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.1.normal.js @@ -1,8 +1,8 @@ //// [assignmentCompatWithStringIndexer.ts] // index signatures must be compatible in assignments -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.2.minified.js index 7be250ec9d54..a8f7f0fc6668 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithStringIndexer.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.1.normal.js index 23468ef336b3..651a611a9126 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.1.normal.js @@ -1,6 +1,6 @@ //// [assignmentCompatWithStringIndexer3.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a; var b1; a = b1; // error diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.2.minified.js index 3d2c5d699a78..1fb7f1fdabe1 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.2.minified.js @@ -1,4 +1,4 @@ //// [assignmentCompatWithStringIndexer3.ts] var Generics; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.1.normal.js b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.1.normal.js index fb7d4baba9bc..045eff8525c0 100644 --- a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.1.normal.js @@ -1,5 +1,5 @@ //// [assignmentToParenthesizedIdentifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; x = 3; // OK x = 3; // OK diff --git a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.2.minified.js b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.2.minified.js index a21e51256447..2f1f7e9eb176 100644 --- a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers.2.minified.js @@ -1,6 +1,6 @@ //// [assignmentToParenthesizedIdentifiers.ts] var M, M2, E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(M) { var y; M.y = y; diff --git a/crates/swc/tests/tsc-references/assignments.1.normal.js b/crates/swc/tests/tsc-references/assignments.1.normal.js index 741db84407ea..907c54e298fd 100644 --- a/crates/swc/tests/tsc-references/assignments.1.normal.js +++ b/crates/swc/tests/tsc-references/assignments.1.normal.js @@ -7,7 +7,7 @@ // Assign to a variable // Assign to a parameter // Assign to an interface -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; M = null; // Error var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignments.2.minified.js b/crates/swc/tests/tsc-references/assignments.2.minified.js index 0376457e294f..3465c8455124 100644 --- a/crates/swc/tests/tsc-references/assignments.2.minified.js +++ b/crates/swc/tests/tsc-references/assignments.2.minified.js @@ -1,6 +1,6 @@ //// [assignments.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; M = null, function(E) { E[E.A = 0] = "A"; }(E || (E = {})), (E = null).A = null, I = null; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.1.normal.js index 0e94bbbedd7a..60bff0819a5f 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncAliasReturnType_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.2.minified.js index 1fc17c1e36c8..6dd1761da7c9 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncAliasReturnType_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.1.normal.js index 3c54d9811aa4..44524a94b77f 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncAliasReturnType_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.2.minified.js index 3aad20348a35..f673b4a44cc3 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncAliasReturnType_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.1.normal.js index cbfd2b2fbf46..8cacdfc1310e 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncArrowFunction10_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var foo = function() { var _ref = _async_to_generator(function() { var v; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.2.minified.js index 00deb88a2231..f40558828a07 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncArrowFunction10_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.1.normal.js index e3c0c7d361d4..5e7ed27b36dc 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncArrowFunction10_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; var foo = function() { var _ref = _async_to_generator(function*() { // Legal to use 'await' in a type context. diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.2.minified.js index 9a115a2b2f69..c60b9d405bcb 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncArrowFunction10_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.1.normal.js index 971975bcc162..81722c37bb95 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.1.normal.js @@ -1,9 +1,9 @@ //// [asyncArrowFunction11_es5.ts] // https://github.com/Microsoft/TypeScript/issues/24722 -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.2.minified.js index ee6ba0b69107..bf55f1dd2aa7 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5.2.minified.js @@ -1,5 +1,5 @@ //// [asyncArrowFunction11_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_define_property.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_define_property"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.1.normal.js index 74ed6414dfed..1a01bb7e789b 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncArrowFunction1_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var foo = function() { var _ref = _async_to_generator(function() { return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.2.minified.js index c467e7bdf109..3ef432144774 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncArrowFunction1_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.1.normal.js index 50a7434906be..f750c04ead04 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncArrowFunction1_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; var foo = function() { var _ref = _async_to_generator(function*() {}); return function foo() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.2.minified.js index 45f963a1c32d..2c95d5f4f725 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncArrowFunction1_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.1.normal.js index 8145e9ed8048..8e0a22c76a88 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.1.normal.js @@ -1,7 +1,7 @@ //// [asyncArrowFunctionCapturesArguments_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.2.minified.js index 2fa63b50765e..bb5e98c693df 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5.2.minified.js @@ -1,4 +1,4 @@ //// [asyncArrowFunctionCapturesArguments_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.1.normal.js index d001ba34090c..c262b34684f7 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncArrowFunctionCapturesArguments_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class C { method() { function other() {} diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.2.minified.js index 876def899796..cd8041c3f043 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncArrowFunctionCapturesArguments_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.1.normal.js index 66d8f146903c..dff38994c2d3 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.1.normal.js @@ -1,7 +1,7 @@ //// [asyncArrowFunctionCapturesThis_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.2.minified.js index 6feaebefb15b..373119656472 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5.2.minified.js @@ -1,4 +1,4 @@ //// [asyncArrowFunctionCapturesThis_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.1.normal.js index 78a6c9e7b4dd..8a44b81634b8 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncArrowFunctionCapturesThis_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class C { method() { var _this = this; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.2.minified.js index 41f9a4be294f..92b4e6e941d3 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncArrowFunctionCapturesThis_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.1.normal.js index acb7579a39f8..5f4bcc3ee4ea 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.1.normal.js @@ -1,7 +1,7 @@ //// [asyncAwaitIsolatedModules_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.2.minified.js index c6628966ca76..9265d5ed5f76 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5.2.minified.js @@ -1,6 +1,6 @@ //// [asyncAwaitIsolatedModules_es5.ts] var M; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.1.normal.js index 1bdc4858878c..c2f66e457750 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncAwaitIsolatedModules_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.2.minified.js index b8670f940f03..040848e36b1c 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6.2.minified.js @@ -1,4 +1,4 @@ //// [asyncAwaitIsolatedModules_es6.ts] var M; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.1.normal.js index 4a27d76a8e58..8bf816c1ac12 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.1.normal.js @@ -1,8 +1,8 @@ //// [asyncAwaitNestedClasses_es5.ts] // https://github.com/Microsoft/TypeScript/issues/20744 -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.2.minified.js index 83429be16037..fe0852577d19 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5.2.minified.js @@ -1,7 +1,7 @@ //// [asyncAwaitNestedClasses_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es5.1.normal.js index 286f62983493..774a25373f18 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5.1.normal.js @@ -1,7 +1,7 @@ //// [asyncAwait_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es5.2.minified.js index e2310aa3ff97..341af5328c8e 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5.2.minified.js @@ -1,6 +1,6 @@ //// [asyncAwait_es5.ts] var M; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es6.1.normal.js index 4f057be967e4..213aacecd858 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncAwait_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es6.2.minified.js index 1e48d3072ff7..4cbb09eba2b7 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6.2.minified.js @@ -1,4 +1,4 @@ //// [asyncAwait_es6.ts] var M; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.1.normal.js index 313a430ef763..a9a746ad1a8c 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncFunctionDeclaration13_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.2.minified.js index 16ac61fb00ce..4a30aafbdcc1 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncFunctionDeclaration13_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.1.normal.js index ccb941d15263..18d0c6214a7b 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncFunctionDeclaration13_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.2.minified.js index f9503be38499..da3a7b6da628 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncFunctionDeclaration13_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.1.normal.js index 6764d9d6c675..2fe2f3872ed5 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncFunctionDeclaration14_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.2.minified.js index 573d4bd15de8..dfbc3e468e38 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncFunctionDeclaration14_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.1.normal.js index a0d79372316f..893f63a7f08f 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncFunctionDeclaration14_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.2.minified.js index 3b0cb7506cd5..d77ed49cc5cc 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncFunctionDeclaration14_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.1.normal.js index bfbd3cd005f4..50bdc95c23de 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncFunctionDeclaration1_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.2.minified.js index b8afe13c90f9..5e91e2e8c5f3 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncFunctionDeclaration1_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.1.normal.js index e001b716d001..6679f4e47eba 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncFunctionDeclaration1_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.2.minified.js index 5f389f46e012..fe1fddd5d090 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncFunctionDeclaration1_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.1.normal.js index a1651e45449a..cfd8fbb15857 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.1.normal.js @@ -1,7 +1,7 @@ //// [asyncFunctionDeclarationCapturesArguments_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.2.minified.js index 467c49aaa44e..e00d34abfeeb 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.2.minified.js @@ -1,4 +1,4 @@ //// [asyncFunctionDeclarationCapturesArguments_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5.1.normal.js index c6480c9dfeb5..3f167a2f87a4 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5.1.normal.js @@ -9,37 +9,37 @@ Object.defineProperty(exports, "Task", { return Task; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _wrap_native_super = require("@swc/helpers/lib/_wrap_native_super.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _wrap_native_super = require("@swc/helpers/_/_wrap_native_super"); +var _create_super = require("@swc/helpers/_/_create_super"); var Task = /*#__PURE__*/ function(Promise1) { "use strict"; - _inherits(Task, Promise1); - var _super = _create_super(Task); + _inherits._(Task, Promise1); + var _super = _create_super._(Task); function Task() { - _class_call_check(this, Task); + _class_call_check._(this, Task); return _super.apply(this, arguments); } return Task; -}(_wrap_native_super(Promise)); +}(_wrap_native_super._(Promise)); //// [test.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); var Test = /*#__PURE__*/ function() { "use strict"; function Test() { - _class_call_check(this, Test); + _class_call_check._(this, Test); } var _proto = Test.prototype; _proto.example = function example() { - return _async_to_generator(function() { - return _ts_generator(this, function(_state) { + return _async_to_generator._(function() { + return _ts_generator._(this, function(_state) { return [ 2 ]; diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5.2.minified.js index 8e379157d4e9..a6f04e47ea1f 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5.2.minified.js @@ -8,17 +8,17 @@ Object.defineProperty(exports, "__esModule", { return Task; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _inherits = require("@swc/helpers/lib/_inherits.js").default, _wrap_native_super = require("@swc/helpers/lib/_wrap_native_super.js").default, _create_super = require("@swc/helpers/lib/_create_super.js").default, Task = function(Promise1) { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _wrap_native_super = require("@swc/helpers/_/_wrap_native_super"), _create_super = require("@swc/helpers/_/_create_super"), Task = function(Promise1) { "use strict"; - _inherits(Task, Promise1); - var _super = _create_super(Task); + _inherits._(Task, Promise1); + var _super = _create_super._(Task); function Task() { - return _class_call_check(this, Task), _super.apply(this, arguments); + return _class_call_check._(this, Task), _super.apply(this, arguments); } return Task; -}(_wrap_native_super(Promise)); +}(_wrap_native_super._(Promise)); //// [test.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_class_call_check.js").default, require("@swc/helpers/lib/_ts_generator.js").default; +}), require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_ts_generator"); diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6.1.normal.js index b2970b4b4a0c..6a6cd000f766 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6.1.normal.js @@ -14,10 +14,10 @@ class Task extends Promise { Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); class Test { example() { - return _async_to_generator(function*() { + return _async_to_generator._(function*() { return; })(); } diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6.2.minified.js index 4f700dceb0f4..6cab5632d77b 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6.2.minified.js @@ -12,4 +12,4 @@ class Task extends Promise { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_async_to_generator.js").default; +}), require("@swc/helpers/_/_async_to_generator"); diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.1.normal.js index d307b85944ca..ca7142aa7c95 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncMethodWithSuperConflict_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class A { x() {} y() {} diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.2.minified.js index fafdd454bb58..7ebaef51b28c 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncMethodWithSuperConflict_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.1.normal.js index 0e53ed161e60..a3fc06e5b1fe 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.1.normal.js @@ -1,12 +1,12 @@ //// [asyncMethodWithSuper_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.2.minified.js index 7d644a60207d..7b91c5540f62 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5.2.minified.js @@ -1,9 +1,9 @@ //// [asyncMethodWithSuper_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.1.normal.js index c77e2a5737a9..dcf7fa359685 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.1.normal.js @@ -1,6 +1,6 @@ //// [asyncMethodWithSuper_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class A { x() {} y() {} diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.2.minified.js index 178fb010c024..54fc527e65db 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.2.minified.js @@ -1,3 +1,3 @@ //// [asyncMethodWithSuper_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5.1.normal.js index 7c882807d4ab..6323073fea72 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5.1.normal.js @@ -1,6 +1,6 @@ //// [a.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5.2.minified.js index 0c46032ba65d..f84e75241ed9 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5.2.minified.js @@ -1,4 +1,4 @@ //// [a.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; //// [b.ts] diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6.1.normal.js index 361816f7ec68..a5980016db47 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6.1.normal.js @@ -1,5 +1,5 @@ //// [a.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6.2.minified.js index ab6a3e82f906..bd5a58f9c40c 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6.2.minified.js @@ -1,3 +1,3 @@ //// [a.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; //// [b.ts] diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.1.normal.js index 7585a2085022..e64bbbf7e5e0 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncUnParenthesizedArrowFunction_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var x = function() { var _ref = _async_to_generator(function(i) { return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.2.minified.js index 81e2d2567d12..3b752dc096d0 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncUnParenthesizedArrowFunction_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.1.normal.js index e00138a0d7d2..0779da1e8b65 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncUnParenthesizedArrowFunction_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; const x = function() { var _ref = _async_to_generator(function*(i) { return yield someOtherFunction(i); diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.2.minified.js index b26083885397..895c164ec2ad 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncUnParenthesizedArrowFunction_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5.1.normal.js index cc390f9e77a4..6809b5dee46f 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5.1.normal.js @@ -1,6 +1,6 @@ //// [asyncUseStrict_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5.2.minified.js index 1db8cd1aa16f..f7f95e54aae4 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5.2.minified.js @@ -1,3 +1,3 @@ //// [asyncUseStrict_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6.1.normal.js index 347c2b712bec..0327d7c722c0 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6.1.normal.js @@ -1,5 +1,5 @@ //// [asyncUseStrict_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6.2.minified.js index e1039200bccc..ffb032eea21e 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6.2.minified.js @@ -1,2 +1,2 @@ //// [asyncUseStrict_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.1.normal.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.1.normal.js index 4da024748e8f..7af93a9c567d 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.1.normal.js @@ -1,8 +1,8 @@ //// [asyncWithVarShadowing_es6.ts] // https://github.com/Microsoft/TypeScript/issues/20461 -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function fn1(x) { return _fn1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.2.minified.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.2.minified.js index 5c42afc8af64..e79e732223bf 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.2.minified.js @@ -1,4 +1,4 @@ //// [asyncWithVarShadowing_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_extends.mjs"; -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_extends"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.1.normal.js index 8ee4e46767a4..5497918e8820 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitBinaryExpression1_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.2.minified.js index ccc7318bff40..c35d4555b7fc 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitBinaryExpression1_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.1.normal.js index 2a27ab19c6e7..68b08e04a308 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitBinaryExpression1_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.2.minified.js index 8c8f3499a194..3c3ee9da82aa 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitBinaryExpression1_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.1.normal.js index c3fb5725ce3d..c0604f7a5cd2 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitBinaryExpression2_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.2.minified.js index 172c550c8606..4e5cf5133d98 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitBinaryExpression2_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.1.normal.js index 7256d102d74a..7dcfb7e46a1b 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitBinaryExpression2_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.2.minified.js index aa1f13e06f38..bb914c06c060 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitBinaryExpression2_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.1.normal.js index d9d7d1162a69..32652bdda55d 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitBinaryExpression3_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.2.minified.js index 17ac8f915fad..46bf1ae8f929 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitBinaryExpression3_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.1.normal.js index 0ec55fd0f456..509cf97524d1 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitBinaryExpression3_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.2.minified.js index ed146045414e..ec8d40ef8b6e 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitBinaryExpression3_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.1.normal.js index 5bb013c472c5..6af390e2384c 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitBinaryExpression4_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.2.minified.js index 60e571214aaa..23102213a8a5 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitBinaryExpression4_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.1.normal.js index ab1470b0fc31..159651605518 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitBinaryExpression4_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.2.minified.js index edb6c3bc254d..0ebebf7f6c58 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitBinaryExpression4_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.1.normal.js index fcc2b6394542..b7cd69b92f9f 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitBinaryExpression5_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.2.minified.js index b337931d19fb..50f09455135b 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitBinaryExpression5_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.1.normal.js index 0a0d592a732c..9888dde1acb6 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitBinaryExpression5_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.2.minified.js index 810473b95a11..aeb53f06889b 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitBinaryExpression5_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5.1.normal.js index 51888028eb16..bb169bce6120 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression1_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5.2.minified.js index fb730fed4031..416d9863c47e 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression1_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6.1.normal.js index e4bb38b29dae..f57e8b1ad800 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression1_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6.2.minified.js index b61d77b2b9df..267b36f00f94 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression1_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5.1.normal.js index bac6fdc43c79..ae975e90d757 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression2_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5.2.minified.js index e31663422555..74d80f492ab5 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression2_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6.1.normal.js index 0912a9c63ed6..abc30f35a1f9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression2_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6.2.minified.js index 64434ba9e519..54b5f5191d7f 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression2_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5.1.normal.js index f8de132bf0e1..6cdb3b1e1071 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression3_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5.2.minified.js index e2f6be7ce3c9..9f639ace3953 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression3_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6.1.normal.js index 3683b6013fb2..a310bf66945f 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression3_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6.2.minified.js index 1597233369c6..4a627056f03c 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression3_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5.1.normal.js index 58d6acd4257f..d7fda928532a 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression4_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5.2.minified.js index eb058062bee1..009ab95f4d85 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression4_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6.1.normal.js index 8f124d88db2f..0d98d9f41e24 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression4_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6.2.minified.js index 3030973f8e25..aecab2a1281f 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression4_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5.1.normal.js index 13a727a4509b..f79e35523adc 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression5_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5.2.minified.js index a294de593836..3f6a4bf54d0e 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression5_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6.1.normal.js index 766ec964a7ae..d2b6f7da312a 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression5_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6.2.minified.js index caefe7a5929c..df9848458c78 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression5_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5.1.normal.js index 022161205b37..054e815a8350 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression6_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5.2.minified.js index 09407b2a4678..bab4e80953be 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression6_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6.1.normal.js index b5e737c92d76..232d00826bd1 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression6_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6.2.minified.js index 9e700d10991d..4b006a7fca51 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression6_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5.1.normal.js index a265555e9dfe..3ccb4fd17261 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression7_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5.2.minified.js index fa97c133b6ca..f131876ddaed 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression7_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6.1.normal.js index 510c6f068e23..d5418bdda074 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression7_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6.2.minified.js index ff4df8b8b2f5..847e8eae7e15 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression7_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5.1.normal.js index 020012b54b28..c02f62848be5 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitCallExpression8_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5.2.minified.js index 0a1f122cb5a9..684c2383e896 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitCallExpression8_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6.1.normal.js index ff053b142005..feec439a7aa0 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitCallExpression8_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6.2.minified.js index 3036fc823fa4..82246cd7e300 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitCallExpression8_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5.1.normal.js index 23f1eb185266..d2d98c9c0f79 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5.1.normal.js @@ -1,9 +1,9 @@ //// [awaitClassExpression_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5.2.minified.js index bdecc0e1258d..def3dc00a2ed 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5.2.minified.js @@ -1,6 +1,6 @@ //// [awaitClassExpression_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_inherits.mjs"; -import "@swc/helpers/src/_create_super.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_inherits"; +import "@swc/helpers/_/_create_super"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6.1.normal.js index f7555db17543..c0c074b117a5 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitClassExpression_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6.2.minified.js index 1241a7a70c74..d7ea60377e48 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitClassExpression_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es5.1.normal.js index cf8153e23ab1..fe58fa9b741b 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5.1.normal.js @@ -1,6 +1,6 @@ //// [awaitUnion_es5.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es5.2.minified.js index 9ea27afe6b75..c4a39217521f 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5.2.minified.js @@ -1,3 +1,3 @@ //// [awaitUnion_es5.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es6.1.normal.js index beb5cb0d4a5b..15bd05c166ef 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6.1.normal.js @@ -1,5 +1,5 @@ //// [awaitUnion_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es6.2.minified.js index 9be8e16816d0..a202809a83d5 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6.2.minified.js @@ -1,2 +1,2 @@ //// [awaitUnion_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6.1.normal.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6.1.normal.js index ad175171c904..001793913049 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6.1.normal.js @@ -1,5 +1,5 @@ //// [await_unaryExpression_es6.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function bar() { return _bar.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6.2.minified.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6.2.minified.js index ef2daa73240d..e58f253f135b 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6.2.minified.js @@ -1,2 +1,2 @@ //// [await_unaryExpression_es6.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.1.normal.js index 9ebca410fe45..c314fa7bb7ca 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.1.normal.js @@ -1,9 +1,9 @@ //// [bestCommonTypeOfConditionalExpressions.ts] // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) // no errors expected here -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var a; var b; var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.2.minified.js index 305bb8babd2e..71252c850ef8 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions.2.minified.js @@ -1,4 +1,4 @@ //// [bestCommonTypeOfConditionalExpressions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.1.normal.js index 5a956aad2e9c..d2e065fc769a 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.1.normal.js @@ -1,9 +1,9 @@ //// [bestCommonTypeOfConditionalExpressions2.ts] // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) // these are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.2.minified.js index 6663046a3eee..087d4ad9fe01 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2.2.minified.js @@ -1,4 +1,4 @@ //// [bestCommonTypeOfConditionalExpressions2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.1.normal.js index bc98cdb4679d..495e5cb73f99 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.1.normal.js @@ -1,7 +1,7 @@ //// [bestCommonTypeOfTuple2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.2.minified.js index b7aff2f739a0..c9cebe6925f5 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2.2.minified.js @@ -1,6 +1,6 @@ //// [bestCommonTypeOfTuple2.ts] var t1, t2, t3, t4, t5; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; t1[4], t2[4], t3[4], t4[2], t5[2]; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.1.normal.js index fb943eedb893..a3fa02a551ae 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.1.normal.js @@ -1,6 +1,6 @@ //// [bitwiseNotOperatorWithBooleanType.ts] // ~ operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.2.minified.js index e70cd4593daf..982d82f0cea1 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType.2.minified.js @@ -1,5 +1,5 @@ //// [bitwiseNotOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.1.normal.js index 78e531ca69aa..01a8285a7b2a 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [bitwiseNotOperatorWithNumberType.ts] // ~ operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.2.minified.js index 6ce2c103743c..cf399ea94a42 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [bitwiseNotOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.1.normal.js index 69a3107b2635..553ced4e6eff 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.1.normal.js @@ -1,6 +1,6 @@ //// [bitwiseNotOperatorWithStringType.ts] // ~ operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.2.minified.js index 88da53fd4019..013c6540f90e 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType.2.minified.js @@ -1,5 +1,5 @@ //// [bitwiseNotOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).1.normal.js b/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).1.normal.js index 61ac235e6eb2..0cde5bc0545f 100644 --- a/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).1.normal.js @@ -1,10 +1,10 @@ //// [callChainWithSuper.ts] // GH#34952 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).2.minified.js b/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).2.minified.js index 6ea4b3b2fe90..f9b1219a6452 100644 --- a/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/callChainWithSuper(target=es5).2.minified.js @@ -1,6 +1,6 @@ //// [callChainWithSuper.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.1.normal.js index 19316848c090..186a9a9fe510 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.1.normal.js @@ -1,7 +1,7 @@ //// [callGenericFunctionWithIncorrectNumberOfTypeArguments.ts] // type parameter lists must exactly match type argument lists // all of these invocations are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f(x, y) { return null; } diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.2.minified.js index 2d85e9c1d17a..25db0697e8e8 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments.2.minified.js @@ -1,5 +1,5 @@ //// [callGenericFunctionWithIncorrectNumberOfTypeArguments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var f3, i, i2, f2 = function(x, y) { return null; }; diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.1.normal.js index 9320decea0c8..4ddb4f4f3755 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.1.normal.js @@ -1,6 +1,6 @@ //// [callGenericFunctionWithZeroTypeArguments.ts] // valid invocations of generic functions with no explicit type arguments provided -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f(x) { return null; } diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.2.minified.js index 61d47d8005c8..8089ffd36e37 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments.2.minified.js @@ -1,6 +1,6 @@ //// [callGenericFunctionWithZeroTypeArguments.ts] var i, i2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (void 0)(1), new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.1.normal.js index 91e89304fe37..78bb9d9423a2 100644 --- a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.1.normal.js @@ -1,7 +1,7 @@ //// [callNonGenericFunctionWithTypeArguments.ts] // it is always illegal to provide type arguments to a non-generic function // all invocations here are illegal -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f(x) { return null; } diff --git a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.2.minified.js index 3dc6373057e7..51a6e5a5f011 100644 --- a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments.2.minified.js @@ -1,6 +1,6 @@ //// [callNonGenericFunctionWithTypeArguments.ts] var i, i2, a, a2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (void 0)(1), new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/callOverload.1.normal.js b/crates/swc/tests/tsc-references/callOverload.1.normal.js index a9e8dbfd2df2..f8baac24ba92 100644 --- a/crates/swc/tests/tsc-references/callOverload.1.normal.js +++ b/crates/swc/tests/tsc-references/callOverload.1.normal.js @@ -1,5 +1,5 @@ //// [callOverload.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var n; fn(1) // no error ; diff --git a/crates/swc/tests/tsc-references/callOverload.2.minified.js b/crates/swc/tests/tsc-references/callOverload.2.minified.js index 11e82260d3cb..52affc4642f3 100644 --- a/crates/swc/tests/tsc-references/callOverload.2.minified.js +++ b/crates/swc/tests/tsc-references/callOverload.2.minified.js @@ -1,6 +1,6 @@ //// [callOverload.ts] var n; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; fn(1), fn(1, 2, 3, 4), takeTwo(1, 2, 3, 4), withRest.apply(void 0, [ "a" ].concat(_to_consumable_array(n))), withRest(), withRest.apply(void 0, _to_consumable_array(n)); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.1.normal.js index 89cc5ed61146..bc518f148ae8 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.1.normal.js @@ -1,8 +1,8 @@ //// [callSignatureAssignabilityInInheritance2.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.2.minified.js index 63c1449bb846..428fb5271050 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2.2.minified.js @@ -1,4 +1,4 @@ //// [callSignatureAssignabilityInInheritance2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.1.normal.js index d9bd90e922fc..0e835b1bf690 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.1.normal.js @@ -1,9 +1,9 @@ //// [callSignatureAssignabilityInInheritance3.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.2.minified.js index 1b77d8084290..2678c24f21bf 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3.2.minified.js @@ -1,6 +1,6 @@ //// [callSignatureAssignabilityInInheritance3.ts] var Errors; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Errors || (Errors = {}); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.1.normal.js index 681e938c3a51..608f35513ef3 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.1.normal.js @@ -1,8 +1,8 @@ //// [callSignatureAssignabilityInInheritance4.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.2.minified.js index 400c7b6f563b..6f288a97081b 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4.2.minified.js @@ -1,4 +1,4 @@ //// [callSignatureAssignabilityInInheritance4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.1.normal.js index 3716abacb622..08c57d90b5eb 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.1.normal.js @@ -1,9 +1,9 @@ //// [callSignatureAssignabilityInInheritance5.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithCallSignatures2 just with an extra level of indirection in the inheritance chain -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.2.minified.js index 2b16ace1f619..2338fc32482d 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5.2.minified.js @@ -1,4 +1,4 @@ //// [callSignatureAssignabilityInInheritance5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.1.normal.js index b25ad1743849..993b5dd33d96 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.1.normal.js @@ -2,9 +2,9 @@ // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithCallSignatures4 but using class type parameters instead of generic signatures // all are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.2.minified.js index f5565962da02..4ce14b644931 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6.2.minified.js @@ -1,4 +1,4 @@ //// [callSignatureAssignabilityInInheritance6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.1.normal.js b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.1.normal.js index db655fca738d..a3b320bf8bf3 100644 --- a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.1.normal.js @@ -1,8 +1,8 @@ //// [callSignatureWithoutReturnTypeAnnotationInference.ts] // Call signatures without a return type should infer one from the function body (if present) // Simple types -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; function foo(x) { return 1; } diff --git a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.2.minified.js b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.2.minified.js index 63ca8e8a275b..fa59d27a1636 100644 --- a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference.2.minified.js @@ -1,6 +1,6 @@ //// [callSignatureWithoutReturnTypeAnnotationInference.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; function m1() { return 1; } diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.1.normal.js index c1ad50a7b8ad..832c9bc0f2bb 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.1.normal.js @@ -1,6 +1,6 @@ //// [callSignaturesWithOptionalParameters.ts] // Optional parameters should be valid in all the below casts -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} var f = function foo(x) {}; var f2 = function(x, y) {}; diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.2.minified.js index f28a92681aa8..36f031e8c901 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters.2.minified.js @@ -1,5 +1,5 @@ //// [callSignaturesWithOptionalParameters.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var c, i, a, f = function(x) {}, f2 = function(x, y) {}; f(1), f(), f2(1), f2(1, 2), c.foo(), c.foo(1), i(), i(1), i.foo(1), i.foo(1, 2), a(), a(1), a.foo(), a.foo(1); var b = { diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.1.normal.js index 4cc1b0580628..f1a5cc98b41b 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.1.normal.js @@ -1,6 +1,6 @@ //// [callSignaturesWithOptionalParameters2.ts] // Optional parameters should be valid in all the below casts -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} foo(1); foo(); diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.2.minified.js index da025b7749ec..ca5ff64224cc 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2.2.minified.js @@ -1,4 +1,4 @@ //// [callSignaturesWithOptionalParameters2.ts] var c, i, a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; c.foo(), c.foo(1), c.foo2(1), c.foo2(1, 2), i(), i(1), i(1, 2), i.foo(1), i.foo(1, 2), i.foo(1, 2, 3), a(), a(1), a(1, 2), a.foo(1), a.foo(1, 2), a.foo(1, 2, 3); diff --git a/crates/swc/tests/tsc-references/callWithMissingVoid.1.normal.js b/crates/swc/tests/tsc-references/callWithMissingVoid.1.normal.js index 394015e40f62..0e27343c5662 100644 --- a/crates/swc/tests/tsc-references/callWithMissingVoid.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithMissingVoid.1.normal.js @@ -1,6 +1,6 @@ //// [callWithMissingVoid.ts] // From #4260 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X = /*#__PURE__*/ function() { "use strict"; function X() { diff --git a/crates/swc/tests/tsc-references/callWithMissingVoid.2.minified.js b/crates/swc/tests/tsc-references/callWithMissingVoid.2.minified.js index 96d783ce1aa0..5044f7fd7c75 100644 --- a/crates/swc/tests/tsc-references/callWithMissingVoid.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithMissingVoid.2.minified.js @@ -1,5 +1,5 @@ //// [callWithMissingVoid.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; x.f(), xUnion.f(42), xUnion.f(), xAny.f(), xUnknown.f(), xNever.f(); var MyPromise = function MyPromise(executor) { "use strict"; diff --git a/crates/swc/tests/tsc-references/callWithSpread.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread.1.normal.js index f3a7da00fe9c..216361ab09e5 100644 --- a/crates/swc/tests/tsc-references/callWithSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread.1.normal.js @@ -1,10 +1,10 @@ //// [callWithSpread.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _obj, _obj1, _obj2, _obj3, _foo_apply, _obj4, _foo_apply1, _obj5, _obj6, _obj7, _obj8, _foo_apply2, _obj9, _foo_apply3, _xa_, _xa_1, _xa_2; function foo(x, y) { for(var _len = arguments.length, z = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/callWithSpread.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread.2.minified.js index d18bc18b3fcc..69d1fbfd92a6 100644 --- a/crates/swc/tests/tsc-references/callWithSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread.2.minified.js @@ -1,11 +1,11 @@ //// [callWithSpread.ts] var _foo_apply, _foo_apply1, _foo_apply2, _foo_apply3, _xa_, _xa_1, _xa_2, a, obj, xa; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function foo(x, y) { for(var _len = arguments.length, z = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)z[_key - 2] = arguments[_key]; } diff --git a/crates/swc/tests/tsc-references/callWithSpread2.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread2.1.normal.js index f3978c6d41da..6619a3128881 100644 --- a/crates/swc/tests/tsc-references/callWithSpread2.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread2.1.normal.js @@ -1,5 +1,5 @@ //// [callWithSpread2.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; // good all.apply(void 0, _to_consumable_array(ns)); weird.apply(void 0, _to_consumable_array(ns)); diff --git a/crates/swc/tests/tsc-references/callWithSpread2.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread2.2.minified.js index da246770d543..562aa072f994 100644 --- a/crates/swc/tests/tsc-references/callWithSpread2.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread2.2.minified.js @@ -1,5 +1,5 @@ //// [callWithSpread2.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; all.apply(void 0, _to_consumable_array(ns)), weird.apply(void 0, _to_consumable_array(ns)), weird.apply(void 0, _to_consumable_array(mixed)), weird.apply(void 0, _to_consumable_array(tuple)), prefix.apply(void 0, [ "a" ].concat(_to_consumable_array(ns))), rest.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/callWithSpread3.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread3.1.normal.js index 21fd74ab4640..cdff44697dd1 100644 --- a/crates/swc/tests/tsc-references/callWithSpread3.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread3.1.normal.js @@ -1,5 +1,5 @@ //// [callWithSpread3.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; // error fs2.apply(void 0, [ "a" diff --git a/crates/swc/tests/tsc-references/callWithSpread3.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread3.2.minified.js index b0c6db7bfb02..c8e91d756f86 100644 --- a/crates/swc/tests/tsc-references/callWithSpread3.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread3.2.minified.js @@ -1,5 +1,5 @@ //// [callWithSpread3.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; fs2.apply(void 0, [ "a" ].concat(_to_consumable_array(s2))), fs2.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/callWithSpread5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread5.1.normal.js index db9206dafef9..310923aa80cb 100644 --- a/crates/swc/tests/tsc-references/callWithSpread5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread5.1.normal.js @@ -1,5 +1,5 @@ //// [callWithSpread5.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; fn.apply(void 0, _to_consumable_array(nnnu).concat([ x ])); diff --git a/crates/swc/tests/tsc-references/callWithSpread5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread5.2.minified.js index 77e7811c6d4b..6c7c16a62df1 100644 --- a/crates/swc/tests/tsc-references/callWithSpread5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread5.2.minified.js @@ -1,5 +1,5 @@ //// [callWithSpread5.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; fn.apply(void 0, _to_consumable_array(nnnu).concat([ x ])), fn.apply(void 0, _to_consumable_array(nntnnnt).concat([ diff --git a/crates/swc/tests/tsc-references/callbackTag2.1.normal.js b/crates/swc/tests/tsc-references/callbackTag2.1.normal.js index 6db53421cedb..ca3541a504a9 100644 --- a/crates/swc/tests/tsc-references/callbackTag2.1.normal.js +++ b/crates/swc/tests/tsc-references/callbackTag2.1.normal.js @@ -3,7 +3,7 @@ * @callback Id * @param {T} t * @returns {T} Maybe just return 120 and cast it? - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = 1; /** @type {Id} I actually wanted to write `const "120"` */ var one_twenty = function(s) { return "120"; diff --git a/crates/swc/tests/tsc-references/callbackTag2.2.minified.js b/crates/swc/tests/tsc-references/callbackTag2.2.minified.js index b8c427dc5fee..f481da549a45 100644 --- a/crates/swc/tests/tsc-references/callbackTag2.2.minified.js +++ b/crates/swc/tests/tsc-references/callbackTag2.2.minified.js @@ -1,2 +1,2 @@ //// [cb.js] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/castingTuple.1.normal.js b/crates/swc/tests/tsc-references/castingTuple.1.normal.js index 236a49b268db..3249b19c5235 100644 --- a/crates/swc/tests/tsc-references/castingTuple.1.normal.js +++ b/crates/swc/tests/tsc-references/castingTuple.1.normal.js @@ -1,7 +1,7 @@ //// [castingTuple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/castingTuple.2.minified.js b/crates/swc/tests/tsc-references/castingTuple.2.minified.js index bd755b89543e..85bf1e1594e1 100644 --- a/crates/swc/tests/tsc-references/castingTuple.2.minified.js +++ b/crates/swc/tests/tsc-references/castingTuple.2.minified.js @@ -1,7 +1,7 @@ //// [castingTuple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var E1, E2, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/chained.1.normal.js b/crates/swc/tests/tsc-references/chained.1.normal.js index 93545ed099ca..5d5c8b0531cd 100644 --- a/crates/swc/tests/tsc-references/chained.1.normal.js +++ b/crates/swc/tests/tsc-references/chained.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/chained.2.minified.js b/crates/swc/tests/tsc-references/chained.2.minified.js index 3bea97cc0530..3ea50d48a55a 100644 --- a/crates/swc/tests/tsc-references/chained.2.minified.js +++ b/crates/swc/tests/tsc-references/chained.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] export { B as C } from "./a"; //// [/c.ts] diff --git a/crates/swc/tests/tsc-references/chained2.1.normal.js b/crates/swc/tests/tsc-references/chained2.1.normal.js index 1978fa4c0893..e57436f31f72 100644 --- a/crates/swc/tests/tsc-references/chained2.1.normal.js +++ b/crates/swc/tests/tsc-references/chained2.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/chained2.2.minified.js b/crates/swc/tests/tsc-references/chained2.2.minified.js index bb60a19cb1d9..5203417445d9 100644 --- a/crates/swc/tests/tsc-references/chained2.2.minified.js +++ b/crates/swc/tests/tsc-references/chained2.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] import A from "./a"; export { A }; diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTag7.1.normal.js b/crates/swc/tests/tsc-references/checkJsdocTypeTag7.1.normal.js index 41a20b3bea4c..e8bd3ffab2a5 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTag7.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTag7.1.normal.js @@ -1,7 +1,7 @@ //// [test.js] /** * @typedef {(a: string, b: number) => void} Foo - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTag7.2.minified.js b/crates/swc/tests/tsc-references/checkJsdocTypeTag7.2.minified.js index 1ffa4e090136..775e9fe2756a 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTag7.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTag7.2.minified.js @@ -1,2 +1,2 @@ //// [test.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.1.normal.js b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.1.normal.js index c58f7df8c1aa..533fe3878257 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.1.normal.js @@ -1,7 +1,7 @@ //// [checkJsdocTypeTagOnObjectProperty1.ts] //// [0.js] // @ts-check -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var lol = "hello Lol"; var _obj; var obj = (_obj = { diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.2.minified.js b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.2.minified.js index 0bb29d13cd18..d786aeceb596 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1.2.minified.js @@ -1,6 +1,6 @@ //// [checkJsdocTypeTagOnObjectProperty1.ts] //// [0.js] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, obj = (_define_property(_obj = { foo: void 0, bar: "42", diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.1.normal.js index efc678b0ffc9..f73f7852af18 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.1.normal.js @@ -1,8 +1,8 @@ //// [checkJsxChildrenCanBeTupleType.tsx] /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import React from "react"; var ResizablePanel = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.2.minified.js index 41fd78efce63..b51cc415a15d 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType.2.minified.js @@ -1,6 +1,6 @@ //// [checkJsxChildrenCanBeTupleType.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import React from "react"; React.Component; diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.1.normal.js index 4bea841573c5..2c3e9ef014a5 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.1.normal.js @@ -1,5 +1,5 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Button = /*#__PURE__*/ function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.2.minified.js index a553e6989bae..181b1acfe58b 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10.2.minified.js @@ -1,2 +1,2 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.1.normal.js index 4bea841573c5..2c3e9ef014a5 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.1.normal.js @@ -1,5 +1,5 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Button = /*#__PURE__*/ function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.2.minified.js index a553e6989bae..181b1acfe58b 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11.2.minified.js @@ -1,2 +1,2 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.1.normal.js b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.1.normal.js index 9683c36dab0a..6341687335a7 100644 --- a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.1.normal.js @@ -1,7 +1,7 @@ //// [checkJsxIntersectionElementPropsType.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(Component1) { "use strict"; _inherits(C, Component1); diff --git a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.2.minified.js b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.2.minified.js index c6134a567145..27c3945ef1ce 100644 --- a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType.2.minified.js @@ -1,7 +1,7 @@ //// [checkJsxIntersectionElementPropsType.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; new (function(Component1) { "use strict"; _inherits(C, Component1); diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.1.normal.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.1.normal.js index 1e4ae1e29083..eb342efa6403 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.1.normal.js @@ -1,10 +1,10 @@ //// [checkJsxSubtleSkipContextSensitiveBug.tsx] /// -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; import * as React from "react"; var AsyncLoader = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.2.minified.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.2.minified.js index 463db652658a..efde526959d7 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug.2.minified.js @@ -1,8 +1,8 @@ //// [checkJsxSubtleSkipContextSensitiveBug.tsx] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; import * as React from "react"; React.Component; diff --git a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.1.normal.js b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.1.normal.js index 295da5c7fc92..b7005bfa01b8 100644 --- a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [bug24252.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = {}; A.B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.2.minified.js b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.2.minified.js index 35e54c50cc50..f19f16f3cacc 100644 --- a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments.2.minified.js @@ -1,2 +1,2 @@ //// [bug24252.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/circularImportAlias.1.normal.js b/crates/swc/tests/tsc-references/circularImportAlias.1.normal.js index b28ef28cea2c..e9108f431713 100644 --- a/crates/swc/tests/tsc-references/circularImportAlias.1.normal.js +++ b/crates/swc/tests/tsc-references/circularImportAlias.1.normal.js @@ -1,8 +1,8 @@ //// [circularImportAlias.ts] // expected no error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B; (function(B) { var a = A; diff --git a/crates/swc/tests/tsc-references/circularImportAlias.2.minified.js b/crates/swc/tests/tsc-references/circularImportAlias.2.minified.js index fd98f48b9df2..daa228300b5e 100644 --- a/crates/swc/tests/tsc-references/circularImportAlias.2.minified.js +++ b/crates/swc/tests/tsc-references/circularImportAlias.2.minified.js @@ -1,8 +1,8 @@ //// [circularImportAlias.ts] var B, A; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(B) { var a = A; B.a = a; diff --git a/crates/swc/tests/tsc-references/circularIndexedAccessErrors.1.normal.js b/crates/swc/tests/tsc-references/circularIndexedAccessErrors.1.normal.js index b528a2665221..eb45c0055bab 100644 --- a/crates/swc/tests/tsc-references/circularIndexedAccessErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/circularIndexedAccessErrors.1.normal.js @@ -1,5 +1,5 @@ //// [circularIndexedAccessErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x2x = x2.x; var C1 = function C1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/circularIndexedAccessErrors.2.minified.js b/crates/swc/tests/tsc-references/circularIndexedAccessErrors.2.minified.js index c8853348cccb..93e2b8e536bb 100644 --- a/crates/swc/tests/tsc-references/circularIndexedAccessErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/circularIndexedAccessErrors.2.minified.js @@ -1,3 +1,3 @@ //// [circularIndexedAccessErrors.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; x2.x; diff --git a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.1.normal.js b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.1.normal.js index 8de025f47c7c..acacd089142a 100644 --- a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.1.normal.js +++ b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.1.normal.js @@ -1,5 +1,5 @@ //// [circularTypeAliasForUnionWithClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var v0; var I0 = function I0() { "use strict"; diff --git a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.2.minified.js b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.2.minified.js index 8f37dbb65284..96fa01e18585 100644 --- a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.2.minified.js +++ b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.2.minified.js @@ -1,2 +1,2 @@ //// [circularTypeAliasForUnionWithClass.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classAbstractAsIdentifier.1.normal.js b/crates/swc/tests/tsc-references/classAbstractAsIdentifier.1.normal.js index cfd5ed31f25f..57e8b5f4c7ce 100644 --- a/crates/swc/tests/tsc-references/classAbstractAsIdentifier.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractAsIdentifier.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractAsIdentifier.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var abstract = /*#__PURE__*/ function() { "use strict"; function abstract() { diff --git a/crates/swc/tests/tsc-references/classAbstractAsIdentifier.2.minified.js b/crates/swc/tests/tsc-references/classAbstractAsIdentifier.2.minified.js index cccbdad11fcc..f94d951c0c68 100644 --- a/crates/swc/tests/tsc-references/classAbstractAsIdentifier.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractAsIdentifier.2.minified.js @@ -1,5 +1,5 @@ //// [classAbstractAsIdentifier.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function abstract() { diff --git a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.1.normal.js b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.1.normal.js index bf7953d5b8d3..54ff9e676045 100644 --- a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractAssignabilityConstructorFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.2.minified.js b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.2.minified.js index 9005003f57ef..93021c564e65 100644 --- a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction.2.minified.js @@ -1,2 +1,2 @@ //// [classAbstractAssignabilityConstructorFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.1.normal.js b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.1.normal.js index 3e6f73a21f01..ad508ae29ac8 100644 --- a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractClinterfaceAssignability.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var I; var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.2.minified.js b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.2.minified.js index e34975d1a673..6061e3fbbd29 100644 --- a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability.2.minified.js @@ -1,2 +1,2 @@ //// [classAbstractClinterfaceAssignability.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.1.normal.js b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.1.normal.js index 25f5cd09384c..dc3e3fa3c15e 100644 --- a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractConstructorAssignability.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.2.minified.js b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.2.minified.js index 8ee6a6f2b172..0049907e94b7 100644 --- a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability.2.minified.js @@ -1,7 +1,7 @@ //// [classAbstractConstructorAssignability.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractExtends.1.normal.js b/crates/swc/tests/tsc-references/classAbstractExtends.1.normal.js index 7e2bb25f64b6..8fc5408a8c18 100644 --- a/crates/swc/tests/tsc-references/classAbstractExtends.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractExtends.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractExtends.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractExtends.2.minified.js b/crates/swc/tests/tsc-references/classAbstractExtends.2.minified.js index 27069682b291..f22bd31633df 100644 --- a/crates/swc/tests/tsc-references/classAbstractExtends.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractExtends.2.minified.js @@ -1,4 +1,4 @@ //// [classAbstractExtends.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classAbstractFactoryFunction.1.normal.js b/crates/swc/tests/tsc-references/classAbstractFactoryFunction.1.normal.js index 4b9896994b16..a93bf68c94a1 100644 --- a/crates/swc/tests/tsc-references/classAbstractFactoryFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractFactoryFunction.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractFactoryFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractFactoryFunction.2.minified.js b/crates/swc/tests/tsc-references/classAbstractFactoryFunction.2.minified.js index 037a6f0d281d..ba5112a36859 100644 --- a/crates/swc/tests/tsc-references/classAbstractFactoryFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractFactoryFunction.2.minified.js @@ -1,7 +1,7 @@ //// [classAbstractFactoryFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractGeneric.1.normal.js b/crates/swc/tests/tsc-references/classAbstractGeneric.1.normal.js index 83cd1a21c312..88c139439080 100644 --- a/crates/swc/tests/tsc-references/classAbstractGeneric.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractGeneric.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractGeneric.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractGeneric.2.minified.js b/crates/swc/tests/tsc-references/classAbstractGeneric.2.minified.js index 1a7f420490c1..6f8104396949 100644 --- a/crates/swc/tests/tsc-references/classAbstractGeneric.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractGeneric.2.minified.js @@ -1,4 +1,4 @@ //// [classAbstractGeneric.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classAbstractImportInstantiation.1.normal.js b/crates/swc/tests/tsc-references/classAbstractImportInstantiation.1.normal.js index 6dc2bea48eb2..ae4a34b7d14b 100644 --- a/crates/swc/tests/tsc-references/classAbstractImportInstantiation.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractImportInstantiation.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractImportInstantiation.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var A = function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractImportInstantiation.2.minified.js b/crates/swc/tests/tsc-references/classAbstractImportInstantiation.2.minified.js index 3fdf47acbc6b..9de5fc89c2d8 100644 --- a/crates/swc/tests/tsc-references/classAbstractImportInstantiation.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractImportInstantiation.2.minified.js @@ -1,6 +1,6 @@ //// [classAbstractImportInstantiation.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(M) { var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractInAModule.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInAModule.1.normal.js index 343b8ef208a1..4a90206655bc 100644 --- a/crates/swc/tests/tsc-references/classAbstractInAModule.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInAModule.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractInAModule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M; (function(M) { var A = function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractInAModule.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInAModule.2.minified.js index 5561581063e9..861ab981cedf 100644 --- a/crates/swc/tests/tsc-references/classAbstractInAModule.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInAModule.2.minified.js @@ -1,8 +1,8 @@ //// [classAbstractInAModule.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(M) { var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractInheritance.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInheritance.1.normal.js index af05987244e2..37cec6204cd7 100644 --- a/crates/swc/tests/tsc-references/classAbstractInheritance.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInheritance.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractInheritance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractInheritance.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInheritance.2.minified.js index 7aedd567b69b..64532f69bd60 100644 --- a/crates/swc/tests/tsc-references/classAbstractInheritance.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInheritance.2.minified.js @@ -1,4 +1,4 @@ //// [classAbstractInheritance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classAbstractInstantiations1.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInstantiations1.1.normal.js index 4297b8aad156..00ace31c9a47 100644 --- a/crates/swc/tests/tsc-references/classAbstractInstantiations1.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInstantiations1.1.normal.js @@ -2,9 +2,9 @@ // // Calling new with (non)abstract classes. // -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractInstantiations1.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInstantiations1.2.minified.js index 1c223ac66d4b..6321cebe0ec4 100644 --- a/crates/swc/tests/tsc-references/classAbstractInstantiations1.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInstantiations1.2.minified.js @@ -1,7 +1,7 @@ //// [classAbstractInstantiations1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractOverloads.1.normal.js b/crates/swc/tests/tsc-references/classAbstractOverloads.1.normal.js index 562b2af1a1b5..9d19e027aed0 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractOverloads.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractOverloads.2.minified.js b/crates/swc/tests/tsc-references/classAbstractOverloads.2.minified.js index cc7b608ed32b..9454a8334641 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractOverloads.2.minified.js @@ -1,2 +1,2 @@ //// [classAbstractOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.1.normal.js b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.1.normal.js index 3823a0a1c506..00fcac7aa31c 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractOverrideWithAbstract.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.2.minified.js b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.2.minified.js index 1158cd393824..c1f19a5c7a10 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract.2.minified.js @@ -1,4 +1,4 @@ //// [classAbstractOverrideWithAbstract.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.1.normal.js b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.1.normal.js index 964acd6e36f2..80ee4f213c85 100644 --- a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.1.normal.js @@ -1,5 +1,5 @@ //// [classAbstractSingleLineDecl.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.2.minified.js b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.2.minified.js index 6f244f51e195..a314bcc1bb7d 100644 --- a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl.2.minified.js @@ -1,5 +1,5 @@ //// [classAbstractSingleLineDecl.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; abstract, abstract, new function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractSuperCalls.1.normal.js b/crates/swc/tests/tsc-references/classAbstractSuperCalls.1.normal.js index cb26c49b6eca..7ac4fe94893e 100644 --- a/crates/swc/tests/tsc-references/classAbstractSuperCalls.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractSuperCalls.1.normal.js @@ -1,9 +1,9 @@ //// [classAbstractSuperCalls.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractSuperCalls.2.minified.js b/crates/swc/tests/tsc-references/classAbstractSuperCalls.2.minified.js index 4a9f8d8725f1..f3a1f3e7d555 100644 --- a/crates/swc/tests/tsc-references/classAbstractSuperCalls.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractSuperCalls.2.minified.js @@ -1,6 +1,6 @@ //// [classAbstractSuperCalls.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.1.normal.js b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.1.normal.js index b835dd0151f5..d8da6393c181 100644 --- a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.1.normal.js @@ -1,7 +1,7 @@ //// [classAbstractUsingAbstractMethod1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.2.minified.js b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.2.minified.js index f58e7b9a355a..00cdb7e1a2a3 100644 --- a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1.2.minified.js @@ -1,7 +1,7 @@ //// [classAbstractUsingAbstractMethod1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.1.normal.js b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.1.normal.js index ea1e0d2b849c..0f6702247b34 100644 --- a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.1.normal.js @@ -1,5 +1,5 @@ //// [classAndInterfaceWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.2.minified.js b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.2.minified.js index 8f247d1841c4..dc4f705dbd39 100644 --- a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName.2.minified.js @@ -1,4 +1,4 @@ //// [classAndInterfaceWithSameName.ts] var M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.1.normal.js b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.1.normal.js index 64334d631cc1..6967801176ea 100644 --- a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.1.normal.js +++ b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.1.normal.js @@ -1,5 +1,5 @@ //// [classAppearsToHaveMembersOfObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.2.minified.js b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.2.minified.js index 8ea5a6c3c961..dbd28e61e81b 100644 --- a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.2.minified.js +++ b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.2.minified.js @@ -1,4 +1,4 @@ //// [classAppearsToHaveMembersOfObject.ts] var c; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.toString(), c.hasOwnProperty(""); diff --git a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.1.normal.js b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.1.normal.js index 1a5eddd84dd0..14cfe852d8ec 100644 --- a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.1.normal.js @@ -2,11 +2,11 @@ /** * @constructor * @param {number} numberOxen - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Wagon(numberOxen) { this.numberOxen = numberOxen; } @@ -65,9 +65,9 @@ var Drakkhen = /*#__PURE__*/ function(Dragon1) { //// [second.ts] /** * @constructor - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Dragon(numberEaten) { this.numberEaten = numberEaten; } @@ -107,9 +107,9 @@ c.numberOxen; /** * @template T * @param {T} flavour - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Soup(flavour) { this.flavour = flavour; } diff --git a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.2.minified.js b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.2.minified.js index 652b386e29e6..e2bb0ae97083 100644 --- a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction.2.minified.js @@ -1,9 +1,9 @@ //// [first.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Wagon(numberOxen) { this.numberOxen = numberOxen; } @@ -29,9 +29,9 @@ var db = new (function(Wagon) { }(Wagon))(); db.numberOxen = db.foonly, Dragon; //// [second.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var c = new (function(Wagon1) { "use strict"; _inherits(Conestoga, Wagon1); @@ -46,9 +46,9 @@ var c = new (function(Wagon1) { }(Wagon))(!0); c.drunkOO, c.numberOxen; //// [generic.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Soup(flavour) { this.flavour = flavour; } diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility.1.normal.js index f56f84839477..37db9ad3251d 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility.1.normal.js @@ -1,5 +1,5 @@ //// [classConstructorAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility.2.minified.js index 4915a5424b92..0dd41e373c02 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility.2.minified.js @@ -1,6 +1,6 @@ //// [classConstructorAccessibility.ts] var Generic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility2.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility2.1.normal.js index 11102d737915..a0d771b7ee8f 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility2.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility2.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorAccessibility2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var BaseA = /*#__PURE__*/ function() { "use strict"; function BaseA(x) { diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility2.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility2.2.minified.js index fbb719c5a362..a0b11f635336 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility2.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility2.2.minified.js @@ -1,7 +1,7 @@ //// [classConstructorAccessibility2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var BaseA = function() { "use strict"; function BaseA(x) { diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility3.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility3.1.normal.js index 1f327a43864e..6d9aeb7b671f 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility3.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility3.1.normal.js @@ -1,5 +1,5 @@ //// [classConstructorAccessibility3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo(x) { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility3.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility3.2.minified.js index c1ddb1116927..fc365642a364 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility3.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility3.2.minified.js @@ -1,2 +1,2 @@ //// [classConstructorAccessibility3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility4.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility4.1.normal.js index 8b7b61c74176..0ba92782a21a 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility4.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility4.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorAccessibility4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility4.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility4.2.minified.js index 09852405209e..4030386f9ba3 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility4.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility4.2.minified.js @@ -1,4 +1,4 @@ //// [classConstructorAccessibility4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility5.1.normal.js index f1ca99462f62..898a0d21228a 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility5.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorAccessibility5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility5.2.minified.js index f6671cd8b815..71c04359d73d 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility5.2.minified.js @@ -1,4 +1,4 @@ //// [classConstructorAccessibility5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.1.normal.js b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.1.normal.js index ff7f8310032d..5624f2a6a448 100644 --- a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.1.normal.js @@ -1,5 +1,5 @@ //// [classConstructorOverloadsAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.2.minified.js b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.2.minified.js index ea2433d858e5..fec212ea34b0 100644 --- a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.2.minified.js @@ -1,2 +1,2 @@ //// [classConstructorOverloadsAccessibility.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.1.normal.js index 02eeaa8917dd..a98ad4e9f8d9 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorParametersAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = function C1(x) { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.2.minified.js index 0e2c0a62bd01..15652b247e9f 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility.2.minified.js @@ -1,6 +1,6 @@ //// [classConstructorParametersAccessibility.ts] var c1, c2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; c1.x, c2.p, (void 0).p; diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.1.normal.js index 80ed2d563d1e..d4cbfc9cb7fd 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorParametersAccessibility2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = function C1(x) { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.2.minified.js index 7a42da7d114f..ffc1bf8e527a 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2.2.minified.js @@ -1,6 +1,6 @@ //// [classConstructorParametersAccessibility2.ts] var c1, c2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; c1.x, c2.p, (void 0).p; diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.1.normal.js index 2c874cc5f55e..8aef88b6303d 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.1.normal.js @@ -1,7 +1,7 @@ //// [classConstructorParametersAccessibility3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(p) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.2.minified.js index 4721820492f6..7914b3d24b04 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3.2.minified.js @@ -1,5 +1,5 @@ //// [classConstructorParametersAccessibility3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (void 0).p; diff --git a/crates/swc/tests/tsc-references/classDeclarationLoop.1.normal.js b/crates/swc/tests/tsc-references/classDeclarationLoop.1.normal.js index b80e4b21d11f..9a26bf97191f 100644 --- a/crates/swc/tests/tsc-references/classDeclarationLoop.1.normal.js +++ b/crates/swc/tests/tsc-references/classDeclarationLoop.1.normal.js @@ -1,5 +1,5 @@ //// [classDeclarationLoop.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _loop = function(i) { var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classDeclarationLoop.2.minified.js b/crates/swc/tests/tsc-references/classDeclarationLoop.2.minified.js index 28f5173388ba..6604c6dd3e53 100644 --- a/crates/swc/tests/tsc-references/classDeclarationLoop.2.minified.js +++ b/crates/swc/tests/tsc-references/classDeclarationLoop.2.minified.js @@ -1,5 +1,5 @@ //// [classDeclarationLoop.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; for(var _loop = function(i) { arr.push(function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.1.normal.js b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.1.normal.js index 3821238e824f..26779a767499 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.1.normal.js @@ -1,7 +1,7 @@ //// [classDoesNotDependOnBaseTypes.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var StringTreeCollectionBase = function StringTreeCollectionBase() { "use strict"; _class_call_check(this, StringTreeCollectionBase); diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.2.minified.js b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.2.minified.js index 754b4f8ee854..296522004230 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes.2.minified.js @@ -1,7 +1,7 @@ //// [classDoesNotDependOnBaseTypes.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x, StringTreeCollection = function(StringTreeCollectionBase) { "use strict"; _inherits(StringTreeCollection, StringTreeCollectionBase); diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.1.normal.js b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.1.normal.js index a3ac09c886bf..bdc1363d49ba 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.1.normal.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.1.normal.js @@ -1,5 +1,5 @@ //// [classDoesNotDependOnPrivateMember.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var C = function C() { diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.2.minified.js b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.2.minified.js index 88a0a98b452b..26a264ac7b2d 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.2.minified.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember.2.minified.js @@ -1,6 +1,6 @@ //// [classDoesNotDependOnPrivateMember.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExpression.1.normal.js b/crates/swc/tests/tsc-references/classExpression.1.normal.js index 9e4125157328..482caa24841f 100644 --- a/crates/swc/tests/tsc-references/classExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression.1.normal.js @@ -1,5 +1,5 @@ //// [classExpression.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExpression.2.minified.js b/crates/swc/tests/tsc-references/classExpression.2.minified.js index 56c6ef6a3af8..6e9cfdcbcc09 100644 --- a/crates/swc/tests/tsc-references/classExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression.2.minified.js @@ -1,4 +1,4 @@ //// [classExpression.ts] var M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/classExpression1.1.normal.js b/crates/swc/tests/tsc-references/classExpression1.1.normal.js index 22b7bb25f4b7..4aeafa31b85b 100644 --- a/crates/swc/tests/tsc-references/classExpression1.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression1.1.normal.js @@ -1,5 +1,5 @@ //// [classExpression1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var v = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExpression1.2.minified.js b/crates/swc/tests/tsc-references/classExpression1.2.minified.js index 9428a999f566..f6f4508d5170 100644 --- a/crates/swc/tests/tsc-references/classExpression1.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression1.2.minified.js @@ -1,2 +1,2 @@ //// [classExpression1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classExpression2.1.normal.js b/crates/swc/tests/tsc-references/classExpression2.1.normal.js index a23ea9e6d653..e87b9d62deb5 100644 --- a/crates/swc/tests/tsc-references/classExpression2.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression2.1.normal.js @@ -1,7 +1,7 @@ //// [classExpression2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var D = function D() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/classExpression2.2.minified.js b/crates/swc/tests/tsc-references/classExpression2.2.minified.js index 888d06b6e7e1..584d3b09acf3 100644 --- a/crates/swc/tests/tsc-references/classExpression2.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression2.2.minified.js @@ -1,4 +1,4 @@ //// [classExpression2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classExpression3.1.normal.js b/crates/swc/tests/tsc-references/classExpression3.1.normal.js index 913d88b47b50..e3dabe341a0e 100644 --- a/crates/swc/tests/tsc-references/classExpression3.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression3.1.normal.js @@ -1,7 +1,7 @@ //// [classExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(C, _superClass); diff --git a/crates/swc/tests/tsc-references/classExpression3.2.minified.js b/crates/swc/tests/tsc-references/classExpression3.2.minified.js index 9ddf76d729eb..73053d426930 100644 --- a/crates/swc/tests/tsc-references/classExpression3.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression3.2.minified.js @@ -1,7 +1,7 @@ //// [classExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var c = new (function(_superClass) { "use strict"; _inherits(C, _superClass); diff --git a/crates/swc/tests/tsc-references/classExpression4.1.normal.js b/crates/swc/tests/tsc-references/classExpression4.1.normal.js index e4a08a7ebf6b..0d7b703aa0ac 100644 --- a/crates/swc/tests/tsc-references/classExpression4.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression4.1.normal.js @@ -1,5 +1,5 @@ //// [classExpression4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/classExpression4.2.minified.js b/crates/swc/tests/tsc-references/classExpression4.2.minified.js index 0678021abce3..3cf8c882e9dc 100644 --- a/crates/swc/tests/tsc-references/classExpression4.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression4.2.minified.js @@ -1,5 +1,5 @@ //// [classExpression4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/classExpression5.1.normal.js b/crates/swc/tests/tsc-references/classExpression5.1.normal.js index 471cb1761a3a..da507f1faed5 100644 --- a/crates/swc/tests/tsc-references/classExpression5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression5.1.normal.js @@ -1,5 +1,5 @@ //// [classExpression5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new /*#__PURE__*/ (function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpression5.2.minified.js b/crates/swc/tests/tsc-references/classExpression5.2.minified.js index a384839cd44c..78501711297f 100644 --- a/crates/swc/tests/tsc-references/classExpression5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression5.2.minified.js @@ -1,5 +1,5 @@ //// [classExpression5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpressionLoop.1.normal.js b/crates/swc/tests/tsc-references/classExpressionLoop.1.normal.js index 633e470e26da..b0d9463e6c2e 100644 --- a/crates/swc/tests/tsc-references/classExpressionLoop.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpressionLoop.1.normal.js @@ -1,5 +1,5 @@ //// [classExpressionLoop.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _loop = function(i) { arr.push(function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpressionLoop.2.minified.js b/crates/swc/tests/tsc-references/classExpressionLoop.2.minified.js index 5f616b8736a5..7d10575b2ed5 100644 --- a/crates/swc/tests/tsc-references/classExpressionLoop.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpressionLoop.2.minified.js @@ -1,5 +1,5 @@ //// [classExpressionLoop.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; for(var _loop = function(i) { arr.push(function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExtendingBuiltinType.1.normal.js b/crates/swc/tests/tsc-references/classExtendingBuiltinType.1.normal.js index 26a4566aded8..f57e11bce7e8 100644 --- a/crates/swc/tests/tsc-references/classExtendingBuiltinType.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingBuiltinType.1.normal.js @@ -1,8 +1,8 @@ //// [classExtendingBuiltinType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = /*#__PURE__*/ function(Object1) { "use strict"; _inherits(C1, Object1); diff --git a/crates/swc/tests/tsc-references/classExtendingBuiltinType.2.minified.js b/crates/swc/tests/tsc-references/classExtendingBuiltinType.2.minified.js index d61cf143245e..6c4f44235893 100644 --- a/crates/swc/tests/tsc-references/classExtendingBuiltinType.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingBuiltinType.2.minified.js @@ -1,6 +1,6 @@ //// [classExtendingBuiltinType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; _wrap_native_super(Object), _wrap_native_super(Function), _wrap_native_super(String), _wrap_native_super(Boolean), _wrap_native_super(Number), _wrap_native_super(Date), _wrap_native_super(RegExp), _wrap_native_super(Error), _wrap_native_super(Array), _wrap_native_super(Array); diff --git a/crates/swc/tests/tsc-references/classExtendingClass.1.normal.js b/crates/swc/tests/tsc-references/classExtendingClass.1.normal.js index 285845c670b1..3273154f036f 100644 --- a/crates/swc/tests/tsc-references/classExtendingClass.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingClass.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendingClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classExtendingClass.2.minified.js b/crates/swc/tests/tsc-references/classExtendingClass.2.minified.js index 84979a3c9869..56de8a3b29d6 100644 --- a/crates/swc/tests/tsc-references/classExtendingClass.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingClass.2.minified.js @@ -1,7 +1,7 @@ //// [classExtendingClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var d, d2, D = function(C) { "use strict"; _inherits(D, C); diff --git a/crates/swc/tests/tsc-references/classExtendingClassLikeType.1.normal.js b/crates/swc/tests/tsc-references/classExtendingClassLikeType.1.normal.js index 77f3eba7a3ec..d55e9c238512 100644 --- a/crates/swc/tests/tsc-references/classExtendingClassLikeType.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingClassLikeType.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendingClassLikeType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; // Error, no Base constructor function var D0 = /*#__PURE__*/ function(Base1) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExtendingClassLikeType.2.minified.js b/crates/swc/tests/tsc-references/classExtendingClassLikeType.2.minified.js index 552e889c272e..693bc4f9405d 100644 --- a/crates/swc/tests/tsc-references/classExtendingClassLikeType.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingClassLikeType.2.minified.js @@ -1,5 +1,5 @@ //// [classExtendingClassLikeType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Base, getBase(), getBase(), getBase(), getBase(), getBadBase(); diff --git a/crates/swc/tests/tsc-references/classExtendingNonConstructor.1.normal.js b/crates/swc/tests/tsc-references/classExtendingNonConstructor.1.normal.js index 904c6e5e1abe..513421a46c9d 100644 --- a/crates/swc/tests/tsc-references/classExtendingNonConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingNonConstructor.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendingNonConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; function foo() { this.x = 1; diff --git a/crates/swc/tests/tsc-references/classExtendingNonConstructor.2.minified.js b/crates/swc/tests/tsc-references/classExtendingNonConstructor.2.minified.js index e15262d25159..b55c42dc8ecb 100644 --- a/crates/swc/tests/tsc-references/classExtendingNonConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingNonConstructor.2.minified.js @@ -1,4 +1,4 @@ //// [classExtendingNonConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classExtendingNull.1.normal.js b/crates/swc/tests/tsc-references/classExtendingNull.1.normal.js index cae63b225517..9586a0010534 100644 --- a/crates/swc/tests/tsc-references/classExtendingNull.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingNull.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendingNull.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/classExtendingNull.2.minified.js b/crates/swc/tests/tsc-references/classExtendingNull.2.minified.js index 424f92c63c24..2a5edf65560c 100644 --- a/crates/swc/tests/tsc-references/classExtendingNull.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingNull.2.minified.js @@ -1,4 +1,4 @@ //// [classExtendingNull.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classExtendsItself.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItself.1.normal.js index a41613ade2c3..171fd7027f4d 100644 --- a/crates/swc/tests/tsc-references/classExtendsItself.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItself.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsItself.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _$C = /*#__PURE__*/ function(C) { "use strict"; _inherits(C1, C); diff --git a/crates/swc/tests/tsc-references/classExtendsItself.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItself.2.minified.js index b5709b956a04..effa50b17dd5 100644 --- a/crates/swc/tests/tsc-references/classExtendsItself.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItself.2.minified.js @@ -1,5 +1,5 @@ //// [classExtendsItself.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; C1, D1, E1; diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.1.normal.js index bacf0ec4605a..3d1c02c79148 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsItselfIndirectly.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(E) { "use strict"; _inherits(C, E); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.2.minified.js index 693795eb2d6d..9afb41faa67e 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly.2.minified.js @@ -1,4 +1,4 @@ //// [classExtendsItselfIndirectly.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.1.normal.js index b96f60e4657b..8943d322eaae 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsItselfIndirectly2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(_N_E) { "use strict"; _inherits(C, _N_E); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.2.minified.js index d67d63ab8b3a..f0bbae191dee 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2.2.minified.js @@ -1,7 +1,7 @@ //// [classExtendsItselfIndirectly2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M, N, O, C = function(_N_E) { "use strict"; _inherits(C, _N_E); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.1.normal.js index a60b8a794749..b868c7735076 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsItselfIndirectly_file1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(E1) { "use strict"; _inherits(C, E1); @@ -14,9 +14,9 @@ var C = /*#__PURE__*/ function(E1) { } // error (E); //// [classExtendsItselfIndirectly_file2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var D = /*#__PURE__*/ function(C1) { "use strict"; _inherits(D, C1); @@ -28,9 +28,9 @@ var D = /*#__PURE__*/ function(C1) { return D; }(C); //// [classExtendsItselfIndirectly_file3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var E = /*#__PURE__*/ function(D1) { "use strict"; _inherits(E, D1); @@ -42,9 +42,9 @@ var E = /*#__PURE__*/ function(D1) { return E; }(D); //// [classExtendsItselfIndirectly_file4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C2 = /*#__PURE__*/ function(E21) { "use strict"; _inherits(C2, E21); @@ -57,9 +57,9 @@ var C2 = /*#__PURE__*/ function(E21) { } // error (E2); //// [classExtendsItselfIndirectly_file5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var D2 = /*#__PURE__*/ function(C21) { "use strict"; _inherits(D2, C21); @@ -71,9 +71,9 @@ var D2 = /*#__PURE__*/ function(C21) { return D2; }(C2); //// [classExtendsItselfIndirectly_file6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var E2 = /*#__PURE__*/ function(D21) { "use strict"; _inherits(E2, D21); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.2.minified.js index 23fc1d43adae..59be4f6c74bb 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3.2.minified.js @@ -1,30 +1,30 @@ //// [classExtendsItselfIndirectly_file1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; E; //// [classExtendsItselfIndirectly_file2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; C; //// [classExtendsItselfIndirectly_file3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; D; //// [classExtendsItselfIndirectly_file4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; E2; //// [classExtendsItselfIndirectly_file5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; C2; //// [classExtendsItselfIndirectly_file6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; D2; diff --git a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.1.normal.js b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.1.normal.js index b9275fa52c18..523051168fb5 100644 --- a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsShadowedConstructorFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.2.minified.js b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.2.minified.js index 572682cb921e..4a58207d8123 100644 --- a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction.2.minified.js @@ -1,6 +1,6 @@ //// [classExtendsShadowedConstructorFunction.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.1.normal.js b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.1.normal.js index e296cf48e087..e39c73a78f4c 100644 --- a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.1.normal.js @@ -1,7 +1,7 @@ //// [classExtendsValidConstructorFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function foo() {} var x = new foo(); // can be used as a constructor function var C = /*#__PURE__*/ function(foo) { diff --git a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.2.minified.js b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.2.minified.js index 3655964a1fb3..43f28b1e9ac9 100644 --- a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction.2.minified.js @@ -1,4 +1,4 @@ //// [classExtendsValidConstructorFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.1.normal.js b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.1.normal.js index 7f052c6416cc..702f171c3df4 100644 --- a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.1.normal.js @@ -1,5 +1,5 @@ //// [classImplementsMergedClassInterface.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C2 = function C2() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.2.minified.js b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.2.minified.js index 6efaa1d2f603..454f1a575982 100644 --- a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface.2.minified.js @@ -1,2 +1,2 @@ //// [classImplementsMergedClassInterface.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classInsideBlock.1.normal.js b/crates/swc/tests/tsc-references/classInsideBlock.1.normal.js index 72a07006a7d2..00ac1247ed80 100644 --- a/crates/swc/tests/tsc-references/classInsideBlock.1.normal.js +++ b/crates/swc/tests/tsc-references/classInsideBlock.1.normal.js @@ -1,5 +1,5 @@ //// [classInsideBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classInsideBlock.2.minified.js b/crates/swc/tests/tsc-references/classInsideBlock.2.minified.js index ae5461c9a563..cdc3b071e441 100644 --- a/crates/swc/tests/tsc-references/classInsideBlock.2.minified.js +++ b/crates/swc/tests/tsc-references/classInsideBlock.2.minified.js @@ -1,2 +1,2 @@ //// [classInsideBlock.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.1.normal.js b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.1.normal.js index e2d9075cdf6c..9ec42123faad 100644 --- a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.1.normal.js +++ b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.1.normal.js @@ -1,7 +1,7 @@ //// [classIsSubtypeOfBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.2.minified.js b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.2.minified.js index d758e2ca4a7e..74a7bf89a73e 100644 --- a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.2.minified.js +++ b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType.2.minified.js @@ -1,4 +1,4 @@ //// [classIsSubtypeOfBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/classPropertyAsPrivate.1.normal.js b/crates/swc/tests/tsc-references/classPropertyAsPrivate.1.normal.js index 8269701c0256..b76bb26f37b0 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsPrivate.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyAsPrivate.1.normal.js @@ -1,6 +1,6 @@ //// [classPropertyAsPrivate.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsPrivate.2.minified.js b/crates/swc/tests/tsc-references/classPropertyAsPrivate.2.minified.js index 244701832221..dfae1aa6530a 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsPrivate.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyAsPrivate.2.minified.js @@ -1,6 +1,6 @@ //// [classPropertyAsPrivate.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsProtected.1.normal.js b/crates/swc/tests/tsc-references/classPropertyAsProtected.1.normal.js index 7daa28dc8496..edc24e4988c8 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsProtected.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyAsProtected.1.normal.js @@ -1,6 +1,6 @@ //// [classPropertyAsProtected.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsProtected.2.minified.js b/crates/swc/tests/tsc-references/classPropertyAsProtected.2.minified.js index 001d72e1e6a3..d53e19198ca2 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsProtected.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyAsProtected.2.minified.js @@ -1,6 +1,6 @@ //// [classPropertyAsProtected.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.1.normal.js b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.1.normal.js index 87f612c63504..9c8f98e5ddaf 100644 --- a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.1.normal.js @@ -1,6 +1,6 @@ //// [classPropertyIsPublicByDefault.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.2.minified.js b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.2.minified.js index ad10c28a9c98..9fab79bee7f4 100644 --- a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault.2.minified.js @@ -1,6 +1,6 @@ //// [classPropertyIsPublicByDefault.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).1.normal.js index 2b619fc3a19d..4d2afd03dff5 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a = 2; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).2.minified.js index 3f11ac3e6a76..3f0542a022ac 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock1(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [classStaticBlock1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).1.normal.js index 0b1069fe530a..036b1b89ac25 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock10.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a1 = 1; var a2 = 1; var b1 = 2; diff --git a/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).2.minified.js index b44bc4dc62ba..28ebdf78ef8c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock10(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [classStaticBlock10.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).1.normal.js index b79b3ca96a71..0f36782fe385 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [classStaticBlock11.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; let getX; var _x = /*#__PURE__*/ new WeakMap(); class C { diff --git a/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).2.minified.js index 5e19a9e2b13a..879c4295abb6 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).2.minified.js @@ -1,4 +1,4 @@ //// [classStaticBlock11.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock12.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock12.1.normal.js index 561f52a1f824..1459ca50ea68 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12.1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock12.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class C { } var _x = { diff --git a/crates/swc/tests/tsc-references/classStaticBlock12.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock12.2.minified.js index c519c08cf54d..b45856c41aa4 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12.2.minified.js @@ -1,5 +1,5 @@ //// [classStaticBlock12.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class C { } _class_static_private_field_spec_get(C, C, { diff --git a/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).1.normal.js index 6bb31f604c46..6e43e13afaf7 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock13.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class C { foo() { return _class_static_private_field_spec_get(C, C, _x); diff --git a/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).2.minified.js index 305e4b52efd4..4249d4f554a9 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13(target=es2015).2.minified.js @@ -1,5 +1,5 @@ //// [classStaticBlock13.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class C { foo() { return _class_static_private_field_spec_get(C, C, _x); diff --git a/crates/swc/tests/tsc-references/classStaticBlock17.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock17.1.normal.js index b0dc44a59fc8..c4c4c231a7dd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17.1.normal.js @@ -1,7 +1,7 @@ //// [classStaticBlock17.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; let friendA; var _x = /*#__PURE__*/ new WeakMap(); class A { diff --git a/crates/swc/tests/tsc-references/classStaticBlock17.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock17.2.minified.js index 0936671b03f9..97c89b003c6a 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17.2.minified.js @@ -1,8 +1,8 @@ //// [classStaticBlock17.ts] let friendA; -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _x = new WeakMap(); friendA = { getX: (obj)=>_class_private_field_get(obj, _x), diff --git a/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).1.normal.js index a7403c7fc72e..881233f5356c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock18.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { var _class; return _class = function _class() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).2.minified.js index ad1a0c4c2fff..79af056a17b3 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock18(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [classStaticBlock18.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).1.normal.js index 253f77aa2131..59813ca8ca43 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a = 1; var b = 2; var C = function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).2.minified.js index cf7e73077293..8b80d597c1f3 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock2(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [classStaticBlock2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock21.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock21.1.normal.js index a431debd5f55..75a6e524f09e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock21.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock21.1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock21.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock21.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock21.2.minified.js index e775c6ce82c2..28f013b511dd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock21.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock21.2.minified.js @@ -1,2 +1,2 @@ //// [classStaticBlock21.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).1.normal.js index b213ce764ece..67f62daa3d3b 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).1.normal.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -14,10 +14,9 @@ define([ return C; } }); - _class_call_check = _class_call_check.default; var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; (function() { C.x = 1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).2.minified.js index 7bddb06d0376..707f2e3da7fc 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=amd).2.minified.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -12,10 +12,10 @@ define([ get: function() { return C; } - }), _class_call_check = _class_call_check.default; + }); var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; C.x = 1; }); diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).1.normal.js index ba675b1660a5..bb578a6c7e96 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).1.normal.js @@ -9,10 +9,10 @@ Object.defineProperty(exports, "C", { return C; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; (function() { C.x = 1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).2.minified.js index e7454b33f2ae..55ac695b88e1 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=commonjs).2.minified.js @@ -8,8 +8,8 @@ Object.defineProperty(exports, "__esModule", { return C; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, C = function C() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; C.x = 1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).1.normal.js index 3d226ee93fe7..dd45050ce4af 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock24.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).2.minified.js index a4c09d5d9a90..56c6c0241ddf 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=es6).2.minified.js @@ -1,5 +1,5 @@ //// [classStaticBlock24.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=system).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=system).1.normal.js index 596382a0e2cc..b32a7521651c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=system).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=system).1.normal.js @@ -1,13 +1,13 @@ //// [classStaticBlock24.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check, C; return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=system).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=system).2.minified.js index 30d57842c576..c2e93be5a188 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=system).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=system).2.minified.js @@ -1,13 +1,13 @@ //// [classStaticBlock24.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check, C; return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).1.normal.js index c743fc206699..e0a6c312f60c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).1.normal.js @@ -1,11 +1,11 @@ //// [classStaticBlock24.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_class_call_check.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_class_call_check")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.classStaticBlock24Ts = {}, global.classCallCheckMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.classStaticBlock24Ts = {}, global.classCallCheck); })(this, function(exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -17,10 +17,9 @@ return C; } }); - _class_call_check = _class_call_check.default; var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; (function() { C.x = 1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).2.minified.js index c63f53886062..bbf9d644004d 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24(module=umd).2.minified.js @@ -1,9 +1,9 @@ //// [classStaticBlock24.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_class_call_check.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_class_call_check")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_class_call_check.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.classStaticBlock24Ts = {}, global.classCallCheckMjs); + "@swc/helpers/_/_class_call_check" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.classStaticBlock24Ts = {}, global.classCallCheck); }(this, function(exports1, _class_call_check) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -13,10 +13,10 @@ get: function() { return C; } - }), _class_call_check = _class_call_check.default; + }); var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; C.x = 1; }); diff --git a/crates/swc/tests/tsc-references/classStaticBlock27.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock27.1.normal.js index d56ddd13ee54..f8ddd6124ece 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock27.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock27.1.normal.js @@ -1,6 +1,6 @@ //// [classStaticBlock27.ts] // https://github.com/microsoft/TypeScript/issues/44872 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _Foo; void (_Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock27.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock27.2.minified.js index f93dd5a38e48..56af5453be4a 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock27.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock27.2.minified.js @@ -1,6 +1,6 @@ //// [classStaticBlock27.ts] var _Foo; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (_Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/classStaticBlock28.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock28.1.normal.js index e65f6a2265a0..b0f1f7a3e128 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock28.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock28.1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock28.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var foo; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock28.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock28.2.minified.js index 5f1091fd921f..9de8ce705aaa 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock28.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock28.2.minified.js @@ -1,3 +1,3 @@ //// [classStaticBlock28.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; console.log(1); diff --git a/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).1.normal.js index fa02420a33c2..f8d77e550870 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [classStaticBlock5.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class B { } (()=>{ diff --git a/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).2.minified.js index 151a009e9df7..ce0a4af09b6e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5(target=es2015).2.minified.js @@ -1,6 +1,6 @@ //// [classStaticBlock5.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class B { } B.a = 1, B.b = 2; diff --git a/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).1.normal.js index f7487fe3a561..afcd8f0f2697 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).1.normal.js @@ -1,9 +1,9 @@ //// [classStaticBlock5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).2.minified.js index 7aafecd841d2..bfc136323701 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5(target=es5).2.minified.js @@ -1,9 +1,9 @@ //// [classStaticBlock5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).1.normal.js index 7930809388f9..cf3cd4c15795 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlock9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).2.minified.js index f9eb76eaa70b..fdfd65ceef26 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock9(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [classStaticBlock9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.1.normal.js index bea8fc57cb54..5244198097c3 100644 --- a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.1.normal.js @@ -1,5 +1,5 @@ //// [classStaticBlockUseBeforeDef3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.2.minified.js index 22713ddc960d..8d70e43c47c5 100644 --- a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef3.2.minified.js @@ -1,5 +1,5 @@ //// [classStaticBlockUseBeforeDef3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.1.normal.js b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.1.normal.js index 47f4bae35290..28a7514cc101 100644 --- a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.1.normal.js @@ -1,7 +1,7 @@ //// [classWithBaseClassButNoConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.2.minified.js b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.2.minified.js index fd2bd950f3d9..18918525bbad 100644 --- a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor.2.minified.js @@ -1,7 +1,7 @@ //// [classWithBaseClassButNoConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(Base) { "use strict"; _inherits(C, Base); diff --git a/crates/swc/tests/tsc-references/classWithConstructors.1.normal.js b/crates/swc/tests/tsc-references/classWithConstructors.1.normal.js index e29fdea718b5..72d8064018a9 100644 --- a/crates/swc/tests/tsc-references/classWithConstructors.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithConstructors.1.normal.js @@ -1,7 +1,7 @@ //// [classWithConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var NonGeneric; (function(NonGeneric) { var C = function C(x) { diff --git a/crates/swc/tests/tsc-references/classWithConstructors.2.minified.js b/crates/swc/tests/tsc-references/classWithConstructors.2.minified.js index 5c420a552890..433ac2ae6d27 100644 --- a/crates/swc/tests/tsc-references/classWithConstructors.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithConstructors.2.minified.js @@ -1,8 +1,8 @@ //// [classWithConstructors.ts] var NonGeneric, Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(NonGeneric) { var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithEmptyBody.1.normal.js b/crates/swc/tests/tsc-references/classWithEmptyBody.1.normal.js index 335e27123a98..bbc178ccd7c3 100644 --- a/crates/swc/tests/tsc-references/classWithEmptyBody.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithEmptyBody.1.normal.js @@ -1,5 +1,5 @@ //// [classWithEmptyBody.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithEmptyBody.2.minified.js b/crates/swc/tests/tsc-references/classWithEmptyBody.2.minified.js index d4e317adf55e..46f90c0b69fa 100644 --- a/crates/swc/tests/tsc-references/classWithEmptyBody.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithEmptyBody.2.minified.js @@ -1,2 +1,2 @@ //// [classWithEmptyBody.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.1.normal.js b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.1.normal.js index 9395422aafcf..7f6c1f11138c 100644 --- a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.1.normal.js @@ -1,5 +1,5 @@ //// [classWithNoConstructorOrBaseClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.2.minified.js b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.2.minified.js index 0b3f8cadcdc6..be112bb6326c 100644 --- a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass.2.minified.js @@ -1,5 +1,5 @@ //// [classWithNoConstructorOrBaseClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.1.normal.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.1.normal.js index 0b59317e5085..9109e476d6eb 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.1.normal.js @@ -1,7 +1,7 @@ //// [classWithOnlyPublicMembersEquivalentToInterface.ts] // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.2.minified.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.2.minified.js index 712bf13842ca..e0f71b9b7916 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface.2.minified.js @@ -1,3 +1,3 @@ //// [classWithOnlyPublicMembersEquivalentToInterface.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.1.normal.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.1.normal.js index ff7a196be9cc..a5c7ad3da958 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.1.normal.js @@ -1,7 +1,7 @@ //// [classWithOnlyPublicMembersEquivalentToInterface2.ts] // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.2.minified.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.2.minified.js index 5b01347763c3..7e7eba71c287 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2.2.minified.js @@ -1,3 +1,3 @@ //// [classWithOnlyPublicMembersEquivalentToInterface2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/classWithOptionalParameter.1.normal.js b/crates/swc/tests/tsc-references/classWithOptionalParameter.1.normal.js index 037a8a944cbd..66f559d08d70 100644 --- a/crates/swc/tests/tsc-references/classWithOptionalParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOptionalParameter.1.normal.js @@ -1,6 +1,6 @@ //// [classWithOptionalParameter.ts] // classes do not permit optional parameters, these are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithOptionalParameter.2.minified.js b/crates/swc/tests/tsc-references/classWithOptionalParameter.2.minified.js index 73ef195edc89..d01e41442b56 100644 --- a/crates/swc/tests/tsc-references/classWithOptionalParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOptionalParameter.2.minified.js @@ -1,2 +1,2 @@ //// [classWithOptionalParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classWithPrivateProperty.1.normal.js b/crates/swc/tests/tsc-references/classWithPrivateProperty.1.normal.js index 61814075ee84..2cb4e997b8e0 100644 --- a/crates/swc/tests/tsc-references/classWithPrivateProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithPrivateProperty.1.normal.js @@ -1,6 +1,6 @@ //// [classWithPrivateProperty.ts] // accessing any private outside the class is an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPrivateProperty.2.minified.js b/crates/swc/tests/tsc-references/classWithPrivateProperty.2.minified.js index 57c332d215af..a3a768a05f80 100644 --- a/crates/swc/tests/tsc-references/classWithPrivateProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithPrivateProperty.2.minified.js @@ -1,5 +1,5 @@ //// [classWithPrivateProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithProtectedProperty.1.normal.js b/crates/swc/tests/tsc-references/classWithProtectedProperty.1.normal.js index 96e42c1ddfb8..4fd2fe4f8f1b 100644 --- a/crates/swc/tests/tsc-references/classWithProtectedProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithProtectedProperty.1.normal.js @@ -1,8 +1,8 @@ //// [classWithProtectedProperty.ts] // accessing any protected outside the class is an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithProtectedProperty.2.minified.js b/crates/swc/tests/tsc-references/classWithProtectedProperty.2.minified.js index c7c088e90dfe..b31a0c1ddd64 100644 --- a/crates/swc/tests/tsc-references/classWithProtectedProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithProtectedProperty.2.minified.js @@ -1,7 +1,7 @@ //// [classWithProtectedProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPublicProperty.1.normal.js b/crates/swc/tests/tsc-references/classWithPublicProperty.1.normal.js index 26936f406e07..ff90fe093e44 100644 --- a/crates/swc/tests/tsc-references/classWithPublicProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithPublicProperty.1.normal.js @@ -1,5 +1,5 @@ //// [classWithPublicProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPublicProperty.2.minified.js b/crates/swc/tests/tsc-references/classWithPublicProperty.2.minified.js index 2f53f5d7bf2b..ab81a58edb1d 100644 --- a/crates/swc/tests/tsc-references/classWithPublicProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithPublicProperty.2.minified.js @@ -1,5 +1,5 @@ //// [classWithPublicProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.1.normal.js index d725b112dce1..1ce89475309c 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.1.normal.js @@ -1,5 +1,5 @@ //// [classWithSemicolonClassElement1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.2.minified.js index 8aa0760ceece..fec84043c878 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1.2.minified.js @@ -1,2 +1,2 @@ //// [classWithSemicolonClassElement1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.1.normal.js index 52fa73644d65..218122941633 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.1.normal.js @@ -1,5 +1,5 @@ //// [classWithSemicolonClassElement2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.2.minified.js index 7306ba51141e..91546cdb9a57 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2.2.minified.js @@ -1,2 +1,2 @@ //// [classWithSemicolonClassElement2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).1.normal.js index f60727cb01f6..62226850d091 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classWithStaticFieldInParameterBindingPattern.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _class; // https://github.com/microsoft/TypeScript/issues/36295 (function(param) { diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).2.minified.js index f4cec6fbe6be..7760253d0b17 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern(target=es5).2.minified.js @@ -1,6 +1,6 @@ //// [classWithStaticFieldInParameterBindingPattern.ts] var _class; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (void 0)[((_class = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).1.normal.js index f82b09ace444..e49fd2c2da69 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).1.normal.js @@ -1,8 +1,8 @@ //// [classWithStaticFieldInParameterBindingPattern.2.ts] // https://github.com/microsoft/TypeScript/issues/36295 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _class, _class1; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).2.minified.js index ad1a007080fd..0dc8df4c9f5e 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2(target=es5).2.minified.js @@ -1,7 +1,7 @@ //// [classWithStaticFieldInParameterBindingPattern.2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _class, _class1, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).1.normal.js index 1a7771b5d288..0797c5b113cd 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [classWithStaticFieldInParameterInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _class; // https://github.com/microsoft/TypeScript/issues/36295 (function() { diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).2.minified.js index 36737db989a8..bf767fff109c 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [classWithStaticFieldInParameterInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; }(); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).1.normal.js index 2d96bb4477ce..9053323122d1 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).1.normal.js @@ -1,8 +1,8 @@ //// [classWithStaticFieldInParameterInitializer.2.ts] // https://github.com/microsoft/TypeScript/issues/36295 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _class, _class1; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).2.minified.js index a76c1f2cd07b..2b3c2ffaa1c9 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2(target=es5).2.minified.js @@ -1,7 +1,7 @@ //// [classWithStaticFieldInParameterInitializer.2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticMembers.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticMembers.1.normal.js index 323ef3a141ab..6f1639e6bed9 100644 --- a/crates/swc/tests/tsc-references/classWithStaticMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticMembers.1.normal.js @@ -1,8 +1,8 @@ //// [classWithStaticMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C(a, b) { diff --git a/crates/swc/tests/tsc-references/classWithStaticMembers.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticMembers.2.minified.js index f182795173d0..34d0903f7804 100644 --- a/crates/swc/tests/tsc-references/classWithStaticMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticMembers.2.minified.js @@ -1,8 +1,8 @@ //// [classWithStaticMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function() { "use strict"; function C(a, b) { diff --git a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.1.normal.js b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.1.normal.js index e46bf4ff4552..e9ee2de89408 100644 --- a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.1.normal.js @@ -1,5 +1,5 @@ //// [classWithoutExplicitConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.2.minified.js b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.2.minified.js index 233db2f4cd18..cb8085f3d9e0 100644 --- a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor.2.minified.js @@ -1,5 +1,5 @@ //// [classWithoutExplicitConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C), this.x = 1, this.y = "hello"; diff --git a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.1.normal.js b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.1.normal.js index 8d42bbb39497..0919ac02fea7 100644 --- a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.1.normal.js +++ b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.1.normal.js @@ -1,5 +1,5 @@ //// [commaOperatorWithSecondOperandObjectType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY; var BOOLEAN; var NUMBER; diff --git a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.2.minified.js b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.2.minified.js index 9a2cb544d31c..471b276b750a 100644 --- a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.2.minified.js +++ b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType.2.minified.js @@ -1,5 +1,5 @@ //// [commaOperatorWithSecondOperandObjectType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, CLASS = function CLASS() { "use strict"; _class_call_check(this, CLASS); diff --git a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.1.normal.js index b705617b5c38..fdb7e7511b3e 100644 --- a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.1.normal.js @@ -9,10 +9,10 @@ Object.defineProperty(exports, "C1", { return C1; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var C1 = function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); this.m1 = 42; }; (function() { diff --git a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.2.minified.js index 24bd588085f7..48cc181ce80c 100644 --- a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression.2.minified.js @@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", { return C1; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, C1 = function C1() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), C1 = function C1() { "use strict"; - _class_call_check(this, C1), this.m1 = 42; + _class_call_check._(this, C1), this.m1 = 42; }; C1.s1 = !0; //// [foo_1.ts] diff --git a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.1.normal.js index 917190203776..b6ad8640cdb1 100644 --- a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.1.normal.js @@ -5,7 +5,7 @@ var K = require("./mod1").K; k.values(); } //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var K = /*#__PURE__*/ function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.2.minified.js index 29a6396dbd25..be936dc91d85 100644 --- a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference.2.minified.js @@ -2,7 +2,7 @@ //// [main.js] require("./mod1").K; //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.1.normal.js index 0be43eaf7c51..f9aa1d56fa4c 100644 --- a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.1.normal.js @@ -5,7 +5,7 @@ var K = require("./mod1").K; k.values(); } //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exports.K = /*#__PURE__*/ function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.2.minified.js index c5805e308d42..54c7675da4e5 100644 --- a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression.2.minified.js @@ -2,7 +2,7 @@ //// [main.js] require("./mod1").K; //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exports.K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.1.normal.js index 4062d8f07ea4..eb2a61e9f149 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.1.normal.js @@ -5,7 +5,7 @@ var K = require("./mod1").K; k.values(); } //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NS = {}; NS.K = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.2.minified.js index cfbde8d857cd..77b3d7faa790 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference.2.minified.js @@ -2,7 +2,7 @@ //// [main.js] require("./mod1").K; //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NS = {}; NS.K = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.1.normal.js index 7db184cc8f13..0b8d1e9c2a80 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.1.normal.js @@ -17,10 +17,10 @@ _export(exports, { return C1; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var C1 = function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); this.m1 = 42; }; (function() { diff --git a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.2.minified.js index d08b7d2643dd..f801aa2de911 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression.2.minified.js @@ -15,9 +15,9 @@ Object.defineProperty(exports, "__esModule", { return C1; } }); -var E1, _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, C1 = function C1() { +var E1, _class_call_check = require("@swc/helpers/_/_class_call_check"), C1 = function C1() { "use strict"; - _class_call_check(this, C1), this.m1 = 42; + _class_call_check._(this, C1), this.m1 = 42; }; C1.s1 = !0, function(E1) { E1[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.1.normal.js index f4307a1140fc..c49efc29d4ce 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithIdenticalObjects.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A1 = /*#__PURE__*/ function() { "use strict"; function A1() { diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.2.minified.js index bab4eeb13417..d517612ff7e9 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithIdenticalObjects.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.1.normal.js index 17e6a848ad30..18d166f12dfd 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.2.minified.js index a8139d3af6fa..597c19241c93 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.1.normal.js index 1409e9f3d6f6..7dc18fec44d4 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.2.minified.js index 991ce8fafce5..85a923678198 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.1.normal.js index 3ecf76b9ba07..88bda3f702bc 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.2.minified.js index 91a87e0f25d5..9fdb284a4632 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.1.normal.js index bf2a7769cc7e..7f872eb7b209 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.2.minified.js index 153e1d219614..d6dca88d27cb 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.1.normal.js index 4463310dd141..035ee6b3f0f9 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.2.minified.js index b0c49d447e56..088db1c0d69d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.1.normal.js index d2383c1156be..04189d6ad1b6 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.1.normal.js @@ -1,5 +1,5 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A1 = function A1() { "use strict"; _class_call_check(this, A1); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.2.minified.js index 7b6364551938..e82a44cc2816 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty.2.minified.js @@ -1,2 +1,2 @@ //// [comparisonOperatorWithNoRelationshipObjectsOnProperty.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.1.normal.js index 35cbb072363d..fec5c05fa2b9 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.2.minified.js index 354ff3793a9c..56f1d9029281 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.1.normal.js index eccc29d73cce..0a2116f70d90 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.2.minified.js index cca51b0d6095..a4e5bfec0127 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.1.normal.js index db324ad73bf6..6661ed7244c4 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnIndexSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.2.minified.js index e94ee930a06c..dacd4c10756c 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnIndexSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.1.normal.js index d75e60d68a69..783c11ff9509 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.2.minified.js index e0d890cd2bce..00a927eb42f8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.1.normal.js index 77d27ff5ded9..92336a3292f2 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.2.minified.js index ae519afd9a0c..c3542ca12156 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.1.normal.js index 7468ff0a1080..a470b3fc4ade 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.1.normal.js @@ -1,7 +1,7 @@ //// [comparisonOperatorWithSubtypeObjectOnProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.2.minified.js index d9064f100c35..3d50780442d0 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty.2.minified.js @@ -1,4 +1,4 @@ //// [comparisonOperatorWithSubtypeObjectOnProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.1.normal.js index 69c30a5c1ef9..23464fb04233 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames10_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var s; var n; var a; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.2.minified.js index f6b9ecb33737..e64584cabf9b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNames10_ES5.ts] var s, n, a, _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, s, function() {}), _define_property(_obj, n, function() {}), _define_property(_obj, s + s, function() {}), _define_property(_obj, s + n, function() {}), _define_property(_obj, +s, function() {}), _define_property(_obj, "", function() {}), _define_property(_obj, 0, function() {}), _define_property(_obj, a, function() {}), _define_property(_obj, !0, function() {}), _define_property(_obj, "hello bye", function() {}), _define_property(_obj, "hello ".concat(a, " bye"), function() {}); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.1.normal.js index 737ccb13f6c8..53832fbf29c7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames11_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var s; var n; var a; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.2.minified.js index 7145a228be65..5e34253d5366 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames11_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var s, n, a, _mutatorMap = {}; _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.1.normal.js index fe6139479513..9c5805cbc62d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames13_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var s; var n; var a; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.2.minified.js index 5150fde59ffc..5fcc0dd6a99e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames13_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.1.normal.js index 5e7f6ea1c351..8a17e7850790 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames14_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var b; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.2.minified.js index d79e4b46b53f..69935734d365 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames14_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.1.normal.js index 1de90f907f47..06537253f3b6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames15_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var p1; var p2; var p3; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.2.minified.js index 87b19e1611ed..ac07b0ca5f59 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames15_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.1.normal.js index ea463e27a388..83533427d298 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames16_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var s; var n; var a; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.2.minified.js index f7c8c93d8fff..1905c77480bd 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames16_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.1.normal.js index eadbe7ec64a1..1ad8e458358a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames17_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var b; var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.2.minified.js index 4666f9c049a7..078021864b73 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames17_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.1.normal.js index 26307971b823..0ae0f104631a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames18_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function foo() { var obj = _define_property({}, this.bar, 0); } diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.2.minified.js index 7bd653dd071b..474163fcfe82 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames18_ES5.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.1.normal.js index e671471436e7..35c5592f31c8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames19_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var M; (function(M) { var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.2.minified.js index c2a09c0bc678..db8c3813778f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNames19_ES5.ts] var M; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; !function(M) { _define_property({}, this.bar, 0); }(M || (M = {})); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.1.normal.js index 3eb99156c878..c60a28c4c0e2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames1_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var _obj, _mutatorMap = {}; var v = (_obj = {}, _mutatorMap[0 + 1] = _mutatorMap[0 + 1] || {}, _mutatorMap[0 + 1].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.2.minified.js index 0f7c51b0dd99..53e3c3949db8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames1_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var _mutatorMap = {}; _mutatorMap[1] = _mutatorMap[1] || {}, _mutatorMap[1].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.1.normal.js index 31439ac4f10f..fcc20944f16c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.1.normal.js @@ -1,3 +1,3 @@ //// [computedPropertyNames20_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.2.minified.js index b1f81e99fb70..bdce27690d28 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames20_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.1.normal.js index 5ad07c553b57..ef2155bb785b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames21_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function(_prop) { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.2.minified.js index 247c0a335f38..6f202efa07d3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames21_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; this.bar(); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.1.normal.js index 451591217544..a9e51b6a98e0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames22_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.2.minified.js index 447bbee9d0ce..8fca1c23a810 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames22_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.1.normal.js index 27c184ad9f3a..c08fac66d0ad 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames23_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var C = /*#__PURE__*/ function(_prop) { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.2.minified.js index 5aa2acce459f..501cfca6c3e5 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNames23_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, this.bar(), 1)[0]; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.1.normal.js index 1605f18cb678..cc975deb4365 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.1.normal.js @@ -1,7 +1,7 @@ //// [computedPropertyNames24_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.2.minified.js index 5b0e9d9270c7..ca074dcf2676 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames24_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; super.bar(); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.1.normal.js index 3051876aa224..2f500346e698 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.1.normal.js @@ -1,10 +1,10 @@ //// [computedPropertyNames25_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.2.minified.js index ea8378d5b890..3b212e455b3f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5.2.minified.js @@ -1,7 +1,7 @@ //// [computedPropertyNames25_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.1.normal.js index 13bafec9309c..b338bfa711ae 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames26_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.2.minified.js index e983348d049c..73fb3dd219cc 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNames26_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; _define_property({}, super.bar(), 1)[0]; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.1.normal.js index e9e36a3dc927..903eeb6b729d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.1.normal.js @@ -1,7 +1,7 @@ //// [computedPropertyNames27_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.2.minified.js index b32882b2371b..98860a0b8b65 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames27_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; super(); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.1.normal.js index 385de205e128..a07b7d39621c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames28_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.2.minified.js index ebc1c549f096..967cad42c6b9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames28_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.1.normal.js index 6096b84bc35e..0589193329a3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames29_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.2.minified.js index 396f5741fa3d..634aa4efb220 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames29_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.1.normal.js index 26f4cf65eeb3..89e56cd453bb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames2_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var methodName = "method"; var accessorName = "accessor"; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.2.minified.js index ca4c1d34db33..5d469afc402e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames2_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.1.normal.js index 8d6825fae0ff..f57ada167761 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames30_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.2.minified.js index 4e51164fd07b..45e015be7e0c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames30_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.1.normal.js index a91ac48c3dae..79916b4a1279 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.1.normal.js @@ -1,10 +1,10 @@ //// [computedPropertyNames31_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.2.minified.js index 54d7e3f55d7b..ed450ecb113f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5.2.minified.js @@ -1,7 +1,7 @@ //// [computedPropertyNames31_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.1.normal.js index 93f98d966523..36336f80d601 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames32_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { return ""; } diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.2.minified.js index b2d983e11adb..525ea42439d2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames32_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.1.normal.js index b2b70f07543a..58e906ccdc22 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames33_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function foo() { return ""; } diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.2.minified.js index 836575734c8b..debd7a0d0b42 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames33_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.1.normal.js index d6ac200235fb..56a458cb227e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames34_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function foo() { return ""; } diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.2.minified.js index b872d4e41cdb..fb294e3ebbdd 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames34_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.1.normal.js index 8cf2ab2bf073..dafa8d40c73c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames36_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.2.minified.js index 268dca21e8c0..ced6128f704b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames36_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.1.normal.js index aa3b6d110f63..ff43ee3b4d78 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames37_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.2.minified.js index a4942747ab05..9e534a3b79ab 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames37_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.1.normal.js index cd1065ebdbc4..4aac94537fb0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames38_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.2.minified.js index 03322ec18cb4..0ddb8c1266e6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames38_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.1.normal.js index 3f30d17116ef..2eee26d6695e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNames39_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.2.minified.js index cbf1f0dbb48b..050d21c679de 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames39_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.1.normal.js index 8e71640e74f5..37b84204d342 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames40_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.2.minified.js index 269e62be98f1..70de189fa1a1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames40_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.1.normal.js index 9d8dfe379624..f4ad030e701f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames41_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.2.minified.js index 24d4966657bc..8d7982e8fc1f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames41_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.1.normal.js index 6c5c76c60ac4..941444cce54d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames42_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.2.minified.js index d5b5420de433..7b160a2c5fd1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames42_ES5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.1.normal.js index 4a27e6697306..2321df209d7b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames43_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.2.minified.js index 593fcdd3e1cc..1570fe1e0822 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames43_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.1.normal.js index 21c9ef9133b4..cb046c2fe152 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames44_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.2.minified.js index 0ccec49389ac..8a434d37877c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames44_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.1.normal.js index 73d481ce0bd7..ba6886cdacd7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.1.normal.js @@ -1,8 +1,8 @@ //// [computedPropertyNames45_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.2.minified.js index 4a7b6a4637a0..8154843e93a8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames45_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.1.normal.js index ad62c2dc4410..d08cec2b2522 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.1.normal.js @@ -1,3 +1,3 @@ //// [computedPropertyNames46_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var o = _define_property({}, "" || 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.2.minified.js index c2dcb61889f6..2acd5cb5d736 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNames46_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.1.normal.js index 90a1acce66c8..2b25533c109e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames47_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var E1; (function(E1) { E1[E1["x"] = 0] = "x"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.2.minified.js index c08c57d75606..fcec8b3fb8e0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNames47_ES5.ts] var E1, E2; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; !function(E1) { E1[E1.x = 0] = "x"; }(E1 || (E1 = {})), function(E2) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.1.normal.js index d1af42222592..1bd79367c12e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames48_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var E; (function(E) { E[E["x"] = 0] = "x"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.2.minified.js index dcee709d7e1c..78780035288e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNames48_ES5.ts] var E, a; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; !function(E) { E[E.x = 0] = "x"; }(E || (E = {})), extractIndexer(_define_property({}, a, "")), extractIndexer(_define_property({}, E.x, "")), extractIndexer(_define_property({}, 0, "")); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.1.normal.js index 78509d0c0127..1fba322e5955 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames4_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var s; var n; var a; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.2.minified.js index 0cff026e0c67..d9ab380a512a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNames4_ES5.ts] var s, n, a, _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, s, 0), _define_property(_obj, n, n), _define_property(_obj, s + s, 1), _define_property(_obj, s + n, 2), _define_property(_obj, +s, s), _define_property(_obj, "", 0), _define_property(_obj, 0, 0), _define_property(_obj, a, 1), _define_property(_obj, !0, 0), _define_property(_obj, "hello bye", 0), _define_property(_obj, "hello ".concat(a, " bye"), 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.1.normal.js index 72502c19bfa4..81c6e15de4ff 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames51_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function f() { var t; var k; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.2.minified.js index 34a99b7c6c7a..04185a2fdd11 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames51_ES5.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.1.normal.js index c1fed25fec5c..c3e8d23f02c9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames5_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var b; var _obj; var v = (_obj = {}, _define_property(_obj, b, 0), _define_property(_obj, true, 1), _define_property(_obj, [], 0), _define_property(_obj, {}, 0), _define_property(_obj, undefined, undefined), _define_property(_obj, null, null), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.2.minified.js index b228e707a259..20578db473e9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNames5_ES5.ts] var b, _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, b, 0), _define_property(_obj, !0, 1), _define_property(_obj, [], 0), _define_property(_obj, {}, 0), _define_property(_obj, void 0, void 0), _define_property(_obj, null, null); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.1.normal.js index b420658977db..6db55498fee9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames6_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var p1; var p2; var p3; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.2.minified.js index 741732cfec65..e5a221e83d24 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNames6_ES5.ts] var p1, p2, p3, _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, p1, 0), _define_property(_obj, p2, 1), _define_property(_obj, p3, 2); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.1.normal.js index 15be31d6706d..5e9c207788f9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames7_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var E; (function(E) { E[E["member"] = 0] = "member"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.2.minified.js index f39110dace61..d293a2b38ddb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNames7_ES5.ts] var E; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; !function(E) { E[E.member = 0] = "member"; }(E || (E = {})), _define_property({}, E.member, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.1.normal.js index 59952875026c..22bc1140e6ec 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames8_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function f() { var t; var u; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.2.minified.js index 151bd49f5010..24136875d000 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5.2.minified.js @@ -1,2 +1,2 @@ //// [computedPropertyNames8_ES5.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.1.normal.js index 2ef42273c740..841efeb43f9f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNames9_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function f(x) {} var _obj; var v = (_obj = {}, _define_property(_obj, f(""), 0), _define_property(_obj, f(0), 0), _define_property(_obj, f(true), 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.2.minified.js index 395dfb9e9e38..6bed8418ffcc 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNames9_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function f(x) {} _define_property(_obj = {}, f(""), 0), _define_property(_obj, f(0), 0), _define_property(_obj, f(!0), 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.1.normal.js index 6d74c9877288..7983aea571d1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType10_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.2.minified.js index 965aa07e9625..b651de9c6a3d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType10_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.1.normal.js index 8433d9feb0a4..f156c75ce995 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesContextualType1_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + 0, function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.2.minified.js index d050c090d4e9..29c09cd282be 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesContextualType1_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, "0", function(y) { return y.length; }), _define_property(_obj, "1", function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.1.normal.js index f38c3da1cddf..a7bccce3859b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesContextualType2_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.2.minified.js index 0e060380fe4c..82658e2db2d0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesContextualType2_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, NaN, function(y) { return y.length; }), _define_property(_obj, NaN, function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.1.normal.js index d776ea0cf091..891376ec7028 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesContextualType3_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.2.minified.js index f449bfe750c1..58738ea806cc 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesContextualType3_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, NaN, function(y) { return y.length; }), _define_property(_obj, NaN, function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.1.normal.js index 77224d9ce0a2..b700080d352c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType4_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + "foo", ""), _define_property(_obj, "" + "bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.2.minified.js index 798de97e60f5..697ab647be69 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType4_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.1.normal.js index de89cafb339d..2c613648c31c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType5_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.2.minified.js index b9b8f8c578d7..af77d136b0fc 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType5_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.1.normal.js index ad7bead752de..68e412132c4a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesContextualType6_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; foo((_obj = { p: "", diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.2.minified.js index 515223906918..38743ebb8cbd 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesContextualType6_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; foo((_define_property(_obj = { p: "", 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.1.normal.js index bf921589729e..0f6f042ae99d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesContextualType7_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; foo((_obj = { 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.2.minified.js index 1ea2a2052b0f..eddbaf8459e9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesContextualType7_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; foo((_define_property(_obj = { 0: function() {} }, "hibye", !0), _define_property(_obj, 1, 0), _define_property(_obj, NaN, [ diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.1.normal.js index 32f5a8cec653..40bf8705c95b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType8_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + "foo", ""), _define_property(_obj, "" + "bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.2.minified.js index b8b0de6abeb0..8491041f5d2f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType8_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.1.normal.js index 6b641c014d2f..3da54a7895d0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType9_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.2.minified.js index 6c2810c71303..019cfa163581 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesContextualType9_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.1.normal.js index 5fefe43c8bea..f129eb71860c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesDeclarationEmit1_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.2.minified.js index 515f3f384a03..b443625255c9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNamesDeclarationEmit1_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.1.normal.js index 8edd2ba9758f..79d63ef40a53 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesDeclarationEmit2_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.2.minified.js index a81cfb00f03f..c0cb57049bbe 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNamesDeclarationEmit2_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.1.normal.js index bd1c95aea8bc..b00510851e2f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesDeclarationEmit5_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, _mutatorMap = {}; var v = (_obj = {}, _define_property(_obj, "" + "", 0), _define_property(_obj, "" + "", function() {}), _mutatorMap["" + ""] = _mutatorMap["" + ""] || {}, _mutatorMap["" + ""].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.2.minified.js index 8460ac9276e7..a5d29753ed36 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesDeclarationEmit5_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, _mutatorMap = {}; _define_property(_obj = {}, "", 0), _define_property(_obj, "", function() {}), _mutatorMap[""] = _mutatorMap[""] || {}, _mutatorMap[""].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.1.normal.js index 571613b1a5f1..e43109e174c9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.1.normal.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesDeclarationEmit6_ES5.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj; var v = (_obj = {}, _define_property(_obj, -1, {}), _define_property(_obj, +1, {}), _define_property(_obj, ~1, {}), _define_property(_obj, !1, {}), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.2.minified.js index a4855670d66f..612adc246517 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5.2.minified.js @@ -1,4 +1,4 @@ //// [computedPropertyNamesDeclarationEmit6_ES5.ts] var _obj; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(_obj = {}, -1, {}), _define_property(_obj, 1, {}), _define_property(_obj, -2, {}), _define_property(_obj, !1, {}); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.1.normal.js index dfb8fce15833..7585c2a1bcf2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesSourceMap1_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.2.minified.js index 1c318a4534f0..3253df1383e8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5.2.minified.js @@ -1,3 +1,3 @@ //// [computedPropertyNamesSourceMap1_ES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.1.normal.js index e9159e0400bc..308b453957eb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesSourceMap2_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, _mutatorMap = {}; var v = (_obj = {}, _define_property(_obj, "hello", function() { debugger; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.2.minified.js index 52fae3af6ce2..64a34e8bcf59 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [computedPropertyNamesSourceMap2_ES5.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, _mutatorMap = {}; _define_property(_obj = {}, "hello", function() {}), _mutatorMap.goodbye = _mutatorMap.goodbye || {}, _mutatorMap.goodbye.get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.1.normal.js index 701cebb04d9e..2bcc9ec8ef42 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.1.normal.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesWithStaticProperty.ts] -import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; +import { _ as _class_name_tdz_error } from "@swc/helpers/_/_class_name_tdz_error"; let _staticProp = (_class_name_tdz_error("C"), C).staticProp, _staticProp1 = (_class_name_tdz_error("C"), C).staticProp, _staticProp2 = (_class_name_tdz_error("C"), C).staticProp; class C { get [_staticProp]() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.2.minified.js index ba69a75e8c65..a980f64eb223 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty.2.minified.js @@ -1,5 +1,5 @@ //// [computedPropertyNamesWithStaticProperty.ts] -import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; +import { _ as _class_name_tdz_error } from "@swc/helpers/_/_class_name_tdz_error"; let _staticProp = (_class_name_tdz_error("C"), C).staticProp, _staticProp1 = (_class_name_tdz_error("C"), C).staticProp, _staticProp2 = (_class_name_tdz_error("C"), C).staticProp; class C { get [_staticProp]() { diff --git a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.1.normal.js index ce83e6fd9cdd..3e4e90d0005c 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.1.normal.js @@ -1,6 +1,6 @@ //// [conditionalOperatorConditoinIsStringType.ts] //Cond ? Expr1 : Expr2, Cond is of string type, Expr1 and Expr2 have the same type -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var condString; var exprAny1; var exprBoolean1; diff --git a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.2.minified.js index ca0e38a45730..766cd341161f 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType.2.minified.js @@ -1,6 +1,6 @@ //// [conditionalOperatorConditoinIsStringType.ts] var condString; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; function foo() { return "string"; } diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.1.normal.js index b156a4eaae81..cf2d0b64e17c 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.1.normal.js @@ -1,8 +1,8 @@ //// [conditionalOperatorWithIdenticalBCT.ts] //Cond ? Expr1 : Expr2, Expr1 and Expr2 have identical best common type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.2.minified.js index 6fd022218440..2b79f04dd0b4 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT.2.minified.js @@ -1,4 +1,4 @@ //// [conditionalOperatorWithIdenticalBCT.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.1.normal.js index d47a93e7a3aa..21eb719d39bf 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.1.normal.js @@ -1,8 +1,8 @@ //// [conditionalOperatorWithoutIdenticalBCT.ts] //Cond ? Expr1 : Expr2, Expr1 and Expr2 have no identical best common type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.2.minified.js index 5a8cfdb491d0..5320d702624c 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT.2.minified.js @@ -1,4 +1,4 @@ //// [conditionalOperatorWithoutIdenticalBCT.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/conditionalTypes2.1.normal.js b/crates/swc/tests/tsc-references/conditionalTypes2.1.normal.js index 7c0a5ff6f765..4a14ac2e1387 100644 --- a/crates/swc/tests/tsc-references/conditionalTypes2.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalTypes2.1.normal.js @@ -1,5 +1,5 @@ //// [conditionalTypes2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(a, b) { a = b; b = a; // Error diff --git a/crates/swc/tests/tsc-references/conditionalTypes2.2.minified.js b/crates/swc/tests/tsc-references/conditionalTypes2.2.minified.js index 050aca6b9fbc..d5fc4dfae2b5 100644 --- a/crates/swc/tests/tsc-references/conditionalTypes2.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalTypes2.2.minified.js @@ -1,3 +1,3 @@ //// [conditionalTypes2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exportCommand(save), gg(ff); diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.1.normal.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.1.normal.js index 38308af43f4f..3378722e59e8 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.1.normal.js @@ -1,6 +1,6 @@ //// [constraintSatisfactionWithAny.ts] // any is not a valid type argument unless there is no constraint, or the constraint is any -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) { return null; } diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.2.minified.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.2.minified.js index a7ef556b23eb..351894a82927 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny.2.minified.js @@ -1,5 +1,5 @@ //// [constraintSatisfactionWithAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a, b, C = function C(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.1.normal.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.1.normal.js index 3f513d074471..6a75695f09fe 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.1.normal.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.1.normal.js @@ -1,7 +1,7 @@ //// [constraintSatisfactionWithEmptyObject.ts] // valid uses of a basic object constraint, no errors expected // Object constraint -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} var r = foo({}); var a = {}; diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.2.minified.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.2.minified.js index a7e7f81f9651..4e99fc802b4b 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.2.minified.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject.2.minified.js @@ -1,5 +1,5 @@ //// [constraintSatisfactionWithEmptyObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.1.normal.js index a3a66ba926de..0c7ff2247cbe 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.1.normal.js @@ -1,8 +1,8 @@ //// [constructSignatureAssignabilityInInheritance2.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.2.minified.js index 520498dafe62..5b0f52b133c7 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2.2.minified.js @@ -1,4 +1,4 @@ //// [constructSignatureAssignabilityInInheritance2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.1.normal.js index 1aa7a6ddeb2c..a8e180a52575 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.1.normal.js @@ -1,9 +1,9 @@ //// [constructSignatureAssignabilityInInheritance3.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.2.minified.js index d19ee10d96e7..6d607befadfb 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3.2.minified.js @@ -1,6 +1,6 @@ //// [constructSignatureAssignabilityInInheritance3.ts] var Errors; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Errors || (Errors = {}); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.1.normal.js index 4fe43b0137e8..9b76da67bbcf 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.1.normal.js @@ -1,8 +1,8 @@ //// [constructSignatureAssignabilityInInheritance4.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.2.minified.js index 946398a147af..af959f3770a4 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4.2.minified.js @@ -1,4 +1,4 @@ //// [constructSignatureAssignabilityInInheritance4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.1.normal.js index 9e048537fb79..5f912e534028 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.1.normal.js @@ -1,9 +1,9 @@ //// [constructSignatureAssignabilityInInheritance5.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithConstructSignatures2 just with an extra level of indirection in the inheritance chain -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.2.minified.js index 5c7221c505ad..49322abbdd77 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5.2.minified.js @@ -1,4 +1,4 @@ //// [constructSignatureAssignabilityInInheritance5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.1.normal.js index b25da5adec8c..ddca25343920 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.1.normal.js @@ -2,9 +2,9 @@ // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithConstructSignatures4 but using class type parameters instead of generic signatures // all are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.2.minified.js index f363356909cf..378d40625c84 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6.2.minified.js @@ -1,4 +1,4 @@ //// [constructSignatureAssignabilityInInheritance6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.1.normal.js index dfcfd1feba6d..f99d85592a04 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.1.normal.js @@ -1,6 +1,6 @@ //// [constructSignaturesWithIdenticalOverloads.ts] // Duplicate overloads of construct signatures should generate errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.2.minified.js index ff32820e9a54..1748e718e61b 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads.2.minified.js @@ -1,6 +1,6 @@ //// [constructSignaturesWithIdenticalOverloads.ts] var i, i2, a, b; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.1.normal.js index 58d5d8201691..960b8de0e3f7 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.1.normal.js @@ -1,6 +1,6 @@ //// [constructSignaturesWithOverloads.ts] // No errors expected for basic overloads of construct signatures -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.2.minified.js index 271f6ed7893c..c87f044946f9 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads.2.minified.js @@ -1,6 +1,6 @@ //// [constructSignaturesWithOverloads.ts] var i, i2, a, b; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.1.normal.js index 6b92e756c8b2..3584bf60ca3c 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.1.normal.js @@ -1,7 +1,7 @@ //// [constructSignaturesWithOverloads2.ts] // No errors expected for basic overloads of construct signatures with merged declarations // clodules -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.2.minified.js index 36e29e3cb3c4..f6b8f324805e 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2.2.minified.js @@ -1,5 +1,5 @@ //// [constructSignaturesWithOverloads2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var i2, C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.1.normal.js index 76b5f317c0f1..f5836c143293 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.1.normal.js @@ -1,6 +1,6 @@ //// [constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts] // Error for construct signature overloads to differ only by return type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.2.minified.js index 6c0fa665dcb7..38f534befc08 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.2.minified.js @@ -1,2 +1,2 @@ //// [constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.1.normal.js b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.1.normal.js index d31670a70efd..ef536284e194 100644 --- a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.1.normal.js @@ -1,5 +1,5 @@ //// [constructorDefaultValuesReferencingThis.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this; diff --git a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.2.minified.js b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.2.minified.js index 09fd48535fb5..823f004ba4f6 100644 --- a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis.2.minified.js @@ -1,2 +1,2 @@ //// [constructorDefaultValuesReferencingThis.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.1.normal.js index 07e361482e3c..547c186996e0 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.1.normal.js @@ -5,7 +5,7 @@ var SomeClass = function SomeClass() { }; new SomeClass(); //// [file2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var SomeClass = function SomeClass() { "use strict"; _class_call_check(this, SomeClass); diff --git a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.2.minified.js index 41f9c37ee2ef..3000f2ec915c 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass.2.minified.js @@ -4,4 +4,4 @@ new function() { this.otherProp = 0; }(); //// [file2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.1.normal.js index 283a6272e938..3cf690c2b95f 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.1.normal.js @@ -1,7 +1,7 @@ //// [constructorFunctionTypeIsAssignableToBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.2.minified.js index b2515c7e1535..83538f3a7c95 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType.2.minified.js @@ -1,4 +1,4 @@ //// [constructorFunctionTypeIsAssignableToBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.1.normal.js index 4fe683a702ee..a362463b14ef 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.1.normal.js @@ -1,9 +1,9 @@ //// [constructorFunctionTypeIsAssignableToBaseType2.ts] // the constructor function itself does not need to be a subtype of the base type constructor function -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.2.minified.js index d1415515bec4..8c262d9b6e4f 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2.2.minified.js @@ -1,5 +1,5 @@ //// [constructorFunctionTypeIsAssignableToBaseType2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/constructorFunctions.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctions.1.normal.js index 3628c7260bca..950d9745341d 100644 --- a/crates/swc/tests/tsc-references/constructorFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctions.1.normal.js @@ -1,6 +1,6 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function C1() { if (!_instanceof(this, C1)) return new C1(); this.x = 1; diff --git a/crates/swc/tests/tsc-references/constructorFunctions.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctions.2.minified.js index 4819c3dc7669..7eaa220fc904 100644 --- a/crates/swc/tests/tsc-references/constructorFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctions.2.minified.js @@ -1,6 +1,6 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function C1() { if (!_instanceof(this, C1)) return new C1(); this.x = 1; diff --git a/crates/swc/tests/tsc-references/constructorFunctionsStrict.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionsStrict.1.normal.js index e9145eeef072..68eccdf341d5 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionsStrict.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionsStrict.1.normal.js @@ -1,5 +1,5 @@ //// [a.js] -/** @param {number} x */ import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +/** @param {number} x */ import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function C(x) { this.x = x; } diff --git a/crates/swc/tests/tsc-references/constructorFunctionsStrict.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionsStrict.2.minified.js index 93cff9c6a743..a20a79c2444c 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionsStrict.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionsStrict.2.minified.js @@ -1,5 +1,5 @@ //// [a.js] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function C(x) { this.x = x; } diff --git a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.1.normal.js b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.1.normal.js index fc883c8cd469..1b7c601a5df4 100644 --- a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.1.normal.js @@ -1,7 +1,7 @@ //// [constructorHasPrototypeProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var NonGeneric; (function(NonGeneric) { var C = function C() { diff --git a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.2.minified.js b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.2.minified.js index 8c373c37b88d..c68b56121925 100644 --- a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty.2.minified.js @@ -1,8 +1,8 @@ //// [constructorHasPrototypeProperty.ts] var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(NonGeneric) { var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.1.normal.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.1.normal.js index af56016c59fc..6c41720cf096 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.1.normal.js @@ -1,5 +1,5 @@ //// [constructorImplementationWithDefaultValues.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.2.minified.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.2.minified.js index 62587aaa7cc9..abe9095135f6 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues.2.minified.js @@ -1,2 +1,2 @@ //// [constructorImplementationWithDefaultValues.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.1.normal.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.1.normal.js index 005ce885d628..688393ec08a1 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.1.normal.js @@ -1,5 +1,5 @@ //// [constructorImplementationWithDefaultValues2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.2.minified.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.2.minified.js index 483f6dcfe57b..ef25b2b3c9c4 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2.2.minified.js @@ -1,2 +1,2 @@ //// [constructorImplementationWithDefaultValues2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.1.normal.js b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.1.normal.js index c2fefcfd477a..9328191c6af6 100644 --- a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.1.normal.js @@ -1,5 +1,5 @@ //// [constructorOverloadsWithOptionalParameters.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.2.minified.js b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.2.minified.js index 41e9356ba41a..a37b66d0f414 100644 --- a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters.2.minified.js @@ -1,2 +1,2 @@ //// [constructorOverloadsWithOptionalParameters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterProperties.1.normal.js index b04ee93b2234..4498d8c33be7 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties.1.normal.js @@ -1,5 +1,5 @@ //// [constructorParameterProperties.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x, z) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterProperties.2.minified.js index 76cdac413043..332ecc3abd42 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties.2.minified.js @@ -1,4 +1,4 @@ //// [constructorParameterProperties.ts] var c, d; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.y, c.x, c.z, d.y, d.x, d.a, d.z; diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties2.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterProperties2.1.normal.js index 866dfcb1b8e5..5575d48b5fa6 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties2.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties2.1.normal.js @@ -1,5 +1,5 @@ //// [constructorParameterProperties2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(y) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties2.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterProperties2.2.minified.js index 99592c084dd1..b7a7fd88a45f 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties2.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties2.2.minified.js @@ -1,4 +1,4 @@ //// [constructorParameterProperties2.ts] var c, d, e, f; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.y, d.y, e.y, f.y; diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.1.normal.js index 0ab0752619f7..f76303b80d7a 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.1.normal.js @@ -3,7 +3,7 @@ // body but are not permitted to reference parameters or local variables of the constructor. // This effectively means that entities from outer scopes by the same name as a constructor parameter or // local variable are inaccessible in initializer expressions for instance member variables -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = 1; var C = function C(x1) { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.2.minified.js index b87802cce91f..9a3db2f8465a 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes.2.minified.js @@ -1,2 +1,2 @@ //// [constructorParameterShadowsOuterScopes.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.1.normal.js b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.1.normal.js index 3321e1190185..cc9973546e70 100644 --- a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.1.normal.js @@ -1,5 +1,5 @@ //// [bug27025.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Alpha = function Alpha() { "use strict"; _class_call_check(this, Alpha); diff --git a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.2.minified.js b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.2.minified.js index 991df036b28e..0ee4a27e5817 100644 --- a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor.2.minified.js @@ -1,5 +1,5 @@ //// [bug27025.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Alpha = function Alpha() { "use strict"; _class_call_check(this, Alpha); diff --git a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.1.normal.js b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.1.normal.js index 846272063e4c..e6da795f8f1b 100644 --- a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.1.normal.js @@ -1,6 +1,6 @@ //// [constructorWithAssignableReturnExpression.ts] // a class constructor may return an expression, it must be assignable to the class instance type to be valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.2.minified.js b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.2.minified.js index 38650669a0f2..709faf923326 100644 --- a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression.2.minified.js @@ -1,2 +1,2 @@ //// [constructorWithAssignableReturnExpression.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.1.normal.js b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.1.normal.js index db03b5dec3a6..83d521f69513 100644 --- a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.1.normal.js @@ -1,5 +1,5 @@ //// [constructorWithExpressionLessReturn.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.2.minified.js b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.2.minified.js index 89492bc4294a..777b50a50ff3 100644 --- a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn.2.minified.js @@ -1,2 +1,2 @@ //// [constructorWithExpressionLessReturn.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/contextualTypeWithTuple.1.normal.js b/crates/swc/tests/tsc-references/contextualTypeWithTuple.1.normal.js index f430686e121d..3b98ef312051 100644 --- a/crates/swc/tests/tsc-references/contextualTypeWithTuple.1.normal.js +++ b/crates/swc/tests/tsc-references/contextualTypeWithTuple.1.normal.js @@ -1,6 +1,6 @@ //// [contextualTypeWithTuple.ts] // no error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var numStrTuple = [ 5, "hello" diff --git a/crates/swc/tests/tsc-references/contextualTypeWithTuple.2.minified.js b/crates/swc/tests/tsc-references/contextualTypeWithTuple.2.minified.js index eb4b8ca35a04..2b7716033c94 100644 --- a/crates/swc/tests/tsc-references/contextualTypeWithTuple.2.minified.js +++ b/crates/swc/tests/tsc-references/contextualTypeWithTuple.2.minified.js @@ -1,5 +1,5 @@ //// [contextualTypeWithTuple.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.1.normal.js b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.1.normal.js index 766d65db494c..a5ad172440cf 100644 --- a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.1.normal.js @@ -3,7 +3,7 @@ status: 'done' m(n: number): void }} DoneStatus */ // property assignment -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ns = {}; /** @type {DoneStatus} */ ns.x = { status: "done", diff --git a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.2.minified.js b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.2.minified.js index 4e4872bc0bea..fdad5120f88f 100644 --- a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment.2.minified.js @@ -1,5 +1,5 @@ //// [test.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ns = {}; ns.x = { status: "done", diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.1.normal.js index beb8fe5edae3..5125a60d397c 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.1.normal.js @@ -1,5 +1,5 @@ //// [contextuallyTypedClassExpressionMethodDeclaration01.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function getFoo1() { return /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.2.minified.js index 7eab3be5861c..8ac0e0e74c60 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01.2.minified.js @@ -1,2 +1,2 @@ //// [contextuallyTypedClassExpressionMethodDeclaration01.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.1.normal.js index ca2683edc3ec..181e26ce49ca 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.1.normal.js @@ -1,5 +1,5 @@ //// [contextuallyTypedClassExpressionMethodDeclaration02.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function getFoo1() { return /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.2.minified.js index 69a2f1eca8d4..d53a8f8af765 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02.2.minified.js @@ -1,2 +1,2 @@ //// [contextuallyTypedClassExpressionMethodDeclaration02.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/controlFlowAliasing.1.normal.js b/crates/swc/tests/tsc-references/controlFlowAliasing.1.normal.js index 9c4ad69a0a25..b5ba440af426 100644 --- a/crates/swc/tests/tsc-references/controlFlowAliasing.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowAliasing.1.normal.js @@ -1,6 +1,6 @@ //// [controlFlowAliasing.ts] // Narrowing by aliased conditional expressions -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f10(x) { var isString = typeof x === "string"; if (isString) { diff --git a/crates/swc/tests/tsc-references/controlFlowAliasing.2.minified.js b/crates/swc/tests/tsc-references/controlFlowAliasing.2.minified.js index 078264d03bb6..7b4168039105 100644 --- a/crates/swc/tests/tsc-references/controlFlowAliasing.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowAliasing.2.minified.js @@ -1,5 +1,5 @@ //// [controlFlowAliasing.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; ({ fn: function() { return !0; diff --git a/crates/swc/tests/tsc-references/controlFlowGenericTypes.1.normal.js b/crates/swc/tests/tsc-references/controlFlowGenericTypes.1.normal.js index b04be1e832f5..cd09255a3b9e 100644 --- a/crates/swc/tests/tsc-references/controlFlowGenericTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowGenericTypes.1.normal.js @@ -1,5 +1,5 @@ //// [controlFlowGenericTypes.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(x, y, z) { if (x) { x; diff --git a/crates/swc/tests/tsc-references/controlFlowGenericTypes.2.minified.js b/crates/swc/tests/tsc-references/controlFlowGenericTypes.2.minified.js index c4f22eea29a0..7289fb29be09 100644 --- a/crates/swc/tests/tsc-references/controlFlowGenericTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowGenericTypes.2.minified.js @@ -1,5 +1,5 @@ //// [controlFlowGenericTypes.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export function bounceAndTakeIfA(value) { return "A" === value && takeA(value), value; } diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.1.normal.js b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.1.normal.js index d126d93d5f78..df78a1aefc6d 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.1.normal.js @@ -1,5 +1,5 @@ //// [controlFlowInstanceOfGuardPrimitives.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function distinguish(thing) { if (_instanceof(thing, Object)) { console.log("Aha!! It's a Date in " + thing.getFullYear()); diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.2.minified.js b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.2.minified.js index 8ad701ff3a16..91bf6f0c6894 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives.2.minified.js @@ -1,5 +1,5 @@ //// [controlFlowInstanceOfGuardPrimitives.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function distinguish(thing) { _instanceof(thing, Object) ? console.log("Aha!! It's a Date in " + thing.getFullYear()) : "string" == typeof thing ? console.log("Aha!! It's a string of length " + thing.length) : console.log("Aha!! It's the number " + thing.toPrecision(3)); } diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.1.normal.js b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.1.normal.js index a940ac15630f..16993cb411ee 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.1.normal.js @@ -1,6 +1,6 @@ //// [controlFlowInstanceofExtendsFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; Function.prototype.now = function() { return "now"; }; diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.2.minified.js b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.2.minified.js index 6fde636ceb8d..664ee9cb5cfa 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction.2.minified.js @@ -1,6 +1,6 @@ //// [controlFlowInstanceofExtendsFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; Function.prototype.now = function() { return "now"; }; diff --git a/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.1.normal.js b/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.1.normal.js index 53e269d2e33d..ac685ae05222 100644 --- a/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.1.normal.js @@ -1,6 +1,6 @@ //// [controlFlowIterationErrorsAsync.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var cond; function len(s) { return _len.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.2.minified.js b/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.2.minified.js index 41e55226cd44..ea78ecf0fa96 100644 --- a/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowIterationErrorsAsync.2.minified.js @@ -1,3 +1,3 @@ //// [controlFlowIterationErrorsAsync.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/controlFlowOptionalChain.1.normal.js b/crates/swc/tests/tsc-references/controlFlowOptionalChain.1.normal.js index 57c7d1ea0fc3..313ffc30bc77 100644 --- a/crates/swc/tests/tsc-references/controlFlowOptionalChain.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowOptionalChain.1.normal.js @@ -1,7 +1,7 @@ //// [controlFlowOptionalChain.ts] // assignments in shortcutting chain -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var _o4_x, _o4_x1, _o5_x_y_z, _o5_x, _o5_x1, _o5_x2, _o5_x_y_z1, _o5_x3, _arr_i; var a; o === null || o === void 0 ? void 0 : o[a = 1]; diff --git a/crates/swc/tests/tsc-references/controlFlowOptionalChain.2.minified.js b/crates/swc/tests/tsc-references/controlFlowOptionalChain.2.minified.js index 84794b0e2f86..54e1e10a5207 100644 --- a/crates/swc/tests/tsc-references/controlFlowOptionalChain.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowOptionalChain.2.minified.js @@ -1,6 +1,6 @@ //// [controlFlowOptionalChain.ts] -import "@swc/helpers/src/_instanceof.mjs"; -import "@swc/helpers/src/_type_of.mjs"; +import "@swc/helpers/_/_instanceof"; +import "@swc/helpers/_/_type_of"; function someFunction(someOptionalObject) { (null == someOptionalObject ? void 0 : someOptionalObject.someProperty) !== lastSomeProperty && (console.log(someOptionalObject), console.log(someOptionalObject.someProperty), lastSomeProperty = null == someOptionalObject ? void 0 : someOptionalObject.someProperty); } diff --git a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.1.normal.js b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.1.normal.js index 09a2046ac882..66dab14c73c9 100644 --- a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.1.normal.js @@ -1,9 +1,9 @@ //// [controlFlowSuperPropertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.2.minified.js b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.2.minified.js index 991035d0d10b..e4d7cebf5436 100644 --- a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess.2.minified.js @@ -1,6 +1,6 @@ //// [controlFlowSuperPropertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.1.normal.js index 32511ec8f7ef..4406730a28a0 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.1.normal.js @@ -2,8 +2,8 @@ //// [declaration.d.ts] //// [0.tsx] /// -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; import * as cx from 'classnames'; import * as React from "react"; let buttonProps; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.2.minified.js index 2d630b2e21d7..0cf7fe55764f 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4.2.minified.js @@ -2,8 +2,8 @@ //// [declaration.d.ts] //// [0.tsx] let buttonProps; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; import * as cx from 'classnames'; import * as React from "react"; _object_spread_props(_object_spread({}, buttonProps), { diff --git a/crates/swc/tests/tsc-references/declarationEmitReadonly.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitReadonly.1.normal.js index 225dc505d2a4..0a67e31ca0a9 100644 --- a/crates/swc/tests/tsc-references/declarationEmitReadonly.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitReadonly.1.normal.js @@ -1,5 +1,5 @@ //// [declarationEmitReadonly.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/declarationEmitReadonly.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitReadonly.2.minified.js index 61761e31d630..5cad78c379c5 100644 --- a/crates/swc/tests/tsc-references/declarationEmitReadonly.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitReadonly.2.minified.js @@ -1,2 +1,2 @@ //// [declarationEmitReadonly.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.1.normal.js index e3e3f45c95dc..289ef7816d08 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.1.normal.js @@ -17,27 +17,27 @@ _export(exports, { return D; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _instanceof = require("@swc/helpers/lib/_instanceof.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _instanceof = require("@swc/helpers/_/_instanceof"); +var _create_super = require("@swc/helpers/_/_create_super"); var C = /*#__PURE__*/ function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } var _proto = C.prototype; _proto.m = function m() { - return _instanceof(this, D); + return _instanceof._(this, D); }; return C; }(); var D = /*#__PURE__*/ function(C) { "use strict"; - _inherits(D, C); - var _super = _create_super(D); + _inherits._(D, C); + var _super = _create_super._(D); function D() { - _class_call_check(this, D); + _class_call_check._(this, D); return _super.apply(this, arguments); } return D; diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.2.minified.js index 9568573f46f5..8d6bf27af690 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01.2.minified.js @@ -15,20 +15,20 @@ Object.defineProperty(exports, "__esModule", { return D; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _inherits = require("@swc/helpers/lib/_inherits.js").default, _instanceof = require("@swc/helpers/lib/_instanceof.js").default, _create_super = require("@swc/helpers/lib/_create_super.js").default, C = function() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _instanceof = require("@swc/helpers/_/_instanceof"), _create_super = require("@swc/helpers/_/_create_super"), C = function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } return C.prototype.m = function() { - return _instanceof(this, D); + return _instanceof._(this, D); }, C; }(), D = function(C) { "use strict"; - _inherits(D, C); - var _super = _create_super(D); + _inherits._(D, C); + var _super = _create_super._(D); function D() { - return _class_call_check(this, D), _super.apply(this, arguments); + return _class_call_check._(this, D), _super.apply(this, arguments); } return D; }(C); diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.1.normal.js index 65623c45f079..b19ba21e53fc 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.1.normal.js @@ -9,27 +9,27 @@ Object.defineProperty(exports, "C", { return C; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _instanceof = require("@swc/helpers/lib/_instanceof.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _instanceof = require("@swc/helpers/_/_instanceof"); +var _create_super = require("@swc/helpers/_/_create_super"); var C = /*#__PURE__*/ function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } var _proto = C.prototype; _proto.m = function m() { - return _instanceof(this, D); + return _instanceof._(this, D); }; return C; }(); var D = /*#__PURE__*/ function(C) { "use strict"; - _inherits(D, C); - var _super = _create_super(D); + _inherits._(D, C); + var _super = _create_super._(D); function D() { - _class_call_check(this, D); + _class_call_check._(this, D); return _super.apply(this, arguments); } return D; diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.2.minified.js index 2500c312376d..e7bfc36dedfa 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01.2.minified.js @@ -8,20 +8,20 @@ Object.defineProperty(exports, "__esModule", { return C; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _inherits = require("@swc/helpers/lib/_inherits.js").default, _instanceof = require("@swc/helpers/lib/_instanceof.js").default, _create_super = require("@swc/helpers/lib/_create_super.js").default, C = function() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _instanceof = require("@swc/helpers/_/_instanceof"), _create_super = require("@swc/helpers/_/_create_super"), C = function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } return C.prototype.m = function() { - return _instanceof(this, D); + return _instanceof._(this, D); }, C; }(), D = function(C) { "use strict"; - _inherits(D, C); - var _super = _create_super(D); + _inherits._(D, C); + var _super = _create_super._(D); function D() { - return _class_call_check(this, D), _super.apply(this, arguments); + return _class_call_check._(this, D), _super.apply(this, arguments); } return D; }(C); diff --git a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js index 5ea4e94eb0cb..144eac03eb34 100644 --- a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.1.normal.js @@ -1,5 +1,5 @@ //// [declarationEmitWorkWithInlineComments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function Foo(isInternal1, isInternal2, isInternal3, isInternal4, isInternal5, isInternal6 /* trailing */ , isInternal7, notInternal1, notInternal2, notInternal3) { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.2.minified.js index 1a6552f1cf83..b60087159625 100644 --- a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments.2.minified.js @@ -1,5 +1,5 @@ //// [declarationEmitWorkWithInlineComments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function Foo(isInternal1, isInternal2, isInternal3, isInternal4, isInternal5, isInternal6, isInternal7, notInternal1, notInternal2, notInternal3) { "use strict"; _class_call_check(this, Foo), this.isInternal1 = isInternal1, this.isInternal2 = isInternal2, this.isInternal3 = isInternal3, this.isInternal4 = isInternal4, this.isInternal5 = isInternal5, this.isInternal6 = isInternal6, this.isInternal7 = isInternal7, this.notInternal1 = notInternal1, this.notInternal2 = notInternal2, this.notInternal3 = notInternal3; diff --git a/crates/swc/tests/tsc-references/declarationFiles.1.normal.js b/crates/swc/tests/tsc-references/declarationFiles.1.normal.js index 8a5acb06f919..5b8fcf8f1b18 100644 --- a/crates/swc/tests/tsc-references/declarationFiles.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationFiles.1.normal.js @@ -1,5 +1,5 @@ //// [declarationFiles.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C1 = /*#__PURE__*/ function() { "use strict"; function C1(x) { diff --git a/crates/swc/tests/tsc-references/declarationFiles.2.minified.js b/crates/swc/tests/tsc-references/declarationFiles.2.minified.js index 9f5f74dced61..39e3e9ff6330 100644 --- a/crates/swc/tests/tsc-references/declarationFiles.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationFiles.2.minified.js @@ -1,2 +1,2 @@ //// [declarationFiles.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/declarationsAndAssignments.1.normal.js b/crates/swc/tests/tsc-references/declarationsAndAssignments.1.normal.js index 89893a9bc525..22ef702580ef 100644 --- a/crates/swc/tests/tsc-references/declarationsAndAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationsAndAssignments.1.normal.js @@ -1,7 +1,7 @@ //// [declarationsAndAssignments.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; function f0() { var _ref = [ 1, diff --git a/crates/swc/tests/tsc-references/declarationsAndAssignments.2.minified.js b/crates/swc/tests/tsc-references/declarationsAndAssignments.2.minified.js index 83ee066b9927..f3b66f7d89ed 100644 --- a/crates/swc/tests/tsc-references/declarationsAndAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationsAndAssignments.2.minified.js @@ -1,8 +1,8 @@ //// [declarationsAndAssignments.ts] var M; -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import "@swc/helpers/src/_to_array.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import "@swc/helpers/_/_to_array"; function f14(param) { var _param = _sliced_to_array(param, 2), _param_ = (_param[0], _sliced_to_array(_param[1], 2)), _param__ = (_param_[0], _param_[1]); _param__.x, _param__.y; diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.1.normal.js b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.1.normal.js index 10e145315473..dbf1237cfc92 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.1.normal.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.1.normal.js @@ -1,6 +1,6 @@ //// [decrementOperatorWithAnyOtherType.ts] // -- operator on any type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY; var ANY1; var ANY2 = [ diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.2.minified.js b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.2.minified.js index 10adafb9eb5d..5fbb00d8d786 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.2.minified.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType.2.minified.js @@ -1,5 +1,5 @@ //// [decrementOperatorWithAnyOtherType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY, ANY1, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.1.normal.js index 6ae7c8d5e4c9..68a927706303 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [decrementOperatorWithNumberType.ts] // -- operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.2.minified.js index ab5c12af02a1..13ce57612dc9 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [decrementOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.1.normal.js index bd4497a3b4ef..51c14e8e7f59 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.1.normal.js @@ -21,23 +21,21 @@ }); //// [b.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_default.mjs"), require("./a")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_default"), require("./a")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_default", "./a" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.bTs = {}, global.asyncToGeneratorMjs, global.interopRequireDefaultMjs, global.a); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.bTs = {}, global.asyncToGenerator, global.interopRequireDefault, global.a); })(this, function(exports, _async_to_generator, _interop_require_default, _a) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_default = _interop_require_default.default; - _a = /*#__PURE__*/ _interop_require_default(_a); - _async_to_generator(function*() { + _a = /*#__PURE__*/ _interop_require_default._(_a); + _async_to_generator._(function*() { const value = yield _a.default; })(); }); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.2.minified.js index 87444dc6d4dc..b3cecb52d3a3 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01.2.minified.js @@ -17,17 +17,17 @@ }); //// [b.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_default.mjs"), require("./a")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_default"), require("./a")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_default", "./a" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.bTs = {}, global.asyncToGeneratorMjs, global.interopRequireDefaultMjs, global.a); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.bTs = {}, global.asyncToGenerator, global.interopRequireDefault, global.a); }(this, function(exports1, _async_to_generator, _interop_require_default, _a) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _a = (_interop_require_default = _interop_require_default.default)(_a), _async_to_generator(function*() { + }), _a = _interop_require_default._(_a), _async_to_generator._(function*() { yield _a.default; })(); }); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.1.normal.js index 28d707ddbb36..b45deffa4b3b 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.1.normal.js @@ -16,9 +16,9 @@ const _default = x; Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _a = /*#__PURE__*/ _interop_require_default(require("./a")); -_async_to_generator(function*() { +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _a = /*#__PURE__*/ _interop_require_default._(require("./a")); +_async_to_generator._(function*() { const value = yield _a.default; })(); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.2.minified.js index a87a1209b9be..92b8fa0237da 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02.2.minified.js @@ -14,7 +14,7 @@ const x = new Promise((resolve, reject)=>{ Object.defineProperty(exports, "__esModule", { value: !0 }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default, _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default, _a = _interop_require_default(require("./a")); -_async_to_generator(function*() { +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"), _interop_require_default = require("@swc/helpers/_/_interop_require_default"), _a = _interop_require_default._(require("./a")); +_async_to_generator._(function*() { yield _a.default; })(); diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.1.normal.js index 059bd74d2823..d48bcb19bb1e 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.1.normal.js @@ -32,8 +32,8 @@ var Decl; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("m1")); (0, _m1.default)(); var x; var y; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.2.minified.js index 2bc0bffb524d..a93840016a10 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge01.2.minified.js @@ -28,5 +28,5 @@ Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("m1")); (0, _m1.default)(), _m1.default.x, _m1.default.y; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.1.normal.js index 7b2d3b1718c0..4f1fc573d25f 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.1.normal.js @@ -11,18 +11,18 @@ Object.defineProperty(exports, "default", { return Decl; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Decl = function Decl() { "use strict"; - _class_call_check(this, Decl); + _class_call_check._(this, Decl); }; //// [m2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("m1")); (0, _m1.default)(); var x; var y; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.2.minified.js index 5215b56d549c..083a70e5f379 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02.2.minified.js @@ -10,16 +10,16 @@ Object.defineProperty(exports, "__esModule", { return Decl; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, Decl = function Decl() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), Decl = function Decl() { "use strict"; - _class_call_check(this, Decl); + _class_call_check._(this, Decl); }; //// [m2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("m1")); (0, _m1.default)(); var z = new _m1.default(); z.p1, z.p2; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.1.normal.js index 0d16bdfdf3a3..a0357c351a71 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.1.normal.js @@ -11,18 +11,18 @@ Object.defineProperty(exports, "default", { return Decl; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Decl = function Decl() { "use strict"; - _class_call_check(this, Decl); + _class_call_check._(this, Decl); }; //// [m2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("m1")); (0, _m1.default)(); var x; var y; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.2.minified.js index ccfe52312011..decee859b271 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03.2.minified.js @@ -10,16 +10,16 @@ Object.defineProperty(exports, "__esModule", { return Decl; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, Decl = function Decl() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), Decl = function Decl() { "use strict"; - _class_call_check(this, Decl); + _class_call_check._(this, Decl); }; //// [m2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("m1")); (0, _m1.default)(); var z = new _m1.default(); z.p1, z.p2; diff --git a/crates/swc/tests/tsc-references/defineProperty(target=es5).1.normal.js b/crates/swc/tests/tsc-references/defineProperty(target=es5).1.normal.js index 2a73509436f2..f73a9a0d7c5f 100644 --- a/crates/swc/tests/tsc-references/defineProperty(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/defineProperty(target=es5).1.normal.js @@ -1,10 +1,10 @@ //// [defineProperty.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x = "p"; var _x = x; var _x1 = _x; diff --git a/crates/swc/tests/tsc-references/defineProperty(target=es5).2.minified.js b/crates/swc/tests/tsc-references/defineProperty(target=es5).2.minified.js index 9da57fd35109..b5ab34726ce2 100644 --- a/crates/swc/tests/tsc-references/defineProperty(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/defineProperty(target=es5).2.minified.js @@ -1,7 +1,7 @@ //// [defineProperty.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/definePropertyOutputES3.1.normal.js b/crates/swc/tests/tsc-references/definePropertyOutputES3.1.normal.js index be4263542069..2ed833e26667 100644 --- a/crates/swc/tests/tsc-references/definePropertyOutputES3.1.normal.js +++ b/crates/swc/tests/tsc-references/definePropertyOutputES3.1.normal.js @@ -1,6 +1,6 @@ //// [definePropertyOutputES3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/definePropertyOutputES3.2.minified.js b/crates/swc/tests/tsc-references/definePropertyOutputES3.2.minified.js index 0e4e1abf6b2a..7974170f1b5b 100644 --- a/crates/swc/tests/tsc-references/definePropertyOutputES3.2.minified.js +++ b/crates/swc/tests/tsc-references/definePropertyOutputES3.2.minified.js @@ -1,3 +1,3 @@ //// [definePropertyOutputES3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/dependentDestructuredVariables.1.normal.js b/crates/swc/tests/tsc-references/dependentDestructuredVariables.1.normal.js index 3ff6b1b5da07..269d7f98008c 100644 --- a/crates/swc/tests/tsc-references/dependentDestructuredVariables.1.normal.js +++ b/crates/swc/tests/tsc-references/dependentDestructuredVariables.1.normal.js @@ -1,6 +1,6 @@ //// [dependentDestructuredVariables.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f10({ kind , payload }) { if (kind === 'A') { payload.toFixed(); diff --git a/crates/swc/tests/tsc-references/dependentDestructuredVariables.2.minified.js b/crates/swc/tests/tsc-references/dependentDestructuredVariables.2.minified.js index ab3208e1b9d2..40988f5b1b02 100644 --- a/crates/swc/tests/tsc-references/dependentDestructuredVariables.2.minified.js +++ b/crates/swc/tests/tsc-references/dependentDestructuredVariables.2.minified.js @@ -1,6 +1,6 @@ //// [dependentDestructuredVariables.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_wrap_async_generator"; let { value , done } = it.next(); f50((kind, data)=>{ 'A' === kind && data.toFixed(), 'B' === kind && data.toUpperCase(); diff --git a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.1.normal.js b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.1.normal.js index e9f563292c21..1f97615200b6 100644 --- a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.1.normal.js @@ -1,9 +1,9 @@ //// [derivedClassConstructorWithoutSuperCall.ts] // derived class constructors must contain a super call -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.2.minified.js b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.2.minified.js index 3cd019ba49c6..5ccb4ad4b64f 100644 --- a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassConstructorWithoutSuperCall.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.1.normal.js b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.1.normal.js index 70cf4ee3b930..3e97094f434f 100644 --- a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassFunctionOverridesBaseClassAccessor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.2.minified.js b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.2.minified.js index dac9bffba218..d462f60e94a4 100644 --- a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassFunctionOverridesBaseClassAccessor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.1.normal.js b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.1.normal.js index 8125ed00a710..0985b45a14dc 100644 --- a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassIncludesInheritedMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base(x) { diff --git a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.2.minified.js b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.2.minified.js index 77fac8680cfb..822fb1a437fe 100644 --- a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers.2.minified.js @@ -1,8 +1,8 @@ //// [derivedClassIncludesInheritedMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var d2, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.1.normal.js index 186ec85786fe..e15f0eec8268 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassOverridesIndexersWithAssignmentCompatibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.2.minified.js index c64feaab6684..2d041b48d1ff 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility.2.minified.js @@ -1,4 +1,4 @@ //// [derivedClassOverridesIndexersWithAssignmentCompatibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.1.normal.js index c0365f400b89..ac4eed205a57 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassOverridesPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.2.minified.js index f9366d00073b..4064e60bea3b 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates.2.minified.js @@ -1,4 +1,4 @@ //// [derivedClassOverridesPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.1.normal.js index fec783309fdf..a92ab674f27a 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesProtectedMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; var y; var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.2.minified.js index 85c2c0e76328..ec1005b0faa0 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassOverridesProtectedMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.1.normal.js index 66184779dd3e..c6a0d0d32395 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesProtectedMembers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; var y; var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.2.minified.js index fd7cf6b8b6a2..3a79382c7d26 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2.2.minified.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesProtectedMembers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x, y, d2, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.1.normal.js index 308f4437dbd6..c993019f1771 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesProtectedMembers3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; var y; var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.2.minified.js index 4f1b8d261b37..66326bc100d8 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassOverridesProtectedMembers3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.1.normal.js index 27ca8ea65bf9..ee9beec42afc 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassOverridesProtectedMembers4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; var y; var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.2.minified.js index 586729943544..92e58588bbf0 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4.2.minified.js @@ -1,4 +1,4 @@ //// [derivedClassOverridesProtectedMembers4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.1.normal.js index 03e6c69a6dcb..4da6fbd553ab 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesPublicMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x; var y; var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.2.minified.js index 0302df5488ea..3444c1ad3af9 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers.2.minified.js @@ -1,8 +1,8 @@ //// [derivedClassOverridesPublicMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x, y, d2, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.1.normal.js index acf50109e05c..0b08f48fd25b 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassOverridesWithoutSubtype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.2.minified.js index 6ee8828db2d6..7e1a81d00c6a 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype.2.minified.js @@ -1,4 +1,4 @@ //// [derivedClassOverridesWithoutSubtype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity.1.normal.js index f6f922a26c95..53ba96124bff 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassTransitivity.ts] // subclassing is not transitive when you can remove required parameters and add optional parameters -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity.2.minified.js index ca3cada037b9..828acc321112 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity.2.minified.js @@ -1,6 +1,6 @@ //// [derivedClassTransitivity.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo(1), e.foo(""); diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity2.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity2.1.normal.js index 0ac4967790c1..3f74fa339cde 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity2.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity2.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassTransitivity2.ts] // subclassing is not transitive when you can remove required parameters and add optional parameters -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity2.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity2.2.minified.js index 2fe870e20a4d..6faebf923d57 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity2.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity2.2.minified.js @@ -1,6 +1,6 @@ //// [derivedClassTransitivity2.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo(1, 1), e.foo(1, ""); diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity3.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity3.1.normal.js index 4c1787a4ceed..c820a77a377c 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity3.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity3.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassTransitivity3.ts] // subclassing is not transitive when you can remove required parameters and add optional parameters -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity3.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity3.2.minified.js index 17b6230389e1..515b2dab223b 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity3.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity3.2.minified.js @@ -1,6 +1,6 @@ //// [derivedClassTransitivity3.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo("", ""), e.foo("", 1); diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity4.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity4.1.normal.js index 42e09180abe9..5a88abb450d0 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity4.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity4.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassTransitivity4.ts] // subclassing is not transitive when you can remove required parameters and add optional parameters on protected members -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity4.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity4.2.minified.js index 4c19da164ae0..8eb37982a69d 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity4.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity4.2.minified.js @@ -1,6 +1,6 @@ //// [derivedClassTransitivity4.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo(1), e.foo(""); diff --git a/crates/swc/tests/tsc-references/derivedClassWithAny.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithAny.1.normal.js index 3981562065ae..4f78713c47e5 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithAny.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithAny.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithAny.2.minified.js index e8bbd5edcbbf..2683c58de459 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithAny.2.minified.js @@ -1,7 +1,7 @@ //// [derivedClassWithAny.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo(); diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.1.normal.js index 62caee920c00..a718d819bee2 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.2.minified.js index 0a551ada3dd7..4892b3605db0 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassWithPrivateInstanceShadowingProtectedInstance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.1.normal.js index 8c64f328a3a5..1ed5f656cc05 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateInstanceShadowingPublicInstance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.2.minified.js index 1dbec03bad7e..2af4c52028bd 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance.2.minified.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateInstanceShadowingPublicInstance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.1.normal.js index 7e3ea73e46e5..d46aa13cf9a0 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateStaticShadowingProtectedStatic.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.2.minified.js index c2d28b71071d..724413beea93 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic.2.minified.js @@ -1,5 +1,5 @@ //// [derivedClassWithPrivateStaticShadowingProtectedStatic.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.1.normal.js index edcf12a9d3f0..78b647fae829 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateStaticShadowingPublicStatic.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.2.minified.js index a2f0e72c9e67..fd1f2cf2b5a5 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic.2.minified.js @@ -1,8 +1,8 @@ //// [derivedClassWithPrivateStaticShadowingPublicStatic.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.1.normal.js index aacba6696ddb..35bf86257f75 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassWithoutExplicitConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.2.minified.js index daade2cfabf5..6c56a033be8e 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor.2.minified.js @@ -1,7 +1,7 @@ //// [derivedClassWithoutExplicitConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.1.normal.js index 26e76599b41b..80e39255b00e 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.1.normal.js @@ -1,7 +1,7 @@ //// [derivedClassWithoutExplicitConstructor2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.2.minified.js index 286b8bf1cc14..e5f8b1979d47 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2.2.minified.js @@ -1,7 +1,7 @@ //// [derivedClassWithoutExplicitConstructor2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.1.normal.js index b1f45bae0d08..01e8138b0081 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.1.normal.js @@ -1,8 +1,8 @@ //// [derivedClassWithoutExplicitConstructor3.ts] // automatic constructors with a class hieararchy of depth > 2 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.2.minified.js index 3aa244b73d4b..3cadfa90bb6b 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3.2.minified.js @@ -1,7 +1,7 @@ //// [derivedClassWithoutExplicitConstructor3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base), this.a = 1, this.a = x; diff --git a/crates/swc/tests/tsc-references/derivedGenericClassWithAny.1.normal.js b/crates/swc/tests/tsc-references/derivedGenericClassWithAny.1.normal.js index 6f649283c0fb..b0d9260ba84a 100644 --- a/crates/swc/tests/tsc-references/derivedGenericClassWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedGenericClassWithAny.1.normal.js @@ -1,8 +1,8 @@ //// [derivedGenericClassWithAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedGenericClassWithAny.2.minified.js b/crates/swc/tests/tsc-references/derivedGenericClassWithAny.2.minified.js index bcdbe91891e9..719b182dc79b 100644 --- a/crates/swc/tests/tsc-references/derivedGenericClassWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedGenericClassWithAny.2.minified.js @@ -1,7 +1,7 @@ //// [derivedGenericClassWithAny.ts] var e; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; e.foo(); diff --git a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.1.normal.js b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.1.normal.js index f8b1b6edab94..296c1d08f476 100644 --- a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.1.normal.js @@ -1,9 +1,9 @@ //// [derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.2.minified.js b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.2.minified.js index e801e7e93a05..37708e8a9196 100644 --- a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.2.minified.js @@ -1,6 +1,6 @@ //// [derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.1.normal.js b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.1.normal.js index 144af0094642..706095240c94 100644 --- a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.1.normal.js @@ -1,7 +1,7 @@ //// [derivedTypeDoesNotRequireExtendsClause.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.2.minified.js b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.2.minified.js index 47950fe796dd..fae98c16d155 100644 --- a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause.2.minified.js @@ -1,4 +1,4 @@ //// [derivedTypeDoesNotRequireExtendsClause.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.1.normal.js index 1d7ba5b507e2..a39c2cc368a2 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.1.normal.js @@ -18,9 +18,9 @@ // An expression of type S is considered assignable to an assignment target V if one of the following is true // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _undefined = _sliced_to_array(undefined, 2), a0 = _undefined[0], a1 = _undefined[1]; var _undefined1 = _sliced_to_array(undefined, 2), tmp = _undefined1[0], a2 = tmp === void 0 ? false : tmp, tmp1 = _undefined1[1], a3 = tmp1 === void 0 ? 1 : tmp1; // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.2.minified.js index 81babdc056b9..ae95e5b5e79c 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5.2.minified.js @@ -1,7 +1,7 @@ //// [destructuringArrayBindingPatternAndAssignment1ES5.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _undefined = _sliced_to_array(void 0, 2); _undefined[0], _undefined[1]; var _undefined1 = _sliced_to_array(void 0, 2); diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.1.normal.js index 2970a2895323..1db628053533 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.1.normal.js @@ -18,9 +18,9 @@ // An expression of type S is considered assignable to an assignment target V if one of the following is true // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _undefined = _sliced_to_array(undefined, 2), a0 = _undefined[0], a1 = _undefined[1]; var _undefined1 = _sliced_to_array(undefined, 2), tmp = _undefined1[0], a2 = tmp === void 0 ? false : tmp, tmp1 = _undefined1[1], a3 = tmp1 === void 0 ? 1 : tmp1; // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.2.minified.js index e23698457eb9..1db55997df6d 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable.2.minified.js @@ -1,7 +1,7 @@ //// [destructuringArrayBindingPatternAndAssignment1ES5iterable.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _undefined = _sliced_to_array(void 0, 2); _undefined[0], _undefined[1]; var _undefined1 = _sliced_to_array(void 0, 2); diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.1.normal.js index 4f52d288572c..824e5a8c710f 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.1.normal.js @@ -1,8 +1,8 @@ //// [destructuringArrayBindingPatternAndAssignment2.ts] // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref // Error = [], _ref_ = _sliced_to_array(_ref[0], 1), a0 = _ref_[0], _ref_1 = _sliced_to_array(_ref[1], 1), _ref__ = _sliced_to_array(_ref_1[0], 1), a1 = _ref__[0]; var _undefined // Error diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.2.minified.js index d858d0646650..645f448a283c 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2.2.minified.js @@ -1,6 +1,6 @@ //// [destructuringArrayBindingPatternAndAssignment2.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref_1 = (_sliced_to_array([][0], 1)[0], _sliced_to_array([][1], 1)); _sliced_to_array(_ref_1[0], 1)[0]; var _undefined = _sliced_to_array(void 0, 2), _undefined_1 = (_sliced_to_array(_undefined[0], 1)[0], _sliced_to_array(_undefined[1], 1)); diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.1.normal.js index 19a355c89ca2..113b4c027fb8 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringArrayBindingPatternAndAssignment3.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _ref = [ 1 ], a = _ref[0], tmp = _ref[1], b = tmp === void 0 ? a : tmp; // ok diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.2.minified.js index 50916538401a..5dbdaae12a37 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3.2.minified.js @@ -1,5 +1,5 @@ //// [destructuringArrayBindingPatternAndAssignment3.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var tmp2 = [ 1 ][2], e = void 0 === tmp2 ? e : tmp2; diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.1.normal.js index 0ba48408c3ea..fc3b33ff057b 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.1.normal.js @@ -1,4 +1,4 @@ //// [destructuringArrayBindingPatternAndAssignment4.ts] // #35497 -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _data = _sliced_to_array(data, 1), value = _data[0]; // Error diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.2.minified.js index 82939d7acc9b..0825955fa688 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4.2.minified.js @@ -1,3 +1,3 @@ //// [destructuringArrayBindingPatternAndAssignment4.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _sliced_to_array(data, 1)[0]; diff --git a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.1.normal.js b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.1.normal.js index 47a3dfa12483..7908f95b312f 100644 --- a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.1.normal.js @@ -1,6 +1,6 @@ //// [destructuringAssignabilityCheck.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _ref = _sliced_to_array({}, 0); // should be error var ref = _object_destructuring_empty(undefined); // error correctly (function(param) { diff --git a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.2.minified.js b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.2.minified.js index c0bbe8d3d20d..683d896343ed 100644 --- a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck.2.minified.js @@ -1,4 +1,4 @@ //// [destructuringAssignabilityCheck.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _sliced_to_array({}, 0), _object_destructuring_empty(void 0), _sliced_to_array({}, 0), _object_destructuring_empty(void 0), _object_destructuring_empty(1), _sliced_to_array({}, 0); diff --git a/crates/swc/tests/tsc-references/destructuringCatch.1.normal.js b/crates/swc/tests/tsc-references/destructuringCatch.1.normal.js index 1ece62c2b59c..b03cb6d7fc32 100644 --- a/crates/swc/tests/tsc-references/destructuringCatch.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringCatch.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringCatch.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; try { throw [ 0, diff --git a/crates/swc/tests/tsc-references/destructuringCatch.2.minified.js b/crates/swc/tests/tsc-references/destructuringCatch.2.minified.js index dfc1e36ec3a8..d68a316368a2 100644 --- a/crates/swc/tests/tsc-references/destructuringCatch.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringCatch.2.minified.js @@ -1,5 +1,5 @@ //// [destructuringCatch.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; try { throw [ 0, diff --git a/crates/swc/tests/tsc-references/destructuringControlFlow.1.normal.js b/crates/swc/tests/tsc-references/destructuringControlFlow.1.normal.js index c0371761b784..8e5eb031c00e 100644 --- a/crates/swc/tests/tsc-references/destructuringControlFlow.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringControlFlow.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringControlFlow.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f1(obj) { if (obj.a) { obj = {}; diff --git a/crates/swc/tests/tsc-references/destructuringControlFlow.2.minified.js b/crates/swc/tests/tsc-references/destructuringControlFlow.2.minified.js index 957e0b90d2e2..320c4695dc8c 100644 --- a/crates/swc/tests/tsc-references/destructuringControlFlow.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringControlFlow.2.minified.js @@ -1,5 +1,5 @@ //// [destructuringControlFlow.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; [ "foo" ][1].toUpperCase(); diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).1.normal.js index 1af7d5d8cc21..6a9d042590e5 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).1.normal.js @@ -1,9 +1,9 @@ //// [destructuringEvaluationOrder.ts] // https://github.com/microsoft/TypeScript/issues/39205 -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; let trace = []; let order = (n)=>trace.push(n); // order(0) should evaluate before order(1) because the first element is undefined diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).2.minified.js index b33f666cc343..aac6924c7913 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es2015).2.minified.js @@ -1,8 +1,8 @@ //// [destructuringEvaluationOrder.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; let trace = [], order = (n)=>trace.push(n), [{ [order(1)]: x } = order(0)] = [], [{ [order(1)]: y } = order(0)] = [ {} ], _ref = {}, _order = order(0), _order1 = order(2), { [_order]: { [_order1]: z } = order(1) } = _ref; diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).1.normal.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).1.normal.js index 4184b23784f0..888e86ee4b00 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).1.normal.js @@ -1,10 +1,10 @@ //// [destructuringEvaluationOrder.ts] // https://github.com/microsoft/TypeScript/issues/39205 -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; var trace = []; var order = function(n) { return trace.push(n); diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).2.minified.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).2.minified.js index 8e9c48681af2..bb915583548d 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder(target=es5).2.minified.js @@ -1,9 +1,9 @@ //// [destructuringEvaluationOrder.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; var trace = [], order = function(n) { return trace.push(n); }, tmp = [][0]; diff --git a/crates/swc/tests/tsc-references/destructuringInFunctionType.1.normal.js b/crates/swc/tests/tsc-references/destructuringInFunctionType.1.normal.js index 2437ecf4974b..08fc73f373bd 100644 --- a/crates/swc/tests/tsc-references/destructuringInFunctionType.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringInFunctionType.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringInFunctionType.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var v1 = function(param) { var _param = _sliced_to_array(param, 3), a = _param[0], b = _param[1], c = _param[2]; return "hello"; diff --git a/crates/swc/tests/tsc-references/destructuringInFunctionType.2.minified.js b/crates/swc/tests/tsc-references/destructuringInFunctionType.2.minified.js index 5404ae42f5e9..49ce37beebcd 100644 --- a/crates/swc/tests/tsc-references/destructuringInFunctionType.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringInFunctionType.2.minified.js @@ -1,2 +1,2 @@ //// [destructuringInFunctionType.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).1.normal.js index e9bb22851321..98e4fad52622 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectAssignmentPatternWithNestedSpread.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; let a, b, c = { x: { a: 1, diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).2.minified.js index d746c40ff741..d46822e5e442 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es2015).2.minified.js @@ -1,7 +1,7 @@ //// [destructuringObjectAssignmentPatternWithNestedSpread.ts] var _c; let a, d; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; _object_without_properties((_c = { x: { a: 1, diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).1.normal.js index d73d5c1eac40..d44efb7ac693 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectAssignmentPatternWithNestedSpread.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; var a, b, c = { x: { a: 1, diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).2.minified.js index 2ce8f71da4ef..9cbf423ea6fd 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread(target=es5).2.minified.js @@ -1,6 +1,6 @@ //// [destructuringObjectAssignmentPatternWithNestedSpread.ts] var _c, ref1, d; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; _object_without_properties((_c = { x: { a: 1, diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.1.normal.js index ca69af56add8..2e5f760a408b 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment5.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function a() { var x; var y; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.2.minified.js index 566bca28c7e1..5ccdb8acd666 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5.2.minified.js @@ -1,2 +1,2 @@ //// [destructuringObjectBindingPatternAndAssignment5.ts] -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).1.normal.js index 2807d624635f..a0bd3409cf4a 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment6.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var a = "a"; var b = "b"; var _ref = function() { diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).2.minified.js index 4fc3d251c480..8ec6f94afb7b 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment6.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _ref = function() { var _obj; return _define_property(_obj = {}, "a", 1), _define_property(_obj, "b", 1), _obj; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).1.normal.js index 34469e968762..b064661d9d6e 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment7.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var K; (function(K) { K["a"] = "a"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).2.minified.js index d9044c828483..b45c26dad9bb 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment7.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; !function(K) { K.a = "a", K.b = "b"; }(K || (K = {})); diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).1.normal.js index a5aad5371470..495b077a770f 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment8.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var K = { a: "a", b: "b" diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).2.minified.js index b95bc31e17ee..7409f51d0034 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [destructuringObjectBindingPatternAndAssignment8.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var K = { a: "a", b: "b" diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.1.normal.js index 073b204f8c57..660260b13983 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.1.normal.js @@ -3,9 +3,9 @@ // A type annotation for a rest parameter must denote an array type. // RestParameter: // ... Identifier TypeAnnotation(opt) -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function a1() { for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){ x[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.2.minified.js index 59f13d5f4714..fc863c38885f 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable.2.minified.js @@ -1,7 +1,7 @@ //// [destructuringParameterDeclaration3ES5iterable.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function a10(param) { var _param = _to_array(param), _param_ = (_param[0], _param[1], _sliced_to_array(_param[2], 1)); _sliced_to_array(_param_[0], 1)[0], _param.slice(3); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.1.normal.js index b4a0811b1e74..d5ee0ccebaf5 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.1.normal.js @@ -1,8 +1,8 @@ //// [destructuringParameterDeclaration5.ts] // Parameter Declaration with generic -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Class = function Class() { "use strict"; _class_call_check(this, Class); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.2.minified.js index bd1b395bd68d..feab63cd963a 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5.2.minified.js @@ -1,7 +1,7 @@ //// [destructuringParameterDeclaration5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Class = function Class() { "use strict"; _class_call_check(this, Class); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.1.normal.js index 2d1601439ab7..584ce2108966 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.1.normal.js @@ -1,6 +1,6 @@ //// [destructuringParameterDeclaration7ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function foo(param, param1) { var ref = _object_destructuring_empty(param), foo = param1.foo, bar = param1.bar; } diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.2.minified.js index d377cc454738..cb34d521f811 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5.2.minified.js @@ -1,3 +1,3 @@ //// [destructuringParameterDeclaration7ES5.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.1.normal.js index e7e8ab90179d..6cc181320c6d 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [destructuringParameterDeclaration7ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function foo(param, param1) { var ref = _object_destructuring_empty(param), foo = param1.foo, bar = param1.bar; } diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.2.minified.js index 11c6fc064950..6e34065ca36b 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable.2.minified.js @@ -1,3 +1,3 @@ //// [destructuringParameterDeclaration7ES5iterable.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/destructuringSpread.1.normal.js b/crates/swc/tests/tsc-references/destructuringSpread.1.normal.js index 217974f3ddca..3e0f8489ec69 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringSpread.1.normal.js @@ -1,6 +1,6 @@ //// [destructuringSpread.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var x = _object_spread_props(_object_spread({}, {}), { x: 0 }).x; diff --git a/crates/swc/tests/tsc-references/destructuringSpread.2.minified.js b/crates/swc/tests/tsc-references/destructuringSpread.2.minified.js index b0dc40098acd..1e7cf97f3908 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringSpread.2.minified.js @@ -1,6 +1,6 @@ //// [destructuringSpread.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread_props(_object_spread({}, {}), { x: 0 }).x, _object_spread({ diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.1.normal.js index 0e84e1fb41c5..414bb2cfcd63 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.1.normal.js @@ -1,8 +1,8 @@ //// [destructuringVariableDeclaration1ES5.ts] // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.2.minified.js index e7cd29fb765c..d2f7e19536e0 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5.2.minified.js @@ -1,6 +1,6 @@ //// [destructuringVariableDeclaration1ES5.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.1.normal.js index 97e010df43fe..c02d2d476bcc 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.1.normal.js @@ -1,8 +1,8 @@ //// [destructuringVariableDeclaration1ES5iterable.ts] // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.2.minified.js index 4ee266c88042..1a793614d6ff 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable.2.minified.js @@ -1,6 +1,6 @@ //// [destructuringVariableDeclaration1ES5iterable.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVoid.1.normal.js b/crates/swc/tests/tsc-references/destructuringVoid.1.normal.js index 1376baaa3ce4..f57308464d16 100644 --- a/crates/swc/tests/tsc-references/destructuringVoid.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVoid.1.normal.js @@ -1,3 +1,3 @@ //// [destructuringVoid.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var ref = _object_destructuring_empty(v); diff --git a/crates/swc/tests/tsc-references/destructuringVoid.2.minified.js b/crates/swc/tests/tsc-references/destructuringVoid.2.minified.js index e0cadefc974c..b957146e66b6 100644 --- a/crates/swc/tests/tsc-references/destructuringVoid.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVoid.2.minified.js @@ -1,3 +1,3 @@ //// [destructuringVoid.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; _object_destructuring_empty(v); diff --git a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.1.normal.js b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.1.normal.js index 55d481ecf026..0cd8920ba8dc 100644 --- a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.1.normal.js @@ -1,3 +1,3 @@ //// [destructuringVoidStrictNullChecks.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var ref = _object_destructuring_empty(v); diff --git a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.2.minified.js b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.2.minified.js index 36b147a4869e..b21875c37118 100644 --- a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks.2.minified.js @@ -1,3 +1,3 @@ //// [destructuringVoidStrictNullChecks.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; _object_destructuring_empty(v); diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.1.normal.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.1.normal.js index ba1bba92456f..3e82477eb478 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.1.normal.js @@ -1,6 +1,6 @@ //// [destructuringWithLiteralInitializers.ts] // (arg: { x: any, y: any }) => void -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f1(param) { var x = param.x, y = param.y; } diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.2.minified.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.2.minified.js index 13182c26934b..d8bb396293b8 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers.2.minified.js @@ -1,5 +1,5 @@ //// [destructuringWithLiteralInitializers.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f4() { var _ref = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { x: 0, diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.1.normal.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.1.normal.js index a8fa2da3a2c4..f3ff65962f5a 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.1.normal.js @@ -1,5 +1,5 @@ //// [destructuringWithLiteralInitializers2.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f00(param) { var _param = _sliced_to_array(param, 2), x = _param[0], y = _param[1]; } diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.2.minified.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.2.minified.js index ec82d4979956..66b45ad57844 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2.2.minified.js @@ -1,2 +1,2 @@ //// [destructuringWithLiteralInitializers2.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.1.normal.js b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.1.normal.js index d05ca2e0d1f5..748ef9be3791 100644 --- a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.1.normal.js +++ b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.1.normal.js @@ -1,7 +1,7 @@ //// [directDependenceBetweenTypeAliases.ts] // It is an error for the type specified in a type alias to depend on that type alias // A type alias directly depends on the type it aliases. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.2.minified.js b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.2.minified.js index 91e35f16bb6a..1c26caca02b1 100644 --- a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.2.minified.js +++ b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases.2.minified.js @@ -1,2 +1,2 @@ //// [directDependenceBetweenTypeAliases.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/duplicateNumericIndexers.1.normal.js b/crates/swc/tests/tsc-references/duplicateNumericIndexers.1.normal.js index c9b87fcf979c..cef2dfe0592a 100644 --- a/crates/swc/tests/tsc-references/duplicateNumericIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicateNumericIndexers.1.normal.js @@ -1,6 +1,6 @@ //// [duplicateNumericIndexers.ts] // it is an error to have duplicate index signatures of the same kind in a type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/duplicateNumericIndexers.2.minified.js b/crates/swc/tests/tsc-references/duplicateNumericIndexers.2.minified.js index cad4ff09a4dd..a4b1f10ad533 100644 --- a/crates/swc/tests/tsc-references/duplicateNumericIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicateNumericIndexers.2.minified.js @@ -1,2 +1,2 @@ //// [duplicateNumericIndexers.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/duplicateStringIndexers.1.normal.js b/crates/swc/tests/tsc-references/duplicateStringIndexers.1.normal.js index ba47024e2f20..289f218348da 100644 --- a/crates/swc/tests/tsc-references/duplicateStringIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicateStringIndexers.1.normal.js @@ -1,6 +1,6 @@ //// [duplicateStringIndexers.ts] // it is an error to have duplicate index signatures of the same kind in a type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var test; (function(test) { var C = function C() { diff --git a/crates/swc/tests/tsc-references/duplicateStringIndexers.2.minified.js b/crates/swc/tests/tsc-references/duplicateStringIndexers.2.minified.js index d1712f3e2955..9eef58876446 100644 --- a/crates/swc/tests/tsc-references/duplicateStringIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicateStringIndexers.2.minified.js @@ -1,4 +1,4 @@ //// [duplicateStringIndexers.ts] var test; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; test || (test = {}); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.1.normal.js index 275cc6eb1198..5a0325331964 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.1.normal.js @@ -1,7 +1,7 @@ //// [emitClassDeclarationWithPropertyAccessInHeritageClause1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.2.minified.js index 998c2869109b..5d0a7b928830 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1.2.minified.js @@ -1,4 +1,4 @@ //// [emitClassDeclarationWithPropertyAccessInHeritageClause1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethod.1.normal.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethod.1.normal.js index 5fbbdc921b6f..6ef0018d18a5 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethod.1.normal.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethod.1.normal.js @@ -1,5 +1,5 @@ //// [emitDefaultParametersMethod.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(t, z, x) { diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethod.2.minified.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethod.2.minified.js index 1ae54d68e7a1..54a16491040e 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethod.2.minified.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethod.2.minified.js @@ -1,2 +1,2 @@ //// [emitDefaultParametersMethod.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.1.normal.js index bc366174092b..7ff49c62e301 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.1.normal.js @@ -1,5 +1,5 @@ //// [emitExponentiationOperatorInTempalteString4.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var t1 = 10; var t2 = 10; var s; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.2.minified.js index ce6585864ba6..b4366b3d54e1 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4.2.minified.js @@ -1,4 +1,4 @@ //// [emitExponentiationOperatorInTempalteString4.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var t1 = 10; ++t1, t1++, _type_of(Math.pow(--t1, Math.pow(10, t1))), "".concat(Math.pow(t1, -10), " hello world ").concat(Math.pow(t1, -10)), "".concat(Math.pow(-t1, 10) - t1, " hello world ").concat(Math.pow(-t1, 10) - t1), "".concat(Math.pow(-++t1, 10) - t1, " hello world ").concat(Math.pow(t1, Math.pow(-++t1, -t1))), "".concat(Math.pow(-t1++, 10) - t1, " hello world ").concat(Math.pow(10, Math.pow(-t1++, -t1))), "".concat(Math.pow(~t1, Math.pow(10, --t1)), " hello world ").concat(Math.pow(~t1, Math.pow(10, --t1))), "".concat(_type_of(Math.pow(t1, Math.pow(10, t1))), " hello world ").concat(_type_of(Math.pow(t1, Math.pow(10, t1)))), ++t1, t1++, _type_of(Math.pow(--t1, Math.pow(10, t1))); diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.1.normal.js index 4eb6e579b569..72d936a42d5b 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.1.normal.js @@ -1,5 +1,5 @@ //// [emitExponentiationOperatorInTemplateString1.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var t1 = 10; var t2 = 10; var s; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.2.minified.js index 6cb1242573aa..04b7116bd268 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1.2.minified.js @@ -1,3 +1,3 @@ //// [emitExponentiationOperatorInTemplateString1.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; _type_of(Infinity), _type_of(Infinity), "".concat(10000000000).concat(10000000000), "".concat(Infinity).concat(Infinity), "".concat(10000000010).concat(10000000010), "".concat(10000000010).concat(10000000010), "".concat(10000000020).concat(10000000020), "".concat(_type_of(Infinity)).concat(_type_of(Infinity)), "".concat(10000000000, " hello world ").concat(10000000000), "".concat(Infinity, " hello world ").concat(Infinity), "".concat(10000000010, " hello world ").concat(10000000010), "".concat(10000000010, " hello world ").concat(10000000010), "".concat(10000000020, " hello world ").concat(10000000020), "".concat(_type_of(Infinity), " hello world ").concat(_type_of(Infinity)); diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.1.normal.js index d05402bcbbc2..cfe769713349 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.1.normal.js @@ -1,5 +1,5 @@ //// [emitExponentiationOperatorInTemplateString2.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var t1 = 10; var t2 = 10; var s; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.2.minified.js index d7652ee9e8fa..291d0db7fc77 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2.2.minified.js @@ -1,3 +1,3 @@ //// [emitExponentiationOperatorInTemplateString2.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; _type_of(Infinity), _type_of(Infinity), "hello ".concat(10000000000).concat(10000000000), "hello ".concat(Infinity).concat(Infinity), "hello ".concat(10000000010).concat(10000000010), "hello ".concat(10000000010).concat(10000000010), "hello ".concat(10000000020).concat(10000000020), "hello ".concat(_type_of(Infinity)).concat(_type_of(Infinity)), "hello ".concat(10000000000, " hello world ").concat(10000000000), "hello ".concat(Infinity, " hello world ").concat(Infinity), "hello ".concat(10000000010, " hello world ").concat(10000000010), "hello ".concat(10000000010, " hello world ").concat(10000000010), "hello ".concat(10000000020, " hello world ").concat(10000000020), "hello ".concat(_type_of(Infinity), " hello world ").concat(_type_of(Infinity)); diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.1.normal.js index 44d5ffea0e70..90da8436acc0 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.1.normal.js @@ -1,5 +1,5 @@ //// [emitExponentiationOperatorInTemplateString3.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var t1 = 10; var t2 = 10; var s; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.2.minified.js index 279724883c48..58473785ea4c 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3.2.minified.js @@ -1,3 +1,3 @@ //// [emitExponentiationOperatorInTemplateString3.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; _type_of(Infinity), _type_of(Infinity), "".concat(10000000000).concat(10000000000, " world"), "".concat(Infinity).concat(Infinity, " world"), "".concat(10000000010).concat(10000000010, " world"), "".concat(10000000010).concat(10000000010, " world"), "".concat(10000000020).concat(10000000020, " world"), "".concat(_type_of(Infinity)).concat(_type_of(Infinity), " world"), "".concat(10000000000, " hello world ").concat(10000000000, " !!"), "".concat(Infinity, " hello world ").concat(Infinity, " !!"), "".concat(10000000010, " hello world ").concat(10000000010, " !!"), "".concat(10000000010, " hello world ").concat(10000000010, " !!"), "".concat(10000000020, " hello world ").concat(10000000020, " !!"), "".concat(_type_of(Infinity), " hello world ").concat(_type_of(Infinity), " !!"); diff --git a/crates/swc/tests/tsc-references/emitRestParametersMethod.1.normal.js b/crates/swc/tests/tsc-references/emitRestParametersMethod.1.normal.js index af4b13bb4650..68aa3c7a6017 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethod.1.normal.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethod.1.normal.js @@ -1,5 +1,5 @@ //// [emitRestParametersMethod.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(name) { diff --git a/crates/swc/tests/tsc-references/emitRestParametersMethod.2.minified.js b/crates/swc/tests/tsc-references/emitRestParametersMethod.2.minified.js index a0e751d3700d..c38f8d4f4fa2 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethod.2.minified.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethod.2.minified.js @@ -1,2 +1,2 @@ //// [emitRestParametersMethod.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.1.normal.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.1.normal.js index 630e33146377..207a7efd4aac 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.1.normal.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.1.normal.js @@ -1,5 +1,5 @@ //// [emitStatementsBeforeSuperCallWithDefineFields.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class Base { } class Sub extends Base { diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.2.minified.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.2.minified.js index aa658a234b03..a00720097846 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.2.minified.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields.2.minified.js @@ -1,2 +1,2 @@ //// [emitStatementsBeforeSuperCallWithDefineFields.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.1.normal.js index 6d31eb8dcc26..cded042b8f58 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.1.normal.js @@ -1,12 +1,12 @@ //// [C1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C1 { f() { return _wrap_async_generator(function*() {})(); } } //// [C2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C2 { f() { return _wrap_async_generator(function*() { @@ -15,7 +15,7 @@ class C2 { } } //// [C3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C3 { f() { return _wrap_async_generator(function*() { @@ -24,10 +24,10 @@ class C3 { } } //// [C4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C4 { f() { return _wrap_async_generator(function*() { @@ -38,10 +38,10 @@ class C4 { } } //// [C5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C5 { f() { return _wrap_async_generator(function*() { @@ -52,8 +52,8 @@ class C5 { } } //// [C6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C6 { f() { return _wrap_async_generator(function*() { @@ -62,7 +62,7 @@ class C6 { } } //// [C7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C7 { f() { return _wrap_async_generator(function*() { @@ -71,7 +71,7 @@ class C7 { } } //// [C8.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class C8 { g() {} f() { @@ -82,7 +82,7 @@ class C8 { } } //// [C9.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; class B9 { g() {} } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.2.minified.js index a21cfabcf92c..9a7d25bd3a96 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015.2.minified.js @@ -1,25 +1,25 @@ //// [C1.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C2.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C3.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C4.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C5.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C6.ts] -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C7.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C8.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [C9.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.1.normal.js index 6820eadf7107..9185319c91b8 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.1.normal.js @@ -1,7 +1,7 @@ //// [C1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C1 = /*#__PURE__*/ function() { "use strict"; function C1() { @@ -20,9 +20,9 @@ var C1 = /*#__PURE__*/ function() { return C1; }(); //// [C2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C2 = /*#__PURE__*/ function() { "use strict"; function C2() { @@ -50,9 +50,9 @@ var C2 = /*#__PURE__*/ function() { return C2; }(); //// [C3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C3 = /*#__PURE__*/ function() { "use strict"; function C3() { @@ -81,13 +81,13 @@ var C3 = /*#__PURE__*/ function() { return C3; }(); //// [C4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var C4 = /*#__PURE__*/ function() { "use strict"; function C4() { @@ -118,13 +118,13 @@ var C4 = /*#__PURE__*/ function() { return C4; }(); //// [C5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var C5 = /*#__PURE__*/ function() { "use strict"; function C5() { @@ -168,10 +168,10 @@ var C5 = /*#__PURE__*/ function() { return C5; }(); //// [C6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C6 = /*#__PURE__*/ function() { "use strict"; function C6() { @@ -200,9 +200,9 @@ var C6 = /*#__PURE__*/ function() { return C6; }(); //// [C7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C7 = /*#__PURE__*/ function() { "use strict"; function C7() { @@ -222,9 +222,9 @@ var C7 = /*#__PURE__*/ function() { return C7; }(); //// [C8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C8 = /*#__PURE__*/ function() { "use strict"; function C8() { @@ -246,13 +246,13 @@ var C8 = /*#__PURE__*/ function() { return C8; }(); //// [C9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var B9 = /*#__PURE__*/ function() { "use strict"; function B9() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.2.minified.js index 1a8b85945766..64fcc534b9df 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5.2.minified.js @@ -1,49 +1,49 @@ //// [C1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; //// [C5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; //// [C6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [C9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.1.normal.js index 68a1e5a47792..26b19167ff27 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.1.normal.js @@ -1,5 +1,5 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f1() { return _f1.apply(this, arguments); } @@ -8,7 +8,7 @@ function _f1() { return _f1.apply(this, arguments); } //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f2() { return _f2.apply(this, arguments); } @@ -19,7 +19,7 @@ function _f2() { return _f2.apply(this, arguments); } //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f3() { return _f3.apply(this, arguments); } @@ -30,10 +30,10 @@ function _f3() { return _f3.apply(this, arguments); } //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f4() { return _f4.apply(this, arguments); } @@ -46,10 +46,10 @@ function _f4() { return _f4.apply(this, arguments); } //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f5() { return _f5.apply(this, arguments); } @@ -62,8 +62,8 @@ function _f5() { return _f5.apply(this, arguments); } //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f6() { return _f6.apply(this, arguments); } @@ -74,7 +74,7 @@ function _f6() { return _f6.apply(this, arguments); } //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f7() { return _f7.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.2.minified.js index 828d5fec11f8..7cb521d2d768 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015.2.minified.js @@ -1,21 +1,21 @@ //// [F1.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F2.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F3.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F4.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F5.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F6.ts] -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [F7.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.1.normal.js index daaa618cba19..d01d544e7f1b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.1.normal.js @@ -1,6 +1,6 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f1() { return _f1.apply(this, arguments); } @@ -15,8 +15,8 @@ function _f1() { return _f1.apply(this, arguments); } //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f2() { return _f2.apply(this, arguments); } @@ -40,8 +40,8 @@ function _f2() { return _f2.apply(this, arguments); } //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f3() { return _f3.apply(this, arguments); } @@ -66,12 +66,12 @@ function _f3() { return _f3.apply(this, arguments); } //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; function f4() { return _f4.apply(this, arguments); } @@ -98,12 +98,12 @@ function _f4() { return _f4.apply(this, arguments); } //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; function f5() { return _f5.apply(this, arguments); } @@ -143,9 +143,9 @@ function _f5() { return _f5.apply(this, arguments); } //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f6() { return _f6.apply(this, arguments); } @@ -170,8 +170,8 @@ function _f6() { return _f6.apply(this, arguments); } //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f7() { return _f7.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.2.minified.js index ac97fcd18fd9..a0cf9826a5f2 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5.2.minified.js @@ -1,30 +1,30 @@ //// [F1.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [F2.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [F3.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [F4.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; -import "@swc/helpers/src/_ts_values.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; +import "@swc/helpers/_/_ts_values"; //// [F5.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; -import "@swc/helpers/src/_ts_values.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; +import "@swc/helpers/_/_ts_values"; //// [F6.ts] -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [F7.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.1.normal.js index c37bb5d69467..dc312ed9ec21 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.1.normal.js @@ -1,5 +1,5 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f1 = function() { var _ref = _wrap_async_generator(function*() {}); return function f1() { @@ -7,7 +7,7 @@ const f1 = function() { }; }(); //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f2 = function() { var _ref = _wrap_async_generator(function*() { const x = yield; @@ -17,7 +17,7 @@ const f2 = function() { }; }(); //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f3 = function() { var _ref = _wrap_async_generator(function*() { const x = yield 1; @@ -27,10 +27,10 @@ const f3 = function() { }; }(); //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f4 = function() { var _ref = _wrap_async_generator(function*() { const x = yield* _async_generator_delegate(_async_iterator([ @@ -42,10 +42,10 @@ const f4 = function() { }; }(); //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f5 = function() { var _ref = _wrap_async_generator(function*() { const x = yield* _async_generator_delegate(_async_iterator(_wrap_async_generator(function*() { @@ -57,8 +57,8 @@ const f5 = function() { }; }(); //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f6 = function() { var _ref = _wrap_async_generator(function*() { const x = yield _await_async_generator(1); @@ -68,7 +68,7 @@ const f6 = function() { }; }(); //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const f7 = function() { var _ref = _wrap_async_generator(function*() { return 1; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.2.minified.js index 9f15a4d26273..1a21697b4ffa 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015.2.minified.js @@ -1,21 +1,21 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.1.normal.js index bb042f8b23f2..b4344515ff82 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.1.normal.js @@ -1,6 +1,6 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var f1 = function() { var _ref = _wrap_async_generator(function() { return _ts_generator(this, function(_state) { @@ -14,8 +14,8 @@ var f1 = function() { }; }(); //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var f2 = function() { var _ref = _wrap_async_generator(function() { var x; @@ -38,8 +38,8 @@ var f2 = function() { }; }(); //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var f3 = function() { var _ref = _wrap_async_generator(function() { var x; @@ -63,12 +63,12 @@ var f3 = function() { }; }(); //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var f4 = function() { var _ref = _wrap_async_generator(function() { var x; @@ -94,12 +94,12 @@ var f4 = function() { }; }(); //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var f5 = function() { var _ref = _wrap_async_generator(function() { var x; @@ -138,9 +138,9 @@ var f5 = function() { }; }(); //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var f6 = function() { var _ref = _wrap_async_generator(function() { var x; @@ -164,8 +164,8 @@ var f6 = function() { }; }(); //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var f7 = function() { var _ref = _wrap_async_generator(function() { return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.2.minified.js index 01ce7561663b..eee397aee848 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5.2.minified.js @@ -1,30 +1,30 @@ //// [F1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [F2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [F3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [F4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; //// [F5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; //// [F6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; //// [F7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.1.normal.js index 4dda48342948..d8ba1954680b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.1.normal.js @@ -1,12 +1,12 @@ //// [O1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o1 = { f () { return _wrap_async_generator(function*() {})(); } }; //// [O2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o2 = { f () { return _wrap_async_generator(function*() { @@ -15,7 +15,7 @@ const o2 = { } }; //// [O3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o3 = { f () { return _wrap_async_generator(function*() { @@ -24,10 +24,10 @@ const o3 = { } }; //// [O4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o4 = { f () { return _wrap_async_generator(function*() { @@ -38,10 +38,10 @@ const o4 = { } }; //// [O5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o5 = { f () { return _wrap_async_generator(function*() { @@ -52,8 +52,8 @@ const o5 = { } }; //// [O6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o6 = { f () { return _wrap_async_generator(function*() { @@ -62,7 +62,7 @@ const o6 = { } }; //// [O7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; const o7 = { f () { return _wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.2.minified.js index f5d6e03c4e92..bcdac413ec98 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015.2.minified.js @@ -1,21 +1,21 @@ //// [O1.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O2.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O3.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O4.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O5.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O6.ts] -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [O7.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.1.normal.js index 5c7ad4dc7837..fa9d68d47fa6 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.1.normal.js @@ -1,6 +1,6 @@ //// [O1.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var o1 = { f: function f() { return _wrap_async_generator(function() { @@ -13,8 +13,8 @@ var o1 = { } }; //// [O2.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var o2 = { f: function f() { return _wrap_async_generator(function() { @@ -36,8 +36,8 @@ var o2 = { } }; //// [O3.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var o3 = { f: function f() { return _wrap_async_generator(function() { @@ -60,12 +60,12 @@ var o3 = { } }; //// [O4.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var o4 = { f: function f() { return _wrap_async_generator(function() { @@ -90,12 +90,12 @@ var o4 = { } }; //// [O5.ts] -import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _async_generator_delegate } from "@swc/helpers/_/_async_generator_delegate"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; var o5 = { f: function f() { return _wrap_async_generator(function() { @@ -133,9 +133,9 @@ var o5 = { } }; //// [O6.ts] -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var o6 = { f: function f() { return _wrap_async_generator(function() { @@ -158,8 +158,8 @@ var o6 = { } }; //// [O7.ts] -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var o7 = { f: function f() { return _wrap_async_generator(function() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.2.minified.js index 0a231cbe5ddf..9992ade346b3 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5.2.minified.js @@ -1,30 +1,30 @@ //// [O1.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [O2.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [O3.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [O4.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; -import "@swc/helpers/src/_ts_values.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; +import "@swc/helpers/_/_ts_values"; //// [O5.ts] -import "@swc/helpers/src/_async_generator_delegate.mjs"; -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; -import "@swc/helpers/src/_ts_values.mjs"; +import "@swc/helpers/_/_async_generator_delegate"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; +import "@swc/helpers/_/_ts_values"; //// [O6.ts] -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [O7.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).1.normal.js index 19a7a555974c..74a13640b86d 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [file1.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f1() { return _f1.apply(this, arguments); } @@ -33,8 +33,8 @@ function _f1() { return _f1.apply(this, arguments); } //// [file2.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f2() { return _f2.apply(this, arguments); } @@ -67,9 +67,9 @@ function _f2() { return _f2.apply(this, arguments); } //// [file3.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f3() { return _f3.apply(this, arguments); } @@ -102,9 +102,9 @@ function _f3() { return _f3.apply(this, arguments); } //// [file4.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f4() { return _f4.apply(this, arguments); } @@ -138,8 +138,8 @@ function _f4() { } //// [file5.ts] // https://github.com/Microsoft/TypeScript/issues/21363 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function f5() { return _f5.apply(this, arguments); } @@ -174,9 +174,9 @@ function _f5() { } //// [file6.ts] // https://github.com/Microsoft/TypeScript/issues/21363 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f6() { return _f6.apply(this, arguments); } @@ -211,9 +211,9 @@ function _f6() { } //// [file7.ts] // https://github.com/microsoft/TypeScript/issues/36166 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f7() { return _f7.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).2.minified.js index 6446a4e52e28..63f3d07070a1 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait(target=es2015).2.minified.js @@ -1,25 +1,25 @@ //// [file1.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; //// [file2.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; //// [file3.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [file4.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [file5.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; //// [file6.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; //// [file7.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).1.normal.js b/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).1.normal.js index 266248ff2316..17d18f81e909 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).1.normal.js @@ -1,7 +1,7 @@ //// [file1.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f1() { return _f1.apply(this, arguments); } @@ -98,9 +98,9 @@ function _f1() { return _f1.apply(this, arguments); } //// [file2.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f2() { return _f2.apply(this, arguments); } @@ -197,10 +197,10 @@ function _f2() { return _f2.apply(this, arguments); } //// [file3.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f3() { return _f3.apply(this, arguments); } @@ -297,10 +297,10 @@ function _f3() { return _f3.apply(this, arguments); } //// [file4.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f4() { return _f4.apply(this, arguments); } @@ -398,9 +398,9 @@ function _f4() { } //// [file5.ts] // https://github.com/Microsoft/TypeScript/issues/21363 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f5() { return _f5.apply(this, arguments); } @@ -499,10 +499,10 @@ function _f5() { } //// [file6.ts] // https://github.com/Microsoft/TypeScript/issues/21363 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f6() { return _f6.apply(this, arguments); } @@ -601,10 +601,10 @@ function _f6() { } //// [file7.ts] // https://github.com/microsoft/TypeScript/issues/36166 -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f7() { return _f7.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).2.minified.js b/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).2.minified.js index 2b7f8b595693..3a2eed81219d 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait(target=es5).2.minified.js @@ -1,32 +1,32 @@ //// [file1.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file2.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file3.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file4.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file5.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file6.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; //// [file7.ts] -import "@swc/helpers/src/_async_iterator.mjs"; -import "@swc/helpers/src/_await_async_generator.mjs"; -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_iterator"; +import "@swc/helpers/_/_await_async_generator"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.1.normal.js index 7c943fb33d3d..4f9f2920acef 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.1.normal.js @@ -1,5 +1,5 @@ //// [emptyArrayBindingPatternParameter01.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f(param) { var _param = _sliced_to_array(param, 0); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.2.minified.js index e52fba12339b..f253bfee5d8a 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01.2.minified.js @@ -1,2 +1,2 @@ //// [emptyArrayBindingPatternParameter01.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.1.normal.js index b3acca430e8a..d396a41c8a2e 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.1.normal.js @@ -1,5 +1,5 @@ //// [emptyArrayBindingPatternParameter02.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f(a, param) { var _param = _sliced_to_array(param, 0); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.2.minified.js index e19694917113..506a77248ded 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02.2.minified.js @@ -1,2 +1,2 @@ //// [emptyArrayBindingPatternParameter02.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.1.normal.js index 64170c68b3d4..99dc6ed05383 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.1.normal.js @@ -1,5 +1,5 @@ //// [emptyArrayBindingPatternParameter03.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f(a, param) { var _param = _sliced_to_array(param, 0); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.2.minified.js index 5111fb8cedac..f0a0d55d900f 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03.2.minified.js @@ -1,2 +1,2 @@ //// [emptyArrayBindingPatternParameter03.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.1.normal.js index b21224681221..2e52c04517dd 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.1.normal.js @@ -1,5 +1,5 @@ //// [emptyArrayBindingPatternParameter04.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f() { var _ref = _sliced_to_array(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [ 1, diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.2.minified.js index 00554d51d3fa..2b68257bf7ad 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04.2.minified.js @@ -1,2 +1,2 @@ //// [emptyArrayBindingPatternParameter04.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.1.normal.js index cbb80d076a2d..5b1dba3bdbd3 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns01_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; _object_destructuring_empty(a); var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.2.minified.js index 1d2dfd96f867..93055019ecf4 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns01_ES5.ts] var a; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty(a), _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.1.normal.js index e4fb46259b36..61ba5258acdd 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns01_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; _object_destructuring_empty(a); var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.2.minified.js index e4cf33cc9aee..3ffacf4ac417 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns01_ES5iterable.ts] var a; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty(a), _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.1.normal.js index 2e5dc97bddbf..0239ed026b2b 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns02_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; var x, y, z, a1, a2, a3; var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.2.minified.js index cfd6268730a1..c7095fabe83f 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns02_ES5.ts] var a, ref1; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty((a.x, a.y, a.z, a)), _sliced_to_array(((ref1 = _sliced_to_array(a, 3))[0], ref1[1], ref1[2], ref1), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.1.normal.js index 15998446c178..587c563ec900 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns02_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; var x, y, z, a1, a2, a3; var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.2.minified.js index dfb2b50e7488..ffdfbbb62f6f 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns02_ES5iterable.ts] var a, ref1; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty((a.x, a.y, a.z, a)), _sliced_to_array(((ref1 = _sliced_to_array(a, 3))[0], ref1[1], ref1[2], ref1), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.1.normal.js index dce5538ec575..b48dcb201c1d 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns03_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; _object_destructuring_empty(_object_destructuring_empty(a)); var ref, ref1; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.2.minified.js index 4621b8afd11d..fde95e012ca3 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns03_ES5.ts] var a; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty(_object_destructuring_empty(a)), _sliced_to_array(_sliced_to_array(a, 0), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.1.normal.js index d7d51cb930f2..45d563c64ae7 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns03_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; _object_destructuring_empty(_object_destructuring_empty(a)); var ref, ref1; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.2.minified.js index c06bff5d95ed..d8feffd1cb1b 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns03_ES5iterable.ts] var a; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; _object_destructuring_empty(_object_destructuring_empty(a)), _sliced_to_array(_sliced_to_array(a, 0), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.1.normal.js index e2501f8c5de7..c2970597079a 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns04_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; var x, y, z, a1, a2, a3; var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.2.minified.js index 866aba2fab7c..346cb1e657f9 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns04_ES5.ts] var a, ref, ref2; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; (ref = _object_destructuring_empty(a)).x, ref.y, ref.z, (ref2 = _sliced_to_array(_sliced_to_array(a, 0), 3))[0], ref2[1], ref2[2]; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.1.normal.js index b577bd38bea6..643624cdcc53 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [emptyAssignmentPatterns04_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var a; var x, y, z, a1, a2, a3; var ref; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.2.minified.js index e7bbfc921531..381fcd77502f 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable.2.minified.js @@ -1,5 +1,5 @@ //// [emptyAssignmentPatterns04_ES5iterable.ts] var a, ref, ref2; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; (ref = _object_destructuring_empty(a)).x, ref.y, ref.z, (ref2 = _sliced_to_array(_sliced_to_array(a, 0), 3))[0], ref2[1], ref2[2]; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.1.normal.js index c80bc5cd7abc..199e479344f8 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.1.normal.js @@ -1,5 +1,5 @@ //// [emptyObjectBindingPatternParameter01.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function f(param) { var ref = _object_destructuring_empty(param); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.2.minified.js index bcebc8f1bd2b..1464c434f5aa 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01.2.minified.js @@ -1,2 +1,2 @@ //// [emptyObjectBindingPatternParameter01.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.1.normal.js index db3b3f21c5d0..a2da4656365a 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.1.normal.js @@ -1,5 +1,5 @@ //// [emptyObjectBindingPatternParameter02.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function f(a, param) { var ref = _object_destructuring_empty(param); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.2.minified.js index 6a8e89299d53..b47f0574d87e 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02.2.minified.js @@ -1,2 +1,2 @@ //// [emptyObjectBindingPatternParameter02.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.1.normal.js index 63dcc395c510..31ebc947ec79 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.1.normal.js @@ -1,5 +1,5 @@ //// [emptyObjectBindingPatternParameter03.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function f(param, a) { var ref = _object_destructuring_empty(param); var x, y, z; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.2.minified.js index 71df9f23563a..2b049aba79fc 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03.2.minified.js @@ -1,2 +1,2 @@ //// [emptyObjectBindingPatternParameter03.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.1.normal.js index fc68eac292e5..ac415a34d41a 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.1.normal.js @@ -1,5 +1,5 @@ //// [emptyObjectBindingPatternParameter04.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function f() { var ref = _object_destructuring_empty(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { a: 1, diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.2.minified.js index d00e2aec9818..7bab9e0c2154 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04.2.minified.js @@ -1,2 +1,2 @@ //// [emptyObjectBindingPatternParameter04.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.1.normal.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.1.normal.js index 42a07ed6a616..b6c4b39db85d 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.1.normal.js @@ -1,6 +1,6 @@ //// [emptyVariableDeclarationBindingPatterns01_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; (function() { var f = function f() { var ref = _object_destructuring_empty(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : a), _ref = _sliced_to_array(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a, 0), _ref1 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : a, tmp = _ref1.p, ref1 = _object_destructuring_empty(tmp === void 0 ? a : tmp); diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.2.minified.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.2.minified.js index 06a8381e99b5..a6308466321a 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5.2.minified.js @@ -1,6 +1,6 @@ //// [emptyVariableDeclarationBindingPatterns01_ES5.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; !function() { var a; _object_destructuring_empty(a), _object_destructuring_empty(a), _object_destructuring_empty(a), _sliced_to_array(a, 0), _sliced_to_array(a, 0), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty({}), _object_destructuring_empty({}); diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.1.normal.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.1.normal.js index 2f5a32208c4a..b6fac17c83b3 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.1.normal.js @@ -1,6 +1,6 @@ //// [emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; (function() { var f = function f() { var ref = _object_destructuring_empty(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : a), _ref = _sliced_to_array(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a, 0), _ref1 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : a, tmp = _ref1.p, ref1 = _object_destructuring_empty(tmp === void 0 ? a : tmp); diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.2.minified.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.2.minified.js index dc7a73af3699..88fa3b669a2c 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable.2.minified.js @@ -1,6 +1,6 @@ //// [emptyVariableDeclarationBindingPatterns01_ES5iterable.ts] -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; !function() { var a; _object_destructuring_empty(a), _object_destructuring_empty(a), _object_destructuring_empty(a), _sliced_to_array(a, 0), _sliced_to_array(a, 0), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a), _sliced_to_array(a, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty(a.p1), _sliced_to_array(a.p2, 0), _object_destructuring_empty({}), _object_destructuring_empty({}); diff --git a/crates/swc/tests/tsc-references/enumAssignability.1.normal.js b/crates/swc/tests/tsc-references/enumAssignability.1.normal.js index 44af3e5251da..7b96304aeacc 100644 --- a/crates/swc/tests/tsc-references/enumAssignability.1.normal.js +++ b/crates/swc/tests/tsc-references/enumAssignability.1.normal.js @@ -1,6 +1,6 @@ //// [enumAssignability.ts] // enums assignable to number, any, Object, errors unless otherwise noted -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/enumAssignability.2.minified.js b/crates/swc/tests/tsc-references/enumAssignability.2.minified.js index e0ef8482427c..84d39b4b0925 100644 --- a/crates/swc/tests/tsc-references/enumAssignability.2.minified.js +++ b/crates/swc/tests/tsc-references/enumAssignability.2.minified.js @@ -1,6 +1,6 @@ //// [enumAssignability.ts] var E, F, Others; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), function(F) { diff --git a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.1.normal.js b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.1.normal.js index b4c1668ccafa..8189cb9646e4 100644 --- a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.1.normal.js +++ b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.1.normal.js @@ -1,6 +1,6 @@ //// [enumAssignabilityInInheritance.ts] // enum is only a subtype of number, no types are subtypes of enum, all of these except the first are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.2.minified.js b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.2.minified.js index ba0a1f5ede75..6be7669cb1e8 100644 --- a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.2.minified.js +++ b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance.2.minified.js @@ -1,5 +1,5 @@ //// [enumAssignabilityInInheritance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.1.normal.js b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.1.normal.js index fa7522ce5a0a..cbf234dbd822 100644 --- a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.1.normal.js +++ b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.1.normal.js @@ -1,6 +1,6 @@ //// [enumIsNotASubtypeOfAnythingButNumber.ts] // enums are only subtypes of number, any and no other types -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.2.minified.js b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.2.minified.js index 5edb582c85b3..214cfab48303 100644 --- a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.2.minified.js +++ b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber.2.minified.js @@ -1,5 +1,5 @@ //// [enumIsNotASubtypeOfAnythingButNumber.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType.1.normal.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType.1.normal.js index d32bd146a198..4f4c455b241c 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType.1.normal.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType.1.normal.js @@ -2,8 +2,8 @@ /** * @callback FunctionReturningPromise * @returns {Promise} - */ /** @type {FunctionReturningPromise} */ import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; + */ /** @type {FunctionReturningPromise} */ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function testPromise1() { console.log("Nope"); } diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType.2.minified.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType.2.minified.js index 7a91401cd647..e3153254e6cc 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType.2.minified.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType.2.minified.js @@ -1,3 +1,3 @@ //// [foo.js] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/errorSuperPropertyAccess.1.normal.js b/crates/swc/tests/tsc-references/errorSuperPropertyAccess.1.normal.js index 23f502f0929a..130efeb5ea76 100644 --- a/crates/swc/tests/tsc-references/errorSuperPropertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/errorSuperPropertyAccess.1.normal.js @@ -2,14 +2,14 @@ //super property access in constructor of class with no base type //super property access in instance member function of class with no base type //super property access in instance member accessor(get and set) of class with no base type -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var NoBase = /*#__PURE__*/ function() { "use strict"; function NoBase() { diff --git a/crates/swc/tests/tsc-references/errorSuperPropertyAccess.2.minified.js b/crates/swc/tests/tsc-references/errorSuperPropertyAccess.2.minified.js index ccd90a0d8054..3e8b8010af8a 100644 --- a/crates/swc/tests/tsc-references/errorSuperPropertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/errorSuperPropertyAccess.2.minified.js @@ -1,12 +1,12 @@ //// [errorSuperPropertyAccess.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeBase = function() { "use strict"; function SomeBase() { diff --git a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.1.normal.js index d38603e4bf6d..2435c70aa834 100644 --- a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.1.normal.js @@ -1,5 +1,5 @@ //// [es6modulekindExportClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.2.minified.js index d38603e4bf6d..2435c70aa834 100644 --- a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject.2.minified.js @@ -1,5 +1,5 @@ //// [es6modulekindExportClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.1.normal.js index 6cd4417caa61..ea9ba20c40b2 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.1.normal.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target12.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.2.minified.js index 714cf1216c16..9d02b6e78adb 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12.2.minified.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target12.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.1.normal.js index 218127b3fc80..48226c3c3ebb 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.1.normal.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.2.minified.js index e8c9c24fb0bc..772674e81099 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2.2.minified.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.1.normal.js index 8b8d38d8095b..663c04f1a185 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.1.normal.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E = function E() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.2.minified.js index e353f29598bf..47e5a7a7c477 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4.2.minified.js @@ -1,5 +1,5 @@ //// [es6modulekindWithES5Target4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export default function E() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.1.normal.js index 03a8c1ca8187..1ddc1276ff7c 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.1.normal.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target12.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.2.minified.js index 8eed7dc554a3..d48d5ded2ddf 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12.2.minified.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target12.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.1.normal.js index c41faa6523e0..f029896691fd 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.1.normal.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.2.minified.js index 3cb49a9b2998..4e7fcb74d458 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2.2.minified.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.1.normal.js index 332cea56c771..c41614befd8e 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.1.normal.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E = function E() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.2.minified.js index cbf5f9e5370e..9ea3e2634f89 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4.2.minified.js @@ -1,5 +1,5 @@ //// [esnextmodulekindWithES5Target4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export default function E() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/everyTypeAssignableToAny.1.normal.js b/crates/swc/tests/tsc-references/everyTypeAssignableToAny.1.normal.js index d2119702361a..e61204ef03b6 100644 --- a/crates/swc/tests/tsc-references/everyTypeAssignableToAny.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeAssignableToAny.1.normal.js @@ -1,5 +1,5 @@ //// [everyTypeAssignableToAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/everyTypeAssignableToAny.2.minified.js b/crates/swc/tests/tsc-references/everyTypeAssignableToAny.2.minified.js index 3302be814c3a..67e6d1faad62 100644 --- a/crates/swc/tests/tsc-references/everyTypeAssignableToAny.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeAssignableToAny.2.minified.js @@ -1,6 +1,6 @@ //// [everyTypeAssignableToAny.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.1.normal.js index cbecc668d74e..7ba25a0a476b 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.1.normal.js @@ -1,5 +1,5 @@ //// [everyTypeWithAnnotationAndInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.2.minified.js index 612b10b5d184..9be567a72711 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer.2.minified.js @@ -1,5 +1,5 @@ //// [everyTypeWithAnnotationAndInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.1.normal.js index 6d25705e2b89..2a4ca750d816 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.1.normal.js @@ -1,5 +1,5 @@ //// [everyTypeWithAnnotationAndInvalidInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.2.minified.js index 03b185d736b6..50a152d53698 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer.2.minified.js @@ -1,5 +1,5 @@ //// [everyTypeWithAnnotationAndInvalidInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, N, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithInitializer.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithInitializer.1.normal.js index c7a3e9419c6f..ef94f9f83fd2 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithInitializer.1.normal.js @@ -1,5 +1,5 @@ //// [everyTypeWithInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithInitializer.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithInitializer.2.minified.js index 1c84e0b6e07d..0b350c65dae5 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithInitializer.2.minified.js @@ -1,5 +1,5 @@ //// [everyTypeWithInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.1.normal.js b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.1.normal.js index e9fa9ca9de13..7a5192ab2dc9 100644 --- a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.1.normal.js +++ b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.1.normal.js @@ -1,5 +1,5 @@ //// [exnextmodulekindExportClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.2.minified.js b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.2.minified.js index e9fa9ca9de13..7a5192ab2dc9 100644 --- a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.2.minified.js +++ b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject.2.minified.js @@ -1,5 +1,5 @@ //// [exnextmodulekindExportClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/expandoOnAlias.1.normal.js b/crates/swc/tests/tsc-references/expandoOnAlias.1.normal.js index 358320dd01aa..006b6109074d 100644 --- a/crates/swc/tests/tsc-references/expandoOnAlias.1.normal.js +++ b/crates/swc/tests/tsc-references/expandoOnAlias.1.normal.js @@ -1,6 +1,6 @@ //// [expandoOnAlias.ts] //// [vue.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Vue = function Vue() { "use strict"; _class_call_check(this, Vue); diff --git a/crates/swc/tests/tsc-references/expandoOnAlias.2.minified.js b/crates/swc/tests/tsc-references/expandoOnAlias.2.minified.js index e0d17077869f..bc976db7be42 100644 --- a/crates/swc/tests/tsc-references/expandoOnAlias.2.minified.js +++ b/crates/swc/tests/tsc-references/expandoOnAlias.2.minified.js @@ -1,6 +1,6 @@ //// [expandoOnAlias.ts] //// [vue.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Vue = function Vue() { "use strict"; _class_call_check(this, Vue); diff --git a/crates/swc/tests/tsc-references/exportAndImport-es3-amd.1.normal.js b/crates/swc/tests/tsc-references/exportAndImport-es3-amd.1.normal.js index 6c59a2c36160..0ba6dd19df2a 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es3-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es3-amd.1.normal.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./m1" ], function(require, exports, _interop_require_default, _m1) { "use strict"; @@ -38,8 +38,7 @@ define([ return f2; } }); - _interop_require_default = _interop_require_default.default; - _m1 = /*#__PURE__*/ _interop_require_default(_m1); + _m1 = /*#__PURE__*/ _interop_require_default._(_m1); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAndImport-es3-amd.2.minified.js b/crates/swc/tests/tsc-references/exportAndImport-es3-amd.2.minified.js index bf38b0f807d4..65c263613088 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es3-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es3-amd.2.minified.js @@ -22,7 +22,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./m1" ], function(require, exports, _interop_require_default, _m1) { "use strict"; @@ -36,5 +36,5 @@ define([ get: function() { return f2; } - }), _m1 = (_interop_require_default = _interop_require_default.default)(_m1); + }), _m1 = _interop_require_default._(_m1); }); diff --git a/crates/swc/tests/tsc-references/exportAndImport-es3.1.normal.js b/crates/swc/tests/tsc-references/exportAndImport-es3.1.normal.js index 71eb9e3ba404..a4a07de2e86c 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es3.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es3.1.normal.js @@ -23,8 +23,8 @@ Object.defineProperty(exports, "default", { return f2; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAndImport-es3.2.minified.js b/crates/swc/tests/tsc-references/exportAndImport-es3.2.minified.js index f60d021caacb..c9d19d1db126 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es3.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es3.2.minified.js @@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { return f2; } }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("./m1")); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAndImport-es5-amd.1.normal.js b/crates/swc/tests/tsc-references/exportAndImport-es5-amd.1.normal.js index a2557801af42..907b8a76b999 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es5-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es5-amd.1.normal.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./m1" ], function(require, exports, _interop_require_default, _m1) { "use strict"; @@ -38,8 +38,7 @@ define([ return f2; } }); - _interop_require_default = _interop_require_default.default; - _m1 = /*#__PURE__*/ _interop_require_default(_m1); + _m1 = /*#__PURE__*/ _interop_require_default._(_m1); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAndImport-es5-amd.2.minified.js b/crates/swc/tests/tsc-references/exportAndImport-es5-amd.2.minified.js index 9729e52a06ac..fdc2ca2835d8 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es5-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es5-amd.2.minified.js @@ -22,7 +22,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./m1" ], function(require, exports, _interop_require_default, _m1) { "use strict"; @@ -36,5 +36,5 @@ define([ get: function() { return f2; } - }), _m1 = (_interop_require_default = _interop_require_default.default)(_m1); + }), _m1 = _interop_require_default._(_m1); }); diff --git a/crates/swc/tests/tsc-references/exportAndImport-es5.1.normal.js b/crates/swc/tests/tsc-references/exportAndImport-es5.1.normal.js index 84cbffeede94..a199650a7579 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es5.1.normal.js @@ -23,8 +23,8 @@ Object.defineProperty(exports, "default", { return f2; } }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAndImport-es5.2.minified.js b/crates/swc/tests/tsc-references/exportAndImport-es5.2.minified.js index 6321abb3194f..e44d38d3ea60 100644 --- a/crates/swc/tests/tsc-references/exportAndImport-es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAndImport-es5.2.minified.js @@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { return f2; } }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("./m1")); function f2() { (0, _m1.default)(); } diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).1.normal.js index b0ab32ac45d3..e10a9eb3a07b 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).1.normal.js @@ -28,7 +28,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -41,8 +41,7 @@ define([ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; }); @@ -50,15 +49,14 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).2.minified.js index 3f65087302e9..6c8bb0c1937f 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=amd).2.minified.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -36,17 +36,17 @@ define([ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; }); //// [2.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).1.normal.js index 422dd3cf8261..c2cff62e8626 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).1.normal.js @@ -30,8 +30,8 @@ Object.defineProperty(exports, "ns", { return _0; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _0 = /*#__PURE__*/ _interop_require_wildcard(require("./0")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _0 = /*#__PURE__*/ _interop_require_wildcard._(require("./0")); ns.a; ns.b; //// [2.ts] @@ -39,7 +39,7 @@ ns.b; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _1 = /*#__PURE__*/ _interop_require_wildcard(require("./1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _1 = /*#__PURE__*/ _interop_require_wildcard._(require("./1")); _1.ns.a; _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).2.minified.js index 978728a044b9..14d12d6cb0b4 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=commonjs).2.minified.js @@ -26,12 +26,12 @@ Object.defineProperty(exports, "__esModule", { return _0; } }); -var _0 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./0")); +var _0 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./0")); ns.a, ns.b; //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./1")); +var _1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./1")); _1.ns.a, _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).1.normal.js index a2ecf1efd592..450ce1340937 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).1.normal.js @@ -29,13 +29,13 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); })(this, function(exports, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -47,27 +47,25 @@ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); })(this, function(exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).2.minified.js index 1d3fa6154b8c..eceba3bd67b8 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace1(module=umd).2.minified.js @@ -24,11 +24,11 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); }(this, function(exports1, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -38,18 +38,18 @@ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); }(this, function(exports1, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).1.normal.js index b0ab32ac45d3..e10a9eb3a07b 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).1.normal.js @@ -28,7 +28,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -41,8 +41,7 @@ define([ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; }); @@ -50,15 +49,14 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).2.minified.js index 3f65087302e9..6c8bb0c1937f 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=amd).2.minified.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -36,17 +36,17 @@ define([ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; }); //// [2.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).1.normal.js index 422dd3cf8261..c2cff62e8626 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).1.normal.js @@ -30,8 +30,8 @@ Object.defineProperty(exports, "ns", { return _0; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _0 = /*#__PURE__*/ _interop_require_wildcard(require("./0")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _0 = /*#__PURE__*/ _interop_require_wildcard._(require("./0")); ns.a; ns.b; //// [2.ts] @@ -39,7 +39,7 @@ ns.b; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _1 = /*#__PURE__*/ _interop_require_wildcard(require("./1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _1 = /*#__PURE__*/ _interop_require_wildcard._(require("./1")); _1.ns.a; _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).2.minified.js index 978728a044b9..14d12d6cb0b4 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=commonjs).2.minified.js @@ -26,12 +26,12 @@ Object.defineProperty(exports, "__esModule", { return _0; } }); -var _0 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./0")); +var _0 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./0")); ns.a, ns.b; //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./1")); +var _1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./1")); _1.ns.a, _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).1.normal.js index a2ecf1efd592..450ce1340937 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).1.normal.js @@ -29,13 +29,13 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); })(this, function(exports, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -47,27 +47,25 @@ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); })(this, function(exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).2.minified.js index 1d3fa6154b8c..eceba3bd67b8 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace2(module=umd).2.minified.js @@ -24,11 +24,11 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); }(this, function(exports1, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -38,18 +38,18 @@ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); }(this, function(exports1, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).1.normal.js index ebeeb63a4610..c888313c33ec 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).1.normal.js @@ -28,7 +28,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -41,8 +41,7 @@ define([ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; var ns = { @@ -56,15 +55,14 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).2.minified.js index c4730eb1d071..e8e4b5128d57 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=amd).2.minified.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -36,7 +36,7 @@ define([ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; var ns = { a: 1, b: 2 @@ -47,11 +47,11 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], function(require, exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).1.normal.js index f658fa007eda..f81dac6c7271 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).1.normal.js @@ -30,8 +30,8 @@ Object.defineProperty(exports, "ns", { return _0; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _0 = /*#__PURE__*/ _interop_require_wildcard(require("./0")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _0 = /*#__PURE__*/ _interop_require_wildcard._(require("./0")); ns.a; ns.b; var ns = { @@ -45,7 +45,7 @@ ns.b; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _1 = /*#__PURE__*/ _interop_require_wildcard(require("./1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _1 = /*#__PURE__*/ _interop_require_wildcard._(require("./1")); _1.ns.a; _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).2.minified.js index 0a689eef55da..ac621867979a 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=commonjs).2.minified.js @@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { return _0; } }); -var _0 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./0")); +var _0 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./0")); ns.a, ns.b; var ns = { a: 1, @@ -38,5 +38,5 @@ ns.a, ns.b; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./1")); +var _1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./1")); _1.ns.a, _1.ns.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).1.normal.js index bfe0b56dd03c..ff0d149b5cd8 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).1.normal.js @@ -29,13 +29,13 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); })(this, function(exports, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -47,8 +47,7 @@ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); ns.a; ns.b; var ns = { @@ -60,20 +59,19 @@ }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); })(this, function(exports, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _1 = /*#__PURE__*/ _interop_require_wildcard(_1); + _1 = /*#__PURE__*/ _interop_require_wildcard._(_1); _1.ns.a; _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).2.minified.js index 52d82fef699f..efc3a5ae3195 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace3(module=umd).2.minified.js @@ -24,11 +24,11 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); }(this, function(exports1, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -38,7 +38,7 @@ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0), ns.a, ns.b; + }), _0 = _interop_require_wildcard._(_0), ns.a, ns.b; var ns = { a: 1, b: 2 @@ -47,14 +47,14 @@ }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./1")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./1")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./1" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs, global["1"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard, global["1"]); }(this, function(exports1, _interop_require_wildcard, _1) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), (_1 = (_interop_require_wildcard = _interop_require_wildcard.default)(_1)).ns.a, _1.ns.b; + }), (_1 = _interop_require_wildcard._(_1)).ns.a, _1.ns.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).1.normal.js index c6b07481ad07..e04239c1c229 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).1.normal.js @@ -28,7 +28,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -41,14 +41,13 @@ define([ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); }); //// [11.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -61,15 +60,14 @@ define([ return _default; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); var _default = _0; }); //// [2.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./1", "./11" ], function(require, exports, _interop_require_default, _1, _11) { @@ -77,9 +75,8 @@ define([ Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_default = _interop_require_default.default; - _1 = /*#__PURE__*/ _interop_require_default(_1); - _11 = /*#__PURE__*/ _interop_require_default(_11); + _1 = /*#__PURE__*/ _interop_require_default._(_1); + _11 = /*#__PURE__*/ _interop_require_default._(_11); _1.default.a; _11.default.a; _1.default.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).2.minified.js index 34707ea23e1a..26f81648eb96 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=amd).2.minified.js @@ -25,7 +25,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -36,13 +36,13 @@ define([ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0); + }), _0 = _interop_require_wildcard._(_0); }); //// [11.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], function(require, exports, _interop_require_wildcard, _0) { "use strict"; @@ -54,18 +54,18 @@ define([ return _default; } }); - var _default = _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0); + var _default = _0 = _interop_require_wildcard._(_0); }); //// [2.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./1", "./11" ], function(require, exports, _interop_require_default, _1, _11) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _1 = (_interop_require_default = _interop_require_default.default)(_1), _11 = _interop_require_default(_11), _1.default.a, _11.default.a, _1.default.b, _11.default.b; + }), _1 = _interop_require_default._(_1), _11 = _interop_require_default._(_11), _1.default.a, _11.default.a, _1.default.b, _11.default.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).1.normal.js index 1546ce5d67c4..12e29d463652 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).1.normal.js @@ -30,8 +30,8 @@ Object.defineProperty(exports, "default", { return _0; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _0 = /*#__PURE__*/ _interop_require_wildcard(require("./0")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _0 = /*#__PURE__*/ _interop_require_wildcard._(require("./0")); //// [11.ts] "use strict"; Object.defineProperty(exports, "__esModule", { @@ -43,17 +43,17 @@ Object.defineProperty(exports, "default", { return _default; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _0 = /*#__PURE__*/ _interop_require_wildcard(require("./0")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _0 = /*#__PURE__*/ _interop_require_wildcard._(require("./0")); var _default = _0; //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _1 = /*#__PURE__*/ _interop_require_default(require("./1")); -var _11 = /*#__PURE__*/ _interop_require_default(require("./11")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _1 = /*#__PURE__*/ _interop_require_default._(require("./1")); +var _11 = /*#__PURE__*/ _interop_require_default._(require("./11")); _1.default.a; _11.default.a; _1.default.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).2.minified.js index 0ec55f562da3..12b35e2f0ce6 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=commonjs).2.minified.js @@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { return _0; } }); -var _0 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./0")); +var _0 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./0")); //// [11.ts] "use strict"; Object.defineProperty(exports, "__esModule", { @@ -37,11 +37,11 @@ Object.defineProperty(exports, "__esModule", { return _default; } }); -var _default = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./0")); +var _default = require("@swc/helpers/_/_interop_require_wildcard")._(require("./0")); //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default, _1 = _interop_require_default(require("./1")), _11 = _interop_require_default(require("./11")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"), _1 = _interop_require_default._(require("./1")), _11 = _interop_require_default._(require("./11")); _1.default.a, _11.default.a, _1.default.b, _11.default.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).1.normal.js index 7d55729f6891..79a7b78fd9ed 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).1.normal.js @@ -29,13 +29,13 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); })(this, function(exports, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -47,18 +47,17 @@ return _0; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); }); //// [11.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.11Ts = {}, global.interopRequireWildcardMjs, global["0"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.11Ts = {}, global.interopRequireWildcard, global["0"]); })(this, function(exports, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -70,28 +69,26 @@ return _default; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - _0 = /*#__PURE__*/ _interop_require_wildcard(_0); + _0 = /*#__PURE__*/ _interop_require_wildcard._(_0); var _default = _0; }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_default.mjs"), require("./1"), require("./11")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_default"), require("./1"), require("./11")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./1", "./11" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireDefaultMjs, global["1"], global["11"]); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireDefault, global["1"], global["11"]); })(this, function(exports, _interop_require_default, _1, _11) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_default = _interop_require_default.default; - _1 = /*#__PURE__*/ _interop_require_default(_1); - _11 = /*#__PURE__*/ _interop_require_default(_11); + _1 = /*#__PURE__*/ _interop_require_default._(_1); + _11 = /*#__PURE__*/ _interop_require_default._(_11); _1.default.a; _11.default.a; _1.default.b; diff --git a/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).2.minified.js index c34488b9ed2f..4755107626cf 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace4(module=umd).2.minified.js @@ -24,11 +24,11 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs, global["0"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard, global["0"]); }(this, function(exports1, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -38,15 +38,15 @@ get: function() { return _0; } - }), _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0); + }), _0 = _interop_require_wildcard._(_0); }); //// [11.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("./0")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard"), require("./0")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./0" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.11Ts = {}, global.interopRequireWildcardMjs, global["0"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.11Ts = {}, global.interopRequireWildcard, global["0"]); }(this, function(exports1, _interop_require_wildcard, _0) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -57,19 +57,19 @@ return _default; } }); - var _default = _0 = (_interop_require_wildcard = _interop_require_wildcard.default)(_0); + var _default = _0 = _interop_require_wildcard._(_0); }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_default.mjs"), require("./1"), require("./11")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_default"), require("./1"), require("./11")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./1", "./11" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireDefaultMjs, global["1"], global["11"]); + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireDefault, global["1"], global["11"]); }(this, function(exports1, _interop_require_default, _1, _11) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _1 = (_interop_require_default = _interop_require_default.default)(_1), _11 = _interop_require_default(_11), _1.default.a, _11.default.a, _1.default.b, _11.default.b; + }), _1 = _interop_require_default._(_1), _11 = _interop_require_default._(_11), _1.default.a, _11.default.a, _1.default.b, _11.default.b; }); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.1.normal.js index a84b39fcd5fc..9c7588fcc9b4 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.1.normal.js @@ -14,5 +14,5 @@ Object.defineProperty(exports, "ns", { return _a; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _a = /*#__PURE__*/ _interop_require_wildcard(require("./a")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _a = /*#__PURE__*/ _interop_require_wildcard._(require("./a")); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.2.minified.js index 8ca9acbb41bc..60191cb236f6 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace_exportAssignment.2.minified.js @@ -13,4 +13,4 @@ Object.defineProperty(exports, "__esModule", { return _a; } }); -var _a = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./a")); +var _a = require("@swc/helpers/_/_interop_require_wildcard")._(require("./a")); diff --git a/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.1.normal.js b/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.1.normal.js index 84ac05f5d424..71944465ad93 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.1.normal.js @@ -16,6 +16,6 @@ Object.defineProperty(exports, "ns", { return _a; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _a = /*#__PURE__*/ _interop_require_wildcard(require("./a")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _a = /*#__PURE__*/ _interop_require_wildcard._(require("./a")); // Error diff --git a/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.2.minified.js b/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.2.minified.js index ef446699948a..c2040cf196a0 100644 --- a/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAsNamespace_missingEmitHelpers.2.minified.js @@ -15,4 +15,4 @@ Object.defineProperty(exports, "__esModule", { return _a; } }); -var _a = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./a")); +var _a = require("@swc/helpers/_/_interop_require_wildcard")._(require("./a")); diff --git a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.1.normal.js index 13db2f6a5922..147ea2b9e26a 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.1.normal.js @@ -1,10 +1,9 @@ //// [foo_0.ts] define([ "require", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, _class_call_check) { "use strict"; - _class_call_check = _class_call_check.default; var E1; (function(E1) { E1[E1["A"] = 0] = "A"; @@ -13,7 +12,7 @@ define([ })(E1 || (E1 = {})); var C1 = function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); }; return C1; }); diff --git a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.2.minified.js index 82028de6d9fd..61968397e01a 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration.2.minified.js @@ -1,12 +1,12 @@ //// [foo_0.ts] define([ "require", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, _class_call_check) { "use strict"; var E1, E11; - return _class_call_check = _class_call_check.default, (E1 = E11 || (E11 = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C", function C1() { + return (E1 = E11 || (E11 = {}))[E1.A = 0] = "A", E1[E1.B = 1] = "B", E1[E1.C = 2] = "C", function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); }; }); diff --git a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.1.normal.js index dbf5c6d556f0..4f7aea7a9475 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.1.normal.js @@ -1,9 +1,9 @@ //// [foo_0.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Foo = function Foo(x) { "use strict"; - _class_call_check(this, Foo); + _class_call_check._(this, Foo); }; module.exports = Foo; //// [foo_1.ts] diff --git a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.2.minified.js index 35d976922acb..64480974e2a7 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType.2.minified.js @@ -1,9 +1,9 @@ //// [foo_0.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); module.exports = function Foo(x) { "use strict"; - _class_call_check(this, Foo); + _class_call_check._(this, Foo); }; //// [foo_1.ts] "use strict"; diff --git a/crates/swc/tests/tsc-references/exportAssignmentGenericType.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentGenericType.1.normal.js index 4f219fbdda12..9592cc1ed893 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentGenericType.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentGenericType.1.normal.js @@ -1,9 +1,9 @@ //// [foo_0.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Foo = function Foo() { "use strict"; - _class_call_check(this, Foo); + _class_call_check._(this, Foo); }; module.exports = Foo; //// [foo_1.ts] diff --git a/crates/swc/tests/tsc-references/exportAssignmentGenericType.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentGenericType.2.minified.js index 7efcf261b975..3871eca4d96e 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentGenericType.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentGenericType.2.minified.js @@ -1,9 +1,9 @@ //// [foo_0.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); module.exports = function Foo() { "use strict"; - _class_call_check(this, Foo); + _class_call_check._(this, Foo); }; //// [foo_1.ts] "use strict"; diff --git a/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.1.normal.js index 26d92d2a16b8..375291d8d70b 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.1.normal.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -const _a = /*#__PURE__*/ _interop_require_default(require("a")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +const _a = /*#__PURE__*/ _interop_require_default._(require("a")); (0, _a.default)(); //// [external.d.ts] "use strict"; diff --git a/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.2.minified.js index 71b42ea33067..f8b20cf91089 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentOfExportNamespaceWithDefault.2.minified.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default, _a = _interop_require_default(require("a")); +const _interop_require_default = require("@swc/helpers/_/_interop_require_default"), _a = _interop_require_default._(require("a")); (0, _a.default)(); //// [external.d.ts] "use strict"; diff --git a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.1.normal.js index 75ebacfb97fd..ad2487137778 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.1.normal.js @@ -1,13 +1,12 @@ //// [foo_0.ts] define([ "require", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, _class_call_check) { "use strict"; - _class_call_check = _class_call_check.default; var Foo = function Foo() { "use strict"; - _class_call_check(this, Foo); + _class_call_check._(this, Foo); this.test = "test"; }; (function(Foo) { diff --git a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.2.minified.js index a83990c38d4a..15ba983f0cb8 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule.2.minified.js @@ -1,13 +1,12 @@ //// [foo_0.ts] define([ "require", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, _class_call_check) { "use strict"; - _class_call_check = _class_call_check.default; var Foo = function Foo() { "use strict"; - _class_call_check(this, Foo), this.test = "test"; + _class_call_check._(this, Foo), this.test = "test"; }; return (Foo || (Foo = {})).answer = 42, Foo; }); diff --git a/crates/swc/tests/tsc-references/exportBinding.1.normal.js b/crates/swc/tests/tsc-references/exportBinding.1.normal.js index 8a009cc7e737..f09c5457ea8b 100644 --- a/crates/swc/tests/tsc-references/exportBinding.1.normal.js +++ b/crates/swc/tests/tsc-references/exportBinding.1.normal.js @@ -1,5 +1,5 @@ //// [exportConsts.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export { x }; export { x as xx }; export default x; diff --git a/crates/swc/tests/tsc-references/exportBinding.2.minified.js b/crates/swc/tests/tsc-references/exportBinding.2.minified.js index d3b05f3472fe..785510724084 100644 --- a/crates/swc/tests/tsc-references/exportBinding.2.minified.js +++ b/crates/swc/tests/tsc-references/exportBinding.2.minified.js @@ -1,5 +1,5 @@ //// [exportConsts.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export default x; var x = "x"; var Y = function Y() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.1.normal.js index 05c5fd9e0272..02105732a9d2 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.1.normal.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -14,9 +14,8 @@ define([ return Object; } }); - _class_call_check = _class_call_check.default; var Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; }); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.2.minified.js index ec4df2f8d4a6..57ce753e6eb8 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD.2.minified.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -12,9 +12,9 @@ define([ get: function() { return Object; } - }), _class_call_check = _class_call_check.default; + }); var Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; }); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.1.normal.js index c77c8246cb92..d58dd9326508 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.1.normal.js @@ -9,8 +9,8 @@ Object.defineProperty(exports, "Object", { return Object; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.2.minified.js index 12bd6e92303c..ea1dd0b1832e 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS.2.minified.js @@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { return Object; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, Object = function Object() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.1.normal.js index 074bba30b623..4a733c3b8bf9 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.1.normal.js @@ -1,13 +1,13 @@ //// [exportClassNameWithObjectSystem.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check, Object; return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.2.minified.js index a620cbbe974e..678a249bc04b 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem.2.minified.js @@ -1,13 +1,13 @@ //// [exportClassNameWithObjectSystem.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check; return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.1.normal.js index 638776630cea..c6f6e188b032 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.1.normal.js @@ -1,11 +1,11 @@ //// [exportClassNameWithObjectUMD.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_class_call_check.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_class_call_check")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.exportClassNameWithObjectUMDTs = {}, global.classCallCheckMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.exportClassNameWithObjectUMDTs = {}, global.classCallCheck); })(this, function(exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -17,9 +17,8 @@ return Object; } }); - _class_call_check = _class_call_check.default; var Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; }); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.2.minified.js index 389aa4c6301a..e916e030cd57 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD.2.minified.js @@ -1,9 +1,9 @@ //// [exportClassNameWithObjectUMD.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_class_call_check.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_class_call_check")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_class_call_check.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.exportClassNameWithObjectUMDTs = {}, global.classCallCheckMjs); + "@swc/helpers/_/_class_call_check" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.exportClassNameWithObjectUMDTs = {}, global.classCallCheck); }(this, function(exports1, _class_call_check) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -13,9 +13,9 @@ get: function() { return Object; } - }), _class_call_check = _class_call_check.default; + }); var Object = function Object() { "use strict"; - _class_call_check(this, Object); + _class_call_check._(this, Object); }; }); diff --git a/crates/swc/tests/tsc-references/exportCodeGen.1.normal.js b/crates/swc/tests/tsc-references/exportCodeGen.1.normal.js index 10be449bb5bc..926bb81ee2c6 100644 --- a/crates/swc/tests/tsc-references/exportCodeGen.1.normal.js +++ b/crates/swc/tests/tsc-references/exportCodeGen.1.normal.js @@ -1,7 +1,7 @@ //// [exportCodeGen.ts] // should replace all refs to 'x' in the body, // with fully qualified -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var lt12 = function lt12() { diff --git a/crates/swc/tests/tsc-references/exportCodeGen.2.minified.js b/crates/swc/tests/tsc-references/exportCodeGen.2.minified.js index e42f4704db70..4090018c7c3b 100644 --- a/crates/swc/tests/tsc-references/exportCodeGen.2.minified.js +++ b/crates/swc/tests/tsc-references/exportCodeGen.2.minified.js @@ -1,6 +1,6 @@ //// [exportCodeGen.ts] var A, B, C, D, E, F; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (A || (A = {})).x = 12, B || (B = {}), C || (C = {}), (D || (D = {})).yes = function() { return !0; }, function(E) { diff --git a/crates/swc/tests/tsc-references/exportDeclaration.1.normal.js b/crates/swc/tests/tsc-references/exportDeclaration.1.normal.js index 08ff48a7afbe..54ace94705f8 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDeclaration.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportDeclaration.2.minified.js b/crates/swc/tests/tsc-references/exportDeclaration.2.minified.js index af5ab440381e..e1150fe55a98 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDeclaration.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] import { A } from "./a"; new A(); diff --git a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.1.normal.js b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.1.normal.js index 68ed939fa0be..22b6f9f0bb89 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.2.minified.js b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.2.minified.js index 68ed939fa0be..22b6f9f0bb89 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.1.normal.js b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.1.normal.js index 58376b5400d1..02d8748b7fd3 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.1.normal.js @@ -1,5 +1,5 @@ //// [exportDefaultClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.2.minified.js b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.2.minified.js index 58376b5400d1..02d8748b7fd3 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject.2.minified.js @@ -1,5 +1,5 @@ //// [exportDefaultClassNameWithObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportImportAlias.1.normal.js b/crates/swc/tests/tsc-references/exportImportAlias.1.normal.js index fe6ef7586f24..f1cad7649dff 100644 --- a/crates/swc/tests/tsc-references/exportImportAlias.1.normal.js +++ b/crates/swc/tests/tsc-references/exportImportAlias.1.normal.js @@ -1,6 +1,6 @@ //// [exportImportAlias.ts] // expect no errors here -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var x = A.x = "hello world"; diff --git a/crates/swc/tests/tsc-references/exportImportAlias.2.minified.js b/crates/swc/tests/tsc-references/exportImportAlias.2.minified.js index 7d87d377c448..f408a9b7c9ec 100644 --- a/crates/swc/tests/tsc-references/exportImportAlias.2.minified.js +++ b/crates/swc/tests/tsc-references/exportImportAlias.2.minified.js @@ -1,6 +1,6 @@ //// [exportImportAlias.ts] var A, C, X, Z, K, M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { A.x = "hello world", A.Point = function Point(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/exportNamespace1.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace1.1.normal.js index 1f4cabdf87fb..412f238fddf2 100644 --- a/crates/swc/tests/tsc-references/exportNamespace1.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace1.1.normal.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace1.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace1.2.minified.js index ee83c7cbfcfd..1f5c9c712e75 100644 --- a/crates/swc/tests/tsc-references/exportNamespace1.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace1.2.minified.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace10.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace10.1.normal.js index 1ec3a1280ef4..5f5527926347 100644 --- a/crates/swc/tests/tsc-references/exportNamespace10.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace10.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace10.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace10.2.minified.js index 3949328fd605..b370e134461e 100644 --- a/crates/swc/tests/tsc-references/exportNamespace10.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace10.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace2.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace2.1.normal.js index 1cea91453523..1c9f1eb5aabf 100644 --- a/crates/swc/tests/tsc-references/exportNamespace2.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace2.1.normal.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace2.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace2.2.minified.js index 54d8a35fb793..dbd32a2d5451 100644 --- a/crates/swc/tests/tsc-references/exportNamespace2.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace2.2.minified.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace3.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace3.1.normal.js index eda4a1bfb52d..1ba2b1ffc668 100644 --- a/crates/swc/tests/tsc-references/exportNamespace3.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace3.1.normal.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace3.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace3.2.minified.js index 6043129b4881..454c15b2eae4 100644 --- a/crates/swc/tests/tsc-references/exportNamespace3.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace3.2.minified.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace4.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace4.1.normal.js index 46a03805ce09..1340d8ceb168 100644 --- a/crates/swc/tests/tsc-references/exportNamespace4.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace4.1.normal.js @@ -1,6 +1,6 @@ //// [exportNamespace4.ts] //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace4.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace4.2.minified.js index 4d9e51994e2f..6f8c973d4386 100644 --- a/crates/swc/tests/tsc-references/exportNamespace4.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace4.2.minified.js @@ -1,6 +1,6 @@ //// [exportNamespace4.ts] //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace5.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace5.1.normal.js index 314c8c79fffd..f84a9ed743fb 100644 --- a/crates/swc/tests/tsc-references/exportNamespace5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace5.1.normal.js @@ -1,6 +1,6 @@ //// [exportNamespace5.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace5.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace5.2.minified.js index b81bdcba6172..b55435fba12c 100644 --- a/crates/swc/tests/tsc-references/exportNamespace5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace5.2.minified.js @@ -1,6 +1,6 @@ //// [exportNamespace5.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace6.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace6.1.normal.js index b3009b670709..569341ef935c 100644 --- a/crates/swc/tests/tsc-references/exportNamespace6.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace6.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace6.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace6.2.minified.js index 09df562008be..3acde932f0e9 100644 --- a/crates/swc/tests/tsc-references/exportNamespace6.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace6.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace7.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace7.1.normal.js index a94803111419..d9e984515201 100644 --- a/crates/swc/tests/tsc-references/exportNamespace7.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace7.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); @@ -13,7 +13,7 @@ export var C = function C() { _class_call_check(this, C); }; //// [/b.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/exportNamespace7.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace7.2.minified.js index 1031618da4c7..7cf6d8442898 100644 --- a/crates/swc/tests/tsc-references/exportNamespace7.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace7.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); @@ -13,7 +13,7 @@ export var C = function C() { _class_call_check(this, C); }; //// [/b.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/exportNamespace8.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace8.1.normal.js index 9ad0c87d7335..231f9ccb5e6b 100644 --- a/crates/swc/tests/tsc-references/exportNamespace8.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace8.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); @@ -9,7 +9,7 @@ export var B = function B() { _class_call_check(this, B); }; //// [/b.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/exportNamespace8.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace8.2.minified.js index 9e77ae6c1f06..f27b1ae289e4 100644 --- a/crates/swc/tests/tsc-references/exportNamespace8.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace8.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); @@ -9,7 +9,7 @@ export var B = function B() { _class_call_check(this, B); }; //// [/b.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/exportNestedNamespaces.1.normal.js b/crates/swc/tests/tsc-references/exportNestedNamespaces.1.normal.js index fc6dcd2c85a9..2a012a2ad5aa 100644 --- a/crates/swc/tests/tsc-references/exportNestedNamespaces.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNestedNamespaces.1.normal.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exports.n = {}; exports.n.K = function() { this.x = 10; diff --git a/crates/swc/tests/tsc-references/exportNestedNamespaces.2.minified.js b/crates/swc/tests/tsc-references/exportNestedNamespaces.2.minified.js index 490b9ea4f7fc..c6c0b8cd5655 100644 --- a/crates/swc/tests/tsc-references/exportNestedNamespaces.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNestedNamespaces.2.minified.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exports.n = {}, exports.n.K = function() { this.x = 10; }, exports.Classic = function _class() { diff --git a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.1.normal.js b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.1.normal.js index 109bad0cd759..a14726df511e 100644 --- a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.1.normal.js +++ b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.1.normal.js @@ -1,5 +1,5 @@ //// [bug24492.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.D = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.2.minified.js b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.2.minified.js index 128e001fce24..1e664cf7dd0b 100644 --- a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.2.minified.js +++ b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution.2.minified.js @@ -1,5 +1,5 @@ //// [bug24492.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.D = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/exportStar-amd.1.normal.js b/crates/swc/tests/tsc-references/exportStar-amd.1.normal.js index 020b2dd51ac9..f071390498b9 100644 --- a/crates/swc/tests/tsc-references/exportStar-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportStar-amd.1.normal.js @@ -90,7 +90,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_export_star.mjs", + "@swc/helpers/_/_export_star", "./t1", "./t2", "./t3" @@ -99,24 +99,22 @@ define([ Object.defineProperty(exports, "__esModule", { value: true }); - _export_star = _export_star.default; - _export_star(_t1, exports); - _export_star(_t2, exports); - _export_star(_t3, exports); + _export_star._(_t1, exports); + _export_star._(_t2, exports); + _export_star._(_t3, exports); }); //// [main.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t4" ], function(require, exports, _interop_require_wildcard, _t4) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _t4 = /*#__PURE__*/ _interop_require_wildcard(_t4); + _t4 = /*#__PURE__*/ _interop_require_wildcard._(_t4); _t4.default; _t4.x; _t4.y; diff --git a/crates/swc/tests/tsc-references/exportStar-amd.2.minified.js b/crates/swc/tests/tsc-references/exportStar-amd.2.minified.js index 2959598d5699..ad1f8a7e9a7c 100644 --- a/crates/swc/tests/tsc-references/exportStar-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportStar-amd.2.minified.js @@ -79,7 +79,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_export_star.mjs", + "@swc/helpers/_/_export_star", "./t1", "./t2", "./t3" @@ -87,17 +87,17 @@ define([ "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), (_export_star = _export_star.default)(_t1, exports), _export_star(_t2, exports), _export_star(_t3, exports); + }), _export_star._(_t1, exports), _export_star._(_t2, exports), _export_star._(_t3, exports); }); //// [main.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t4" ], function(require, exports, _interop_require_wildcard, _t4) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), (_t4 = (_interop_require_wildcard = _interop_require_wildcard.default)(_t4)).default, _t4.x, _t4.y, _t4.z, _t4.foo; + }), (_t4 = _interop_require_wildcard._(_t4)).default, _t4.x, _t4.y, _t4.z, _t4.foo; }); diff --git a/crates/swc/tests/tsc-references/exportStar.1.normal.js b/crates/swc/tests/tsc-references/exportStar.1.normal.js index 6c3c8222351c..63a88d028eeb 100644 --- a/crates/swc/tests/tsc-references/exportStar.1.normal.js +++ b/crates/swc/tests/tsc-references/exportStar.1.normal.js @@ -72,17 +72,17 @@ var z = "z"; Object.defineProperty(exports, "__esModule", { value: true }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; -_export_star(require("./t1"), exports); -_export_star(require("./t2"), exports); -_export_star(require("./t3"), exports); +var _export_star = require("@swc/helpers/_/_export_star"); +_export_star._(require("./t1"), exports); +_export_star._(require("./t2"), exports); +_export_star._(require("./t3"), exports); //// [main.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _t4 = /*#__PURE__*/ _interop_require_wildcard(require("./t4")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _t4 = /*#__PURE__*/ _interop_require_wildcard._(require("./t4")); _t4.default; _t4.x; _t4.y; diff --git a/crates/swc/tests/tsc-references/exportStar.2.minified.js b/crates/swc/tests/tsc-references/exportStar.2.minified.js index 72ab0b5ee2a1..fbd192f93357 100644 --- a/crates/swc/tests/tsc-references/exportStar.2.minified.js +++ b/crates/swc/tests/tsc-references/exportStar.2.minified.js @@ -63,12 +63,12 @@ var x = "x", y = "y", z = "z"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _export_star = require("@swc/helpers/lib/_export_star.js").default; -_export_star(require("./t1"), exports), _export_star(require("./t2"), exports), _export_star(require("./t3"), exports); +var _export_star = require("@swc/helpers/_/_export_star"); +_export_star._(require("./t1"), exports), _export_star._(require("./t2"), exports), _export_star._(require("./t3"), exports); //// [main.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _t4 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./t4")); +var _t4 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./t4")); _t4.default, _t4.x, _t4.y, _t4.z, _t4.foo; diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-amd.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports1-amd.1.normal.js index 55d86f4d93c9..91e18670222c 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-amd.1.normal.js @@ -8,7 +8,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -43,12 +43,11 @@ define([ return a; } }); - _class_call_check = _class_call_check.default; var v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-amd.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports1-amd.2.minified.js index 744a7e5c2ee6..8792db3d895e 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-amd.2.minified.js @@ -6,7 +6,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -38,12 +38,12 @@ define([ a: function() { return a; } - }), _class_call_check = _class_call_check.default; + }); var E, D, x, E1, D1, M, v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; (E = E1 || (E1 = {}))[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C", (D = D1 || (D1 = {}))[D.A = 0] = "A", D[D.B = 1] = "B", D[D.C = 2] = "C", (M || (M = {})).x = x; var a = M.x; diff --git a/crates/swc/tests/tsc-references/exportsAndImports1.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports1.1.normal.js index 14a189dba270..4046f8ebb7c6 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1.1.normal.js @@ -34,12 +34,12 @@ _export(exports, { return a; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/exportsAndImports1.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports1.2.minified.js index 7ceb7ea22a04..5bcd02186545 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1.2.minified.js @@ -32,11 +32,11 @@ Object.defineProperty(exports, "__esModule", { return a; } }); -var E, D, M, _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, v = 1; +var E, D, M, _class_call_check = require("@swc/helpers/_/_class_call_check"), v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; !function(E) { E[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C"; diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-amd.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports3-amd.1.normal.js index d7135f179227..a284b7e6f061 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-amd.1.normal.js @@ -8,7 +8,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -64,12 +64,11 @@ define([ return a; } }); - _class_call_check = _class_call_check.default; var v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-amd.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports3-amd.2.minified.js index 2da9d67ea19b..f2fccd609e82 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-amd.2.minified.js @@ -6,7 +6,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -59,12 +59,12 @@ define([ a1: function() { return a; } - }), _class_call_check = _class_call_check.default; + }); var E, D, x, E1, D1, M, v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; (E = E1 || (E1 = {}))[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C", (D = D1 || (D1 = {}))[D.A = 0] = "A", D[D.B = 1] = "B", D[D.C = 2] = "C", (M || (M = {})).x = x; var a = M.x; diff --git a/crates/swc/tests/tsc-references/exportsAndImports3.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports3.1.normal.js index 955c24536bcd..1fd19e4d534d 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3.1.normal.js @@ -55,12 +55,12 @@ _export(exports, { return a; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/exportsAndImports3.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports3.2.minified.js index 95ee55b479aa..035af53d3ce9 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3.2.minified.js @@ -53,11 +53,11 @@ Object.defineProperty(exports, "__esModule", { return a; } }); -var E, D, M, _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, v = 1; +var E, D, M, _class_call_check = require("@swc/helpers/_/_class_call_check"), v = 1; function f() {} var C = function C() { "use strict"; - _class_call_check(this, C); + _class_call_check._(this, C); }; !function(E) { E[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C"; diff --git a/crates/swc/tests/tsc-references/exportsAndImports4-amd.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports4-amd.1.normal.js index 788093f14cfe..cac5992a07e9 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4-amd.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4-amd.1.normal.js @@ -25,15 +25,14 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t1" ], function(require, exports, _interop_require_wildcard, _t1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - var _t11 = /*#__PURE__*/ _interop_require_wildcard(_t1); + var _t11 = /*#__PURE__*/ _interop_require_wildcard._(_t1); _t1.default; _t11.default; _t11.default; @@ -47,7 +46,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t1" ], function(require, exports, _interop_require_wildcard, _t1) { "use strict"; @@ -86,8 +85,7 @@ define([ return _t11.default; } }); - _interop_require_wildcard = _interop_require_wildcard.default; - var _t11 = /*#__PURE__*/ _interop_require_wildcard(_t1); + var _t11 = /*#__PURE__*/ _interop_require_wildcard._(_t1); _t1.default; _t11.default; _t11.default; diff --git a/crates/swc/tests/tsc-references/exportsAndImports4-amd.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports4-amd.2.minified.js index 6c4e396a9b21..3363f17c2466 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4-amd.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4-amd.2.minified.js @@ -22,21 +22,21 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t1" ], function(require, exports, _interop_require_wildcard, _t1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); - var _t11 = (_interop_require_wildcard = _interop_require_wildcard.default)(_t1); + var _t11 = _interop_require_wildcard._(_t1); _t1.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default; }); //// [t3.ts] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "./t1" ], function(require, exports, _interop_require_wildcard, _t1) { "use strict"; @@ -73,6 +73,6 @@ define([ return _t11.default; } }); - var _t11 = (_interop_require_wildcard = _interop_require_wildcard.default)(_t1); + var _t11 = _interop_require_wildcard._(_t1); _t1.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default, _t11.default; }); diff --git a/crates/swc/tests/tsc-references/exportsAndImports4-es6.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports4-es6.1.normal.js index bfc5ac494038..652c371c5354 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4-es6.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4-es6.1.normal.js @@ -15,8 +15,8 @@ const _default = "hello"; Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _t1 = /*#__PURE__*/ _interop_require_wildcard(require("./t1")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _t1 = /*#__PURE__*/ _interop_require_wildcard._(require("./t1")); const a = require("./t1"); a.default; _t1.default; @@ -47,8 +47,8 @@ _export(exports, { f1: ()=>_t1.default, f2: ()=>_t1.default }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _t1 = /*#__PURE__*/ _interop_require_wildcard(require("./t1")); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _t1 = /*#__PURE__*/ _interop_require_wildcard._(require("./t1")); const a = require("./t1"); a.default; _t1.default; diff --git a/crates/swc/tests/tsc-references/exportsAndImports4-es6.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports4-es6.2.minified.js index 38ecfcd1ab24..cfecd4c2b271 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4-es6.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4-es6.2.minified.js @@ -14,7 +14,7 @@ const _default = "hello"; Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, _t1 = _interop_require_wildcard(require("./t1")), a = require("./t1"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), _t1 = _interop_require_wildcard._(require("./t1")), a = require("./t1"); a.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default; //// [t3.ts] "use strict"; @@ -35,5 +35,5 @@ Object.defineProperty(exports, "__esModule", { f1: ()=>_t1.default, f2: ()=>_t1.default }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, _t1 = _interop_require_wildcard(require("./t1")), a = require("./t1"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), _t1 = _interop_require_wildcard._(require("./t1")), a = require("./t1"); a.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default; diff --git a/crates/swc/tests/tsc-references/exportsAndImports4.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports4.1.normal.js index abf5d95183ed..5a2443bb97ea 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4.1.normal.js @@ -17,8 +17,8 @@ var _default = "hello"; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _t1 = /*#__PURE__*/ _interop_require_wildcard(require("./t1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _t1 = /*#__PURE__*/ _interop_require_wildcard._(require("./t1")); var a = require("./t1"); a.default; _t1.default; @@ -65,8 +65,8 @@ _export(exports, { return _t1.default; } }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _t1 = /*#__PURE__*/ _interop_require_wildcard(require("./t1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _t1 = /*#__PURE__*/ _interop_require_wildcard._(require("./t1")); var a = require("./t1"); a.default; _t1.default; diff --git a/crates/swc/tests/tsc-references/exportsAndImports4.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports4.2.minified.js index 53ad9bdd995f..733706c8667a 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports4.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports4.2.minified.js @@ -16,7 +16,7 @@ var _default = "hello"; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _t1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./t1")); +var _t1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./t1")); require("./t1").default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default; //// [t3.ts] "use strict"; @@ -53,5 +53,5 @@ Object.defineProperty(exports, "__esModule", { return _t1.default; } }); -var _t1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./t1")), a = require("./t1"); +var _t1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./t1")), a = require("./t1"); a.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default, _t1.default; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.1.normal.js index 8da8b8153c12..4e06f9f43e90 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.1.normal.js @@ -25,8 +25,8 @@ var as = 100; Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _t1 = /*#__PURE__*/ _interop_require_wildcard(require("./t1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _t1 = /*#__PURE__*/ _interop_require_wildcard._(require("./t1")); var x = _t1.as; var y = _t1.return; //// [t3.ts] diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.2.minified.js index d6b4f083e76e..e81c41e81792 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithContextualKeywordNames02.2.minified.js @@ -23,7 +23,7 @@ var as = 100; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _t1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./t1")); +var _t1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./t1")); _t1.as, _t1.return; //// [t3.ts] "use strict"; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.1.normal.js index 58be927c300f..3ca90d11ab45 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.1.normal.js @@ -21,6 +21,6 @@ var _default = R = { Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); var __esmodule = _m1.default.__esmodule, __proto__ = _m1.default.__proto__; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.2.minified.js index b5550d774abc..158690456c73 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores2.2.minified.js @@ -19,5 +19,5 @@ var _default = { Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("./m1")); _m1.default.__esmodule, _m1.default.__proto__; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.1.normal.js index 63e8bb2917bf..47bce16cea69 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.1.normal.js @@ -22,6 +22,6 @@ var _default = R = { Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); var ___ = _m1.default.___, ___hello = _m1.default.___hello, _hi = _m1.default._hi; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.2.minified.js index c35e63a282ed..9b120f1d6569 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores3.2.minified.js @@ -20,5 +20,5 @@ var _default = { Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")); +var _m1 = require("@swc/helpers/_/_interop_require_default")._(require("./m1")); _m1.default.___, _m1.default.___hello, _m1.default._hi; diff --git a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores4.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores4.1.normal.js index b34c107c1324..2105b7b8955a 100644 --- a/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores4.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImportsWithUnderscores4.1.normal.js @@ -12,25 +12,25 @@ function _export(target, all) { }); } _export(exports, { - "_": function() { + _: function() { return _; }, - "__": function() { + __: function() { return __; }, - "___": function() { + ___: function() { return ___; }, - "_hi": function() { + _hi: function() { return _hi; }, - "__proto": function() { + __proto: function() { return __proto; }, - "__esmodule": function() { + __esmodule: function() { return __esmodule; }, - "___hello": function() { + ___hello: function() { return ___hello; } }); @@ -61,9 +61,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); var _m1 = require("./m1"); -(0, _m1["_"])(); -(0, _m1["__"])(); -(0, _m1["___hello"])(); -(0, _m1["__esmodule"])(); -(0, _m1["__proto"])(); -(0, _m1["_hi"])(); +(0, _m1._)(); +(0, _m1.__)(); +(0, _m1.___hello)(); +(0, _m1.__esmodule)(); +(0, _m1.__proto)(); +(0, _m1._hi)(); diff --git a/crates/swc/tests/tsc-references/extendClassExpressionFromModule.1.normal.js b/crates/swc/tests/tsc-references/extendClassExpressionFromModule.1.normal.js index b7d22014d0fa..4714feffd6a6 100644 --- a/crates/swc/tests/tsc-references/extendClassExpressionFromModule.1.normal.js +++ b/crates/swc/tests/tsc-references/extendClassExpressionFromModule.1.normal.js @@ -1,9 +1,9 @@ //// [foo1.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var x = function x() { "use strict"; - _class_call_check(this, x); + _class_call_check._(this, x); }; module.exports = x; //// [foo2.ts] @@ -11,17 +11,17 @@ module.exports = x; Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _create_super = require("@swc/helpers/_/_create_super"); var foo1 = require("./foo1"); var x = foo1; var y = /*#__PURE__*/ function(x) { "use strict"; - _inherits(y, x); - var _super = _create_super(y); + _inherits._(y, x); + var _super = _create_super._(y); function y() { - _class_call_check(this, y); + _class_call_check._(this, y); return _super.apply(this, arguments); } return y; diff --git a/crates/swc/tests/tsc-references/extendClassExpressionFromModule.2.minified.js b/crates/swc/tests/tsc-references/extendClassExpressionFromModule.2.minified.js index efad378d783b..2d44bc958860 100644 --- a/crates/swc/tests/tsc-references/extendClassExpressionFromModule.2.minified.js +++ b/crates/swc/tests/tsc-references/extendClassExpressionFromModule.2.minified.js @@ -1,12 +1,12 @@ //// [foo1.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); module.exports = function x() { "use strict"; - _class_call_check(this, x); + _class_call_check._(this, x); }; //// [foo2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_class_call_check.js").default, require("@swc/helpers/lib/_inherits.js").default, require("@swc/helpers/lib/_create_super.js").default, require("./foo1"); +}), require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_inherits"), require("@swc/helpers/_/_create_super"), require("./foo1"); diff --git a/crates/swc/tests/tsc-references/extendsTag1.1.normal.js b/crates/swc/tests/tsc-references/extendsTag1.1.normal.js index 1f2f9194789a..72d5a61640c8 100644 --- a/crates/swc/tests/tsc-references/extendsTag1.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTag1.1.normal.js @@ -2,10 +2,10 @@ /** * @template T * @extends {Set} Should prefer this Set, not the Set in the heritage clause - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var My = /*#__PURE__*/ function(Set1) { "use strict"; _inherits(My, Set1); diff --git a/crates/swc/tests/tsc-references/extendsTag1.2.minified.js b/crates/swc/tests/tsc-references/extendsTag1.2.minified.js index 7481bdd7d059..90ec321e5dfe 100644 --- a/crates/swc/tests/tsc-references/extendsTag1.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTag1.2.minified.js @@ -1,6 +1,6 @@ //// [bug25101.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; _wrap_native_super(Set); diff --git a/crates/swc/tests/tsc-references/filterNamespace_import.1.normal.js b/crates/swc/tests/tsc-references/filterNamespace_import.1.normal.js index ef1bd455cf37..c64ea6654eab 100644 --- a/crates/swc/tests/tsc-references/filterNamespace_import.1.normal.js +++ b/crates/swc/tests/tsc-references/filterNamespace_import.1.normal.js @@ -1,5 +1,5 @@ //// [/ns.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ns; (function(ns) { var Class = function Class() { diff --git a/crates/swc/tests/tsc-references/filterNamespace_import.2.minified.js b/crates/swc/tests/tsc-references/filterNamespace_import.2.minified.js index 991f375af955..d86901511bd3 100644 --- a/crates/swc/tests/tsc-references/filterNamespace_import.2.minified.js +++ b/crates/swc/tests/tsc-references/filterNamespace_import.2.minified.js @@ -1,6 +1,6 @@ //// [/ns.ts] var ns; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(ns) { ns.Class = function Class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/fixSignatureCaching.1.normal.js b/crates/swc/tests/tsc-references/fixSignatureCaching.1.normal.js index 46bf1ae9dc91..91cdcb298041 100644 --- a/crates/swc/tests/tsc-references/fixSignatureCaching.1.normal.js +++ b/crates/swc/tests/tsc-references/fixSignatureCaching.1.normal.js @@ -1,5 +1,5 @@ //// [fixSignatureCaching.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; // Repro from #10697 (function(define1, undefined) { define1(function() { diff --git a/crates/swc/tests/tsc-references/fixSignatureCaching.2.minified.js b/crates/swc/tests/tsc-references/fixSignatureCaching.2.minified.js index a8b9bb9f0f6e..1567e75e7269 100644 --- a/crates/swc/tests/tsc-references/fixSignatureCaching.2.minified.js +++ b/crates/swc/tests/tsc-references/fixSignatureCaching.2.minified.js @@ -1,5 +1,5 @@ //// [fixSignatureCaching.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; !function(define1, undefined) { define1(function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/fluentClasses.1.normal.js b/crates/swc/tests/tsc-references/fluentClasses.1.normal.js index ec29b447228a..9520a12667e6 100644 --- a/crates/swc/tests/tsc-references/fluentClasses.1.normal.js +++ b/crates/swc/tests/tsc-references/fluentClasses.1.normal.js @@ -1,7 +1,7 @@ //// [fluentClasses.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/fluentClasses.2.minified.js b/crates/swc/tests/tsc-references/fluentClasses.2.minified.js index 49ccc8016398..7cf9efac3422 100644 --- a/crates/swc/tests/tsc-references/fluentClasses.2.minified.js +++ b/crates/swc/tests/tsc-references/fluentClasses.2.minified.js @@ -1,6 +1,6 @@ //// [fluentClasses.ts] var c; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; c.foo().bar().baz(); diff --git a/crates/swc/tests/tsc-references/for-inStatements.1.normal.js b/crates/swc/tests/tsc-references/for-inStatements.1.normal.js index a322f3eccfbd..da56ddc2fded 100644 --- a/crates/swc/tests/tsc-references/for-inStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/for-inStatements.1.normal.js @@ -1,9 +1,9 @@ //// [for-inStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var aString; for(aString in {}){} var anAny; diff --git a/crates/swc/tests/tsc-references/for-inStatements.2.minified.js b/crates/swc/tests/tsc-references/for-inStatements.2.minified.js index 3072458a49ba..8ebf278c403f 100644 --- a/crates/swc/tests/tsc-references/for-inStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/for-inStatements.2.minified.js @@ -1,10 +1,10 @@ //// [for-inStatements.ts] var aString, anAny, c, d, e, i, M, Color; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; for(aString in {}); for(anAny in {}); for(var x in {}); diff --git a/crates/swc/tests/tsc-references/for-inStatementsDestructuring.1.normal.js b/crates/swc/tests/tsc-references/for-inStatementsDestructuring.1.normal.js index 8a0cac418ae4..5a955f8516ab 100644 --- a/crates/swc/tests/tsc-references/for-inStatementsDestructuring.1.normal.js +++ b/crates/swc/tests/tsc-references/for-inStatementsDestructuring.1.normal.js @@ -1,5 +1,5 @@ //// [for-inStatementsDestructuring.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var ref in []){ var _ref = _sliced_to_array(ref, 2), a = _ref[0], b = _ref[1]; } diff --git a/crates/swc/tests/tsc-references/for-inStatementsDestructuring.2.minified.js b/crates/swc/tests/tsc-references/for-inStatementsDestructuring.2.minified.js index f0ee2965ff11..a5c1e30ada65 100644 --- a/crates/swc/tests/tsc-references/for-inStatementsDestructuring.2.minified.js +++ b/crates/swc/tests/tsc-references/for-inStatementsDestructuring.2.minified.js @@ -1,5 +1,5 @@ //// [for-inStatementsDestructuring.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; for(var ref in []){ var _ref = _sliced_to_array(ref, 2); _ref[0], _ref[1]; diff --git a/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.1.normal.js b/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.1.normal.js index 745015881f6a..aaa5fb86f91d 100644 --- a/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.1.normal.js +++ b/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.1.normal.js @@ -1,9 +1,9 @@ //// [forAwaitPerIterationBindingDownlevel.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var sleep = function(tm) { return new Promise(function(resolve) { return setTimeout(resolve, tm); diff --git a/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.2.minified.js b/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.2.minified.js index b5e68f07fd91..49e074414a05 100644 --- a/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.2.minified.js +++ b/crates/swc/tests/tsc-references/forAwaitPerIterationBindingDownlevel.2.minified.js @@ -1,9 +1,9 @@ //// [forAwaitPerIterationBindingDownlevel.ts] -import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _await_async_generator from "@swc/helpers/src/_await_async_generator.mjs"; -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_iterator } from "@swc/helpers/_/_async_iterator"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var sleep = function(tm) { return new Promise(function(resolve) { return setTimeout(resolve, tm); diff --git a/crates/swc/tests/tsc-references/forStatements.1.normal.js b/crates/swc/tests/tsc-references/forStatements.1.normal.js index 00dac9adc165..f8ef23bf07d9 100644 --- a/crates/swc/tests/tsc-references/forStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/forStatements.1.normal.js @@ -1,5 +1,5 @@ //// [forStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatements.2.minified.js b/crates/swc/tests/tsc-references/forStatements.2.minified.js index 3ec4b2517e13..aa2ef24d6461 100644 --- a/crates/swc/tests/tsc-references/forStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatements.2.minified.js @@ -1,5 +1,5 @@ //// [forStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.1.normal.js b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.1.normal.js index a5b8bd5a9bcd..b4f74dba8f14 100644 --- a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.1.normal.js +++ b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.1.normal.js @@ -1,7 +1,7 @@ //// [forStatementsMultipleInvalidDecl.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.2.minified.js b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.2.minified.js index e5e8926d20bf..72517305e501 100644 --- a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl.2.minified.js @@ -1,7 +1,7 @@ //// [forStatementsMultipleInvalidDecl.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M, a, b, arr, m, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forgottenNew.1.normal.js b/crates/swc/tests/tsc-references/forgottenNew.1.normal.js index 0b008af6e9bc..60a9cc4438dd 100644 --- a/crates/swc/tests/tsc-references/forgottenNew.1.normal.js +++ b/crates/swc/tests/tsc-references/forgottenNew.1.normal.js @@ -1,5 +1,5 @@ //// [forgottenNew.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Tools; (function(Tools) { var NullLogger = function NullLogger() { diff --git a/crates/swc/tests/tsc-references/forgottenNew.2.minified.js b/crates/swc/tests/tsc-references/forgottenNew.2.minified.js index 1c260c7b0cfa..71cd47cf3871 100644 --- a/crates/swc/tests/tsc-references/forgottenNew.2.minified.js +++ b/crates/swc/tests/tsc-references/forgottenNew.2.minified.js @@ -1,6 +1,6 @@ //// [forgottenNew.ts] var Tools; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (Tools || (Tools = {})).NullLogger = function NullLogger() { "use strict"; _class_call_check(this, NullLogger); diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction.1.normal.js index 6ba328241d28..b365d4762764 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction.1.normal.js @@ -1,6 +1,6 @@ //// [functionConstraintSatisfaction.ts] // satisfaction of a constraint to Function, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) { return x; } diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction.2.minified.js index 91101569939f..0e08e11b140f 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction.2.minified.js @@ -1,3 +1,3 @@ //// [functionConstraintSatisfaction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; Function(); diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.1.normal.js index 566a1e8c956f..c8512dd36c48 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.1.normal.js @@ -1,6 +1,6 @@ //// [functionConstraintSatisfaction2.ts] // satisfaction of a constraint to Function, all of these invocations are errors unless otherwise noted -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) { return x; } diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.2.minified.js index 77dc9c370afd..5af67886726e 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2.2.minified.js @@ -1,3 +1,3 @@ //// [functionConstraintSatisfaction2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; Function(); diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.1.normal.js index 73833aa11f8b..e05c098623e7 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.1.normal.js @@ -1,6 +1,6 @@ //// [functionConstraintSatisfaction3.ts] // satisfaction of a constraint to Function, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) { return x; } diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.2.minified.js index 6dd6c04d7753..e948f4a2246d 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3.2.minified.js @@ -1,2 +1,2 @@ //// [functionConstraintSatisfaction3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.1.normal.js b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.1.normal.js index 0b9dc0e4583b..b43332605a60 100644 --- a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.1.normal.js +++ b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.1.normal.js @@ -1,7 +1,7 @@ //// [functionExpressionContextualTyping1.ts] // When a function expression with no type parameters and no parameter type annotations // is contextually typed (section 4.19) by a type T and a contextual signature S can be extracted from T -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["red"] = 0] = "red"; diff --git a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.2.minified.js b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.2.minified.js index 610c1bfddfc4..df42f7dd8d75 100644 --- a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.2.minified.js +++ b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1.2.minified.js @@ -1,6 +1,6 @@ //// [functionExpressionContextualTyping1.ts] var E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(E) { E[E.red = 0] = "red", E[E.blue = 1] = "blue"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/functionImplementationErrors.1.normal.js b/crates/swc/tests/tsc-references/functionImplementationErrors.1.normal.js index 13bbe84aa169..a8bc3488628f 100644 --- a/crates/swc/tests/tsc-references/functionImplementationErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/functionImplementationErrors.1.normal.js @@ -1,8 +1,8 @@ //// [functionImplementationErrors.ts] // FunctionExpression with no return type annotation with multiple return statements with unrelated types -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var f1 = function f1() { return ""; return 3; diff --git a/crates/swc/tests/tsc-references/functionImplementationErrors.2.minified.js b/crates/swc/tests/tsc-references/functionImplementationErrors.2.minified.js index a44aa3b78867..92110161cf9b 100644 --- a/crates/swc/tests/tsc-references/functionImplementationErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/functionImplementationErrors.2.minified.js @@ -1,4 +1,4 @@ //// [functionImplementationErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/functionImplementations.1.normal.js b/crates/swc/tests/tsc-references/functionImplementations.1.normal.js index de7f95d589a3..9762e53413fa 100644 --- a/crates/swc/tests/tsc-references/functionImplementations.1.normal.js +++ b/crates/swc/tests/tsc-references/functionImplementations.1.normal.js @@ -1,8 +1,8 @@ //// [functionImplementations.ts] // FunctionExpression with no return type annotation and no return statement returns void -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var v = function() {}(); // FunctionExpression f with no return type annotation and directly references f in its body returns any var a = function f() { diff --git a/crates/swc/tests/tsc-references/functionImplementations.2.minified.js b/crates/swc/tests/tsc-references/functionImplementations.2.minified.js index 2098ebea2b03..d39c23cae802 100644 --- a/crates/swc/tests/tsc-references/functionImplementations.2.minified.js +++ b/crates/swc/tests/tsc-references/functionImplementations.2.minified.js @@ -1,7 +1,7 @@ //// [functionImplementations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function rec2() { return rec2(); } diff --git a/crates/swc/tests/tsc-references/functionLiteralForOverloads2.1.normal.js b/crates/swc/tests/tsc-references/functionLiteralForOverloads2.1.normal.js index 78c76ef60322..8205887926fc 100644 --- a/crates/swc/tests/tsc-references/functionLiteralForOverloads2.1.normal.js +++ b/crates/swc/tests/tsc-references/functionLiteralForOverloads2.1.normal.js @@ -1,6 +1,6 @@ //// [functionLiteralForOverloads2.ts] // basic uses of function literals with constructor overloads -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/functionLiteralForOverloads2.2.minified.js b/crates/swc/tests/tsc-references/functionLiteralForOverloads2.2.minified.js index 4237b844207b..8e954bb5b6d5 100644 --- a/crates/swc/tests/tsc-references/functionLiteralForOverloads2.2.minified.js +++ b/crates/swc/tests/tsc-references/functionLiteralForOverloads2.2.minified.js @@ -1,2 +1,2 @@ //// [functionLiteralForOverloads2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.1.normal.js b/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.1.normal.js index 9df48e6cf504..f6860b14dd44 100644 --- a/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.1.normal.js +++ b/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.1.normal.js @@ -1,6 +1,6 @@ //// [functionParameterObjectRestAndInitializers.ts] // https://github.com/microsoft/TypeScript/issues/47079 -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function f(_param, b = a) { var { a } = _param, x = _object_without_properties(_param, [ "a" diff --git a/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.2.minified.js b/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.2.minified.js index 8243325d389e..cfe7caa8a79d 100644 --- a/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.2.minified.js +++ b/crates/swc/tests/tsc-references/functionParameterObjectRestAndInitializers.2.minified.js @@ -1,2 +1,2 @@ //// [functionParameterObjectRestAndInitializers.ts] -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/generatedContextualTyping.1.normal.js b/crates/swc/tests/tsc-references/generatedContextualTyping.1.normal.js index 9cd7bc3b5133..ce377642b042 100644 --- a/crates/swc/tests/tsc-references/generatedContextualTyping.1.normal.js +++ b/crates/swc/tests/tsc-references/generatedContextualTyping.1.normal.js @@ -1,7 +1,7 @@ //// [generatedContextualTyping.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/generatedContextualTyping.2.minified.js b/crates/swc/tests/tsc-references/generatedContextualTyping.2.minified.js index 1aadf5af2d60..91b27703dfac 100644 --- a/crates/swc/tests/tsc-references/generatedContextualTyping.2.minified.js +++ b/crates/swc/tests/tsc-references/generatedContextualTyping.2.minified.js @@ -1,7 +1,7 @@ //// [generatedContextualTyping.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var x181, x182, x183, x184, x185, x186, x187, x188, x189, x190, x191, x192, x193, x194, x195, x196, x197, x198, x199, x200, x201, x202, x203, x204, Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/generic.1.normal.js b/crates/swc/tests/tsc-references/generic.1.normal.js index 9d85f24348b4..fd297008a3d6 100644 --- a/crates/swc/tests/tsc-references/generic.1.normal.js +++ b/crates/swc/tests/tsc-references/generic.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/generic.2.minified.js b/crates/swc/tests/tsc-references/generic.2.minified.js index e757f249a99b..fdd5a6057d52 100644 --- a/crates/swc/tests/tsc-references/generic.2.minified.js +++ b/crates/swc/tests/tsc-references/generic.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.1.normal.js b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.1.normal.js index 345c7b0153c6..5fa405b324ad 100644 --- a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.1.normal.js @@ -1,6 +1,6 @@ //// [genericCallTypeArgumentInference.ts] // Basic type inference with generic calls, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(t) { return t; } diff --git a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.2.minified.js b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.2.minified.js index 25c1a6e7fdcf..80e88f83f6ec 100644 --- a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference.2.minified.js @@ -1,5 +1,5 @@ //// [genericCallTypeArgumentInference.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var i, c = new (function() { "use strict"; function C(t, u) { diff --git a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.1.normal.js index 6f123b2ac62c..5c0737e6be0a 100644 --- a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.1.normal.js @@ -1,8 +1,8 @@ //// [genericCallWithConstraintsTypeArgumentInference.ts] // Basic type inference with generic calls and constraints, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.2.minified.js index 91d6487ade77..0b1724fd2737 100644 --- a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference.2.minified.js @@ -1,7 +1,7 @@ //// [genericCallWithConstraintsTypeArgumentInference.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var b, d1, d2, i, c = new (function() { "use strict"; function C(t, u) { diff --git a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.1.normal.js index 76ace5ffdf27..5f2c9c277830 100644 --- a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.1.normal.js @@ -1,6 +1,6 @@ //// [genericCallWithFunctionTypedArguments4.ts] // No inference is made from function typed arguments which have multiple call signatures -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.2.minified.js index 0b8a63c1159c..9db41fedff92 100644 --- a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4.2.minified.js @@ -1,2 +1,2 @@ //// [genericCallWithFunctionTypedArguments4.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.1.normal.js index 9fc36fe87c05..a80efd564cf8 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.1.normal.js @@ -1,5 +1,5 @@ //// [genericCallWithObjectTypeArgs.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.2.minified.js index d0b3836b4be6..e478963ffd61 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs.2.minified.js @@ -1,5 +1,5 @@ //// [genericCallWithObjectTypeArgs.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.1.normal.js index 227114382d8e..8009cc2f783a 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.1.normal.js @@ -1,7 +1,7 @@ //// [genericCallWithObjectTypeArgs2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.2.minified.js index 414f006c6f90..8690c29170e4 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2.2.minified.js @@ -1,7 +1,7 @@ //// [genericCallWithObjectTypeArgs2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i, Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.1.normal.js index 92437eec328b..62b280e019b2 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.1.normal.js @@ -1,7 +1,7 @@ //// [genericCallWithObjectTypeArgsAndConstraints.ts] // Generic call with constraints infering type parameter from object member properties // No errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.2.minified.js index 9ccff06262f0..5e36ac6d972d 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints.2.minified.js @@ -1,5 +1,5 @@ //// [genericCallWithObjectTypeArgsAndConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.1.normal.js index 109f75458579..187d339c9ca8 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.1.normal.js @@ -1,9 +1,9 @@ //// [genericCallWithObjectTypeArgsAndConstraints2.ts] // Generic call with constraints infering type parameter from object member properties // No errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.2.minified.js index 714fefb89f14..cd8f502e9261 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2.2.minified.js @@ -1,7 +1,7 @@ //// [genericCallWithObjectTypeArgsAndConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.1.normal.js index 223ed4ba4f1f..6c3d7b234f2e 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.1.normal.js @@ -1,8 +1,8 @@ //// [genericCallWithObjectTypeArgsAndConstraints3.ts] // Generic call with constraints infering type parameter from object member properties -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.2.minified.js index 7fab8c6df6ec..361e0d67445b 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3.2.minified.js @@ -1,7 +1,7 @@ //// [genericCallWithObjectTypeArgsAndConstraints3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.1.normal.js index b6ce4e12d257..35a8fdb3f154 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.1.normal.js @@ -1,6 +1,6 @@ //// [genericCallWithObjectTypeArgsAndConstraints4.ts] // Generic call with constraints infering type parameter from object member properties -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.2.minified.js index 062add6d7cad..0bfad1e7f75a 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4.2.minified.js @@ -1,6 +1,6 @@ //// [genericCallWithObjectTypeArgsAndConstraints4.ts] var c, d; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; function foo(t, t2) { return function(x) { return t2; diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.1.normal.js index 7503496fc649..c9cc4f579c2f 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.1.normal.js @@ -1,6 +1,6 @@ //// [genericCallWithObjectTypeArgsAndConstraints5.ts] // Generic call with constraints infering type parameter from object member properties -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.2.minified.js index 676b86aa8f39..14f18d6fa526 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.2.minified.js @@ -1,6 +1,6 @@ //// [genericCallWithObjectTypeArgsAndConstraints5.ts] var c, d; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; function foo(t, t2) { return function(x) { return t2; diff --git a/crates/swc/tests/tsc-references/genericClassExpressionInFunction.1.normal.js b/crates/swc/tests/tsc-references/genericClassExpressionInFunction.1.normal.js index 99854746a7c6..e5bd039aac39 100644 --- a/crates/swc/tests/tsc-references/genericClassExpressionInFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassExpressionInFunction.1.normal.js @@ -1,7 +1,7 @@ //// [genericClassExpressionInFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/genericClassExpressionInFunction.2.minified.js b/crates/swc/tests/tsc-references/genericClassExpressionInFunction.2.minified.js index 29e873e29978..7fd0a82fb377 100644 --- a/crates/swc/tests/tsc-references/genericClassExpressionInFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassExpressionInFunction.2.minified.js @@ -1,7 +1,7 @@ //// [genericClassExpressionInFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.1.normal.js b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.1.normal.js index c12f568bf3d7..129c112a2be1 100644 --- a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.1.normal.js @@ -1,7 +1,7 @@ //// [genericClassWithFunctionTypedMemberArguments.ts] // Generic functions used as arguments for function typed parameters are not used to make inferences from // Using function arguments, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ImmediatelyFix; (function(ImmediatelyFix) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.2.minified.js b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.2.minified.js index 540be523a00c..f27c91867c0a 100644 --- a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments.2.minified.js @@ -1,6 +1,6 @@ //// [genericClassWithFunctionTypedMemberArguments.ts] var ImmediatelyFix, WithCandidates; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(ImmediatelyFix) { var c = new (function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.1.normal.js b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.1.normal.js index 6f8ce2c173c9..02ebc3cecc73 100644 --- a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.1.normal.js @@ -1,7 +1,7 @@ //// [genericClassWithObjectTypeArgsAndConstraints.ts] // Generic call with constraints infering type parameter from object member properties // No errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.2.minified.js b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.2.minified.js index e79bcd46ec44..8f8c0d276107 100644 --- a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints.2.minified.js @@ -1,5 +1,5 @@ //// [genericClassWithObjectTypeArgsAndConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Class, Interface, X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/genericObjectRest.1.normal.js b/crates/swc/tests/tsc-references/genericObjectRest.1.normal.js index c71d03cfd792..56117f94293c 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest.1.normal.js +++ b/crates/swc/tests/tsc-references/genericObjectRest.1.normal.js @@ -1,8 +1,8 @@ //// [genericObjectRest.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; const a = 'a'; function f1(obj) { let r0 = _extends({}, _object_destructuring_empty(obj)); diff --git a/crates/swc/tests/tsc-references/genericObjectRest.2.minified.js b/crates/swc/tests/tsc-references/genericObjectRest.2.minified.js index ba49cf24fba0..91a0dcd0585c 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest.2.minified.js +++ b/crates/swc/tests/tsc-references/genericObjectRest.2.minified.js @@ -1,6 +1,6 @@ //// [genericObjectRest.ts] -import "@swc/helpers/src/_extends.mjs"; -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import "@swc/helpers/src/_object_without_properties.mjs"; -import "@swc/helpers/src/_to_property_key.mjs"; +import "@swc/helpers/_/_extends"; +import "@swc/helpers/_/_object_destructuring_empty"; +import "@swc/helpers/_/_object_without_properties"; +import "@swc/helpers/_/_to_property_key"; Symbol(), Symbol(); diff --git a/crates/swc/tests/tsc-references/genericRestParameters1.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters1.1.normal.js index ec59093d9872..7e6967f15c02 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters1.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters1.1.normal.js @@ -1,5 +1,5 @@ //// [genericRestParameters1.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; f1 = f2; f2 = f1; f1(42, "hello", true); diff --git a/crates/swc/tests/tsc-references/genericRestParameters1.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters1.2.minified.js index f4c3879b39bf..63efb035e85d 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters1.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters1.2.minified.js @@ -1,5 +1,5 @@ //// [genericRestParameters1.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function call(f) { for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key]; return f.apply(void 0, _to_consumable_array(args)); diff --git a/crates/swc/tests/tsc-references/genericRestParameters2.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters2.1.normal.js index 037740bbb996..d9be9a95fe62 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters2.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters2.1.normal.js @@ -1,5 +1,5 @@ //// [genericRestParameters2.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; f10(42, "hello"); f10(42, "hello", true); f10(42, "hello", true, false); diff --git a/crates/swc/tests/tsc-references/genericRestParameters2.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters2.2.minified.js index b81d0bf5abf9..11e704b139ea 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters2.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters2.2.minified.js @@ -1,5 +1,5 @@ //// [genericRestParameters2.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; f10(42, "hello"), f10(42, "hello", !0), f10(42, "hello", !0, !1), f10(t1[0], t1[1], t1[2], t1[3]), f10.apply(void 0, _to_consumable_array(t1)), f10.apply(void 0, [ 42 ].concat(_to_consumable_array(t2))), f10.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/genericRestParameters3.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters3.1.normal.js index 4bb1c92890a5..ec6cc51eac45 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters3.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters3.1.normal.js @@ -1,5 +1,5 @@ //// [genericRestParameters3.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; f1("foo", "abc"); f1("foo", 10, true); f1.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/genericRestParameters3.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters3.2.minified.js index d636e332e911..5ce64d351872 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters3.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters3.2.minified.js @@ -1,5 +1,5 @@ //// [genericRestParameters3.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function bar() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return args; diff --git a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.1.normal.js b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.1.normal.js index eb44207878aa..8513f2f55f58 100644 --- a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.1.normal.js +++ b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.1.normal.js @@ -2,8 +2,8 @@ // In the body of a get accessor with no return type annotation, // if a matching set accessor exists and that set accessor has a parameter type annotation, // return expressions are contextually typed by the type given in the set accessor's parameter type annotation. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.2.minified.js b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.2.minified.js index 20ad980805a3..64faba3611d3 100644 --- a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.2.minified.js +++ b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping.2.minified.js @@ -1,3 +1,3 @@ //// [getSetAccessorContextualTyping.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.1.normal.js b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.1.normal.js index 58e2e7487941..ae32f9b8b6e5 100644 --- a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.1.normal.js +++ b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.1.normal.js @@ -1,8 +1,8 @@ //// [heterogeneousArrayLiterals.ts] // type of an array is the best common type of its elements (plus its contextual type if it exists) -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var a = [ 1, "" diff --git a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.2.minified.js b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.2.minified.js index 6668a1cedde5..a8aa52537c5e 100644 --- a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.2.minified.js +++ b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals.2.minified.js @@ -1,7 +1,7 @@ //// [heterogeneousArrayLiterals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var WithContextualType, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/ifDoWhileStatements.1.normal.js b/crates/swc/tests/tsc-references/ifDoWhileStatements.1.normal.js index d18cc56e205c..c11aebce3b86 100644 --- a/crates/swc/tests/tsc-references/ifDoWhileStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/ifDoWhileStatements.1.normal.js @@ -1,7 +1,7 @@ //// [ifDoWhileStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/ifDoWhileStatements.2.minified.js b/crates/swc/tests/tsc-references/ifDoWhileStatements.2.minified.js index a23e1ade4e6c..8e30c9fe3334 100644 --- a/crates/swc/tests/tsc-references/ifDoWhileStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/ifDoWhileStatements.2.minified.js @@ -1,7 +1,7 @@ //// [ifDoWhileStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M, N, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.1.normal.js index c430ade02f31..9a7c7a60eed9 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.1.normal.js @@ -1,5 +1,5 @@ //// [implementingAnInterfaceExtendingClassWithPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.2.minified.js index 46e80cb8f4fd..e640050d0b2e 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates.2.minified.js @@ -1,2 +1,2 @@ //// [implementingAnInterfaceExtendingClassWithPrivates.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.1.normal.js index 5da78afc4767..336f9d714396 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.1.normal.js @@ -1,7 +1,7 @@ //// [implementingAnInterfaceExtendingClassWithPrivates2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.2.minified.js index c8e2ba35e32c..65a6a34700ee 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2.2.minified.js @@ -1,8 +1,8 @@ //// [implementingAnInterfaceExtendingClassWithPrivates2.ts] var M, M2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; M || (M = {}), function(M2) { var b; b.z, b.x, b.y; diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.1.normal.js index ff0292126c07..3c81db67ae23 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.1.normal.js @@ -1,7 +1,7 @@ //// [implementingAnInterfaceExtendingClassWithProtecteds.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.2.minified.js index 999ea3d85433..a884b04bfe15 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds.2.minified.js @@ -1,4 +1,4 @@ //// [implementingAnInterfaceExtendingClassWithProtecteds.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/implementsClause.1.normal.js b/crates/swc/tests/tsc-references/implementsClause.1.normal.js index 749c0b563c34..cd5ac89151ba 100644 --- a/crates/swc/tests/tsc-references/implementsClause.1.normal.js +++ b/crates/swc/tests/tsc-references/implementsClause.1.normal.js @@ -3,7 +3,7 @@ export { }; //// [ns.ts] export { }; //// [index.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/implementsClause.2.minified.js b/crates/swc/tests/tsc-references/implementsClause.2.minified.js index a380cf04c407..b7d1742eb666 100644 --- a/crates/swc/tests/tsc-references/implementsClause.2.minified.js +++ b/crates/swc/tests/tsc-references/implementsClause.2.minified.js @@ -3,4 +3,4 @@ export { }; //// [ns.ts] export { }; //// [index.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/importAliasIdentifiers.1.normal.js b/crates/swc/tests/tsc-references/importAliasIdentifiers.1.normal.js index 1386dae46a40..6f4b90925764 100644 --- a/crates/swc/tests/tsc-references/importAliasIdentifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/importAliasIdentifiers.1.normal.js @@ -1,5 +1,5 @@ //// [importAliasIdentifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var moduleA; (function(moduleA) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/importAliasIdentifiers.2.minified.js b/crates/swc/tests/tsc-references/importAliasIdentifiers.2.minified.js index 354908aa7911..8191046aa7f3 100644 --- a/crates/swc/tests/tsc-references/importAliasIdentifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/importAliasIdentifiers.2.minified.js @@ -1,5 +1,5 @@ //// [importAliasIdentifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (moduleA || (moduleA = {})).Point = function Point(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/importAliasModuleExports.1.normal.js b/crates/swc/tests/tsc-references/importAliasModuleExports.1.normal.js index b30f4f3b585b..e3fe0ca31565 100644 --- a/crates/swc/tests/tsc-references/importAliasModuleExports.1.normal.js +++ b/crates/swc/tests/tsc-references/importAliasModuleExports.1.normal.js @@ -1,5 +1,5 @@ //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Alias = /*#__PURE__*/ function() { "use strict"; function Alias() { diff --git a/crates/swc/tests/tsc-references/importAliasModuleExports.2.minified.js b/crates/swc/tests/tsc-references/importAliasModuleExports.2.minified.js index 38fe0de3db3e..bb772b3c3ea2 100644 --- a/crates/swc/tests/tsc-references/importAliasModuleExports.2.minified.js +++ b/crates/swc/tests/tsc-references/importAliasModuleExports.2.minified.js @@ -1,5 +1,5 @@ //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Alias = function() { "use strict"; function Alias() { diff --git a/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).1.normal.js index 36fab9a88f45..83bf685fcb15 100644 --- a/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).1.normal.js @@ -33,9 +33,9 @@ _export(exports, { b: ()=>_0.b, ns: ()=>_0 }); -const _export_star = require("@swc/helpers/lib/_export_star.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -const _0 = /*#__PURE__*/ _interop_require_wildcard(_export_star(require("./0"), exports)); +const _export_star = require("@swc/helpers/_/_export_star"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +const _0 = /*#__PURE__*/ _interop_require_wildcard._(_export_star._(require("./0"), exports)); //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { diff --git a/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).2.minified.js b/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).2.minified.js index 5a6b23cc03b5..2af7c999bf0d 100644 --- a/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).2.minified.js +++ b/crates/swc/tests/tsc-references/importAssertion2(module=commonjs).2.minified.js @@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { b: ()=>_0.b, ns: ()=>_0 }); -const _export_star = require("@swc/helpers/lib/_export_star.js").default, _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, _0 = _interop_require_wildcard(_export_star(require("./0"), exports)); +const _export_star = require("@swc/helpers/_/_export_star"), _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), _0 = _interop_require_wildcard._(_export_star._(require("./0"), exports)); //// [2.ts] "use strict"; Object.defineProperty(exports, "__esModule", { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD.1.normal.js index fef73bf5010c..2b0f330e5812 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD.1.normal.js @@ -2,10 +2,10 @@ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], function(require, exports, _async_to_generator, _class_call_check, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -34,17 +34,13 @@ define([ return l; } }); - _async_to_generator = _async_to_generator.default; - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -53,7 +49,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // ONE ]; @@ -70,13 +66,13 @@ define([ var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -85,7 +81,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // TWO ]; @@ -101,9 +97,9 @@ define([ return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -112,7 +108,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // THREE ]; @@ -127,11 +123,11 @@ define([ }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -140,7 +136,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // FOUR ]; @@ -155,9 +151,9 @@ define([ }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -166,7 +162,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // FIVE ]; diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.1.normal.js index 49627296d37f..7c09e7a16475 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.1.normal.js @@ -26,23 +26,23 @@ _export(exports, { return l; } }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // ONE ]; case 1: @@ -58,19 +58,19 @@ function _fn() { var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // TWO ]; case 1: @@ -85,15 +85,15 @@ var cl1 = /*#__PURE__*/ function() { return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // THREE ]; case 1: @@ -107,17 +107,17 @@ var obj = { }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // FOUR ]; case 1: @@ -131,15 +131,15 @@ var cl2 = function cl2() { }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // FIVE ]; case 1: diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.2.minified.js index 71eea008cf70..4e0aa539c756 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS.2.minified.js @@ -1,3 +1,3 @@ //// [test.ts] "use strict"; -exports, exports, require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_class_call_check.js").default, require("@swc/helpers/lib/_interop_require_wildcard.js").default, require("@swc/helpers/lib/_ts_generator.js").default; +exports, exports; diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System.1.normal.js index 320cc59bbe6c..d40e22cafc01 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System.1.normal.js @@ -1,8 +1,8 @@ //// [test.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_ts_generator" ], function(_export, _context) { "use strict"; var _async_to_generator, _class_call_check, _ts_generator, cl1, obj, cl2, l; @@ -33,13 +33,13 @@ System.register([ return { setters: [ function(_async_to_generator1) { - _async_to_generator = _async_to_generator1.default; + _async_to_generator = _async_to_generator1._; }, function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; }, function(_ts_generator1) { - _ts_generator = _ts_generator1.default; + _ts_generator = _ts_generator1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD.1.normal.js index 38d79e6d418f..e000730bbe00 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD.1.normal.js @@ -1,14 +1,14 @@ //// [test.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_class_call_check.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("@swc/helpers/src/_ts_generator.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_interop_require_wildcard"), require("@swc/helpers/_/_ts_generator")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGeneratorMjs, global.classCallCheckMjs, global.interopRequireWildcardMjs, global.tsGeneratorMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGenerator, global.classCallCheck, global.interopRequireWildcard, global.tsGenerator); })(this, function(exports, _async_to_generator, _class_call_check, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -37,17 +37,13 @@ return l; } }); - _async_to_generator = _async_to_generator.default; - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -67,13 +63,13 @@ var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -92,9 +88,9 @@ return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -112,11 +108,11 @@ }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -134,9 +130,9 @@ }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD.1.normal.js index fef73bf5010c..2b0f330e5812 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD.1.normal.js @@ -2,10 +2,10 @@ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], function(require, exports, _async_to_generator, _class_call_check, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -34,17 +34,13 @@ define([ return l; } }); - _async_to_generator = _async_to_generator.default; - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -53,7 +49,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // ONE ]; @@ -70,13 +66,13 @@ define([ var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -85,7 +81,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // TWO ]; @@ -101,9 +97,9 @@ define([ return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -112,7 +108,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // THREE ]; @@ -127,11 +123,11 @@ define([ }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -140,7 +136,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // FOUR ]; @@ -155,9 +151,9 @@ define([ }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -166,7 +162,7 @@ define([ return require([ "./test" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) // FIVE ]; diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.1.normal.js index 49627296d37f..7c09e7a16475 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.1.normal.js @@ -26,23 +26,23 @@ _export(exports, { return l; } }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // ONE ]; case 1: @@ -58,19 +58,19 @@ function _fn() { var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // TWO ]; case 1: @@ -85,15 +85,15 @@ var cl1 = /*#__PURE__*/ function() { return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // THREE ]; case 1: @@ -107,17 +107,17 @@ var obj = { }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // FOUR ]; case 1: @@ -131,15 +131,15 @@ var cl2 = function cl2() { }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./test")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./test")); }) // FIVE ]; case 1: diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.2.minified.js index 71eea008cf70..4e0aa539c756 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS.2.minified.js @@ -1,3 +1,3 @@ //// [test.ts] "use strict"; -exports, exports, require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_class_call_check.js").default, require("@swc/helpers/lib/_interop_require_wildcard.js").default, require("@swc/helpers/lib/_ts_generator.js").default; +exports, exports; diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System.1.normal.js index 320cc59bbe6c..d40e22cafc01 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System.1.normal.js @@ -1,8 +1,8 @@ //// [test.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_ts_generator" ], function(_export, _context) { "use strict"; var _async_to_generator, _class_call_check, _ts_generator, cl1, obj, cl2, l; @@ -33,13 +33,13 @@ System.register([ return { setters: [ function(_async_to_generator1) { - _async_to_generator = _async_to_generator1.default; + _async_to_generator = _async_to_generator1._; }, function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; }, function(_ts_generator1) { - _ts_generator = _ts_generator1.default; + _ts_generator = _ts_generator1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD.1.normal.js index 38d79e6d418f..e000730bbe00 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD.1.normal.js @@ -1,14 +1,14 @@ //// [test.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_class_call_check.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("@swc/helpers/src/_ts_generator.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_interop_require_wildcard"), require("@swc/helpers/_/_ts_generator")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGeneratorMjs, global.classCallCheckMjs, global.interopRequireWildcardMjs, global.tsGeneratorMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGenerator, global.classCallCheck, global.interopRequireWildcard, global.tsGenerator); })(this, function(exports, _async_to_generator, _class_call_check, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -37,17 +37,13 @@ return l; } }); - _async_to_generator = _async_to_generator.default; - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function() { + _fn = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -67,13 +63,13 @@ var cl1 = /*#__PURE__*/ function() { "use strict"; function cl1() { - _class_call_check(this, cl1); + _class_call_check._(this, cl1); } var _proto = cl1.prototype; _proto.m = function m() { - return _async_to_generator(function() { + return _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -92,9 +88,9 @@ return cl1; }(); var obj = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -112,11 +108,11 @@ }; var cl2 = function cl2() { "use strict"; - _class_call_check(this, cl2); + _class_call_check._(this, cl2); this.p = { - m: /*#__PURE__*/ _async_to_generator(function() { + m: /*#__PURE__*/ _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -134,9 +130,9 @@ }; }; var l = function() { - var _ref = _async_to_generator(function() { + var _ref = _async_to_generator._(function() { var req; - return _ts_generator(this, function(_state) { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD.1.normal.js index 72f662a9dcd4..e0d12dcf93d4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD.1.normal.js @@ -2,8 +2,8 @@ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -22,55 +22,53 @@ define([ cl2: ()=>cl2, l: ()=>l }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function*() { + _fn = _async_to_generator._(function*() { const req = yield new Promise((resolve, reject)=>require([ "./test" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)) // ONE + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)) // ONE ; }); return _fn.apply(this, arguments); } class cl1 { m() { - return _async_to_generator(function*() { + return _async_to_generator._(function*() { const req = yield new Promise((resolve, reject)=>require([ "./test" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)) // TWO + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)) // TWO ; })(); } } const obj = { - m: /*#__PURE__*/ _async_to_generator(function*() { + m: /*#__PURE__*/ _async_to_generator._(function*() { const req = yield new Promise((resolve, reject)=>require([ "./test" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)) // THREE + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)) // THREE ; }) }; class cl2 { constructor(){ this.p = { - m: /*#__PURE__*/ _async_to_generator(function*() { + m: /*#__PURE__*/ _async_to_generator._(function*() { const req = yield new Promise((resolve, reject)=>require([ "./test" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)) // FOUR + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)) // FOUR ; }) }; } } const l = function() { - var _ref = _async_to_generator(function*() { + var _ref = _async_to_generator._(function*() { const req = yield new Promise((resolve, reject)=>require([ "./test" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)) // FIVE + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)) // FIVE ; }); return function l() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.1.normal.js index 03d68a0c8a5e..622ea2db892e 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.1.normal.js @@ -16,45 +16,45 @@ _export(exports, { cl2: ()=>cl2, l: ()=>l }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function*() { - const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./test"))) // ONE + _fn = _async_to_generator._(function*() { + const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./test"))) // ONE ; }); return _fn.apply(this, arguments); } class cl1 { m() { - return _async_to_generator(function*() { - const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./test"))) // TWO + return _async_to_generator._(function*() { + const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./test"))) // TWO ; })(); } } const obj = { - m: /*#__PURE__*/ _async_to_generator(function*() { - const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./test"))) // THREE + m: /*#__PURE__*/ _async_to_generator._(function*() { + const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./test"))) // THREE ; }) }; class cl2 { constructor(){ this.p = { - m: /*#__PURE__*/ _async_to_generator(function*() { - const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./test"))) // FOUR + m: /*#__PURE__*/ _async_to_generator._(function*() { + const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./test"))) // FOUR ; }) }; } } const l = function() { - var _ref = _async_to_generator(function*() { - const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./test"))) // FIVE + var _ref = _async_to_generator._(function*() { + const req = yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./test"))) // FIVE ; }); return function l() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.2.minified.js index bb163317fc8b..4e0aa539c756 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS.2.minified.js @@ -1,3 +1,3 @@ //// [test.ts] "use strict"; -exports, exports, require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_interop_require_wildcard.js").default; +exports, exports; diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System.1.normal.js index 5c96d3233aa3..9b73dc9cf93f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System.1.normal.js @@ -1,6 +1,6 @@ //// [test.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs" + "@swc/helpers/_/_async_to_generator" ], function(_export, _context) { "use strict"; var _async_to_generator, cl1, cl2, obj, l; @@ -22,7 +22,7 @@ System.register([ return { setters: [ function(_async_to_generator1) { - _async_to_generator = _async_to_generator1.default; + _async_to_generator = _async_to_generator1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD.1.normal.js index 46649b6cfd11..3904f6453731 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD.1.normal.js @@ -1,12 +1,12 @@ //// [test.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.testTs = {}, global.asyncToGenerator, global.interopRequireWildcard); })(this, function(exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -25,13 +25,11 @@ cl2: ()=>cl2, l: ()=>l }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; function fn() { return _fn.apply(this, arguments); } function _fn() { - _fn = _async_to_generator(function*() { + _fn = _async_to_generator._(function*() { const req = yield import('./test') // ONE ; }); @@ -39,14 +37,14 @@ } class cl1 { m() { - return _async_to_generator(function*() { + return _async_to_generator._(function*() { const req = yield import('./test') // TWO ; })(); } } const obj = { - m: /*#__PURE__*/ _async_to_generator(function*() { + m: /*#__PURE__*/ _async_to_generator._(function*() { const req = yield import('./test') // THREE ; }) @@ -54,7 +52,7 @@ class cl2 { constructor(){ this.p = { - m: /*#__PURE__*/ _async_to_generator(function*() { + m: /*#__PURE__*/ _async_to_generator._(function*() { const req = yield import('./test') // FOUR ; }) @@ -62,7 +60,7 @@ } } const l = function() { - var _ref = _async_to_generator(function*() { + var _ref = _async_to_generator._(function*() { const req = yield import('./test') // FIVE ; }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.1.normal.js index 4ada3205c33f..1e4c441139e6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.1.normal.js @@ -27,7 +27,7 @@ class C { Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -let p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./defaultPath"))); -let p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./defaultPath"))); -let p3 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./defaultPath"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +let p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./defaultPath"))); +let p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./defaultPath"))); +let p3 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./defaultPath"))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.2.minified.js index ddcb04ba3c51..4a5d2f4ce970 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1.2.minified.js @@ -25,5 +25,5 @@ class C { Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>_interop_require_wildcard(require("./defaultPath"))), Promise.resolve().then(()=>_interop_require_wildcard(require("./defaultPath"))), Promise.resolve().then(()=>_interop_require_wildcard(require("./defaultPath"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>_interop_require_wildcard._(require("./defaultPath"))), Promise.resolve().then(()=>_interop_require_wildcard._(require("./defaultPath"))), Promise.resolve().then(()=>_interop_require_wildcard._(require("./defaultPath"))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.1.normal.js index 33e59162eefc..4f7f0946a613 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.1.normal.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p0 = Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p0 = Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); function returnDynamicLoad(path) { - return Promise.resolve(path).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); + return Promise.resolve(path).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.2.minified.js index e1e8fa93b543..17ca1f845302 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionDeclarationEmit1.2.minified.js @@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard(require(p))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard._(require(p))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5AMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5AMD.1.normal.js index a490a65011fd..02ca7ee00d33 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5AMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5AMD.1.normal.js @@ -21,8 +21,8 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _class_call_check, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -42,20 +42,18 @@ define([ return D; } }); - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; new Promise(function(resolve, reject) { return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); var p1 = new Promise(function(resolve, reject) { return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); p1.then(function(zero) { @@ -65,7 +63,7 @@ define([ return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); function foo() { @@ -73,14 +71,14 @@ define([ return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); } var C = /*#__PURE__*/ function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } var _proto = C.prototype; _proto.method = function method() { @@ -88,7 +86,7 @@ define([ return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); }; @@ -97,7 +95,7 @@ define([ var D = /*#__PURE__*/ function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } var _proto = D.prototype; _proto.method = function method() { @@ -105,7 +103,7 @@ define([ return require([ "./0" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }); }; diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5AMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5AMD.2.minified.js index b398a7e51534..5355fc55cc88 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5AMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5AMD.2.minified.js @@ -20,8 +20,8 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _class_call_check, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -38,17 +38,17 @@ define([ D: function() { return D; } - }), _class_call_check = _class_call_check.default, _interop_require_wildcard = _interop_require_wildcard.default, new Promise(function(resolve, reject) { + }), new Promise(function(resolve, reject) { return require([ "./0" ], function(m) { - return resolve(_interop_require_wildcard(m)); + return resolve(_interop_require_wildcard._(m)); }, reject); }), new Promise(function(resolve, reject) { return require([ "./0" ], function(m) { - return resolve(_interop_require_wildcard(m)); + return resolve(_interop_require_wildcard._(m)); }, reject); }).then(function(zero) { return zero.foo(); @@ -57,19 +57,19 @@ define([ return require([ "./0" ], function(m) { - return resolve(_interop_require_wildcard(m)); + return resolve(_interop_require_wildcard._(m)); }, reject); }), D = function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } return D.prototype.method = function() { new Promise(function(resolve, reject) { return require([ "./0" ], function(m) { - return resolve(_interop_require_wildcard(m)); + return resolve(_interop_require_wildcard._(m)); }, reject); }); }, D; diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5CJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5CJS.1.normal.js index 311110127505..c1348e682e01 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5CJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5CJS.1.normal.js @@ -31,34 +31,34 @@ _export(exports, { return D; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); var p1 = Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); p1.then(function(zero) { return zero.foo(); }); var p2 = Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); function foo() { var p2 = Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); } var C = /*#__PURE__*/ function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } var _proto = C.prototype; _proto.method = function method() { var loadAsync = Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); }; return C; @@ -66,12 +66,12 @@ var C = /*#__PURE__*/ function() { var D = /*#__PURE__*/ function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } var _proto = D.prototype; _proto.method = function method() { var loadAsync = Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./0")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./0")); }); }; return D; diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5CJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5CJS.2.minified.js index 75665cc2ee71..e7103474be03 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5CJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5CJS.2.minified.js @@ -28,24 +28,24 @@ Object.defineProperty(exports, "__esModule", { return D; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); Promise.resolve().then(function() { - return _interop_require_wildcard(require("./0")); + return _interop_require_wildcard._(require("./0")); }), Promise.resolve().then(function() { - return _interop_require_wildcard(require("./0")); + return _interop_require_wildcard._(require("./0")); }).then(function(zero) { return zero.foo(); }); var p2 = Promise.resolve().then(function() { - return _interop_require_wildcard(require("./0")); + return _interop_require_wildcard._(require("./0")); }), D = function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } return D.prototype.method = function() { Promise.resolve().then(function() { - return _interop_require_wildcard(require("./0")); + return _interop_require_wildcard._(require("./0")); }); }, D; }(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5System.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5System.1.normal.js index 1ed233af6ae8..149a337c2d90 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5System.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5System.1.normal.js @@ -12,7 +12,7 @@ System.register([], function(_export, _context) { }); //// [1.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check, p1, p2, C, D; @@ -22,7 +22,7 @@ System.register([ return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5System.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5System.2.minified.js index eae5d3d1d737..3980273a8975 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5System.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5System.2.minified.js @@ -9,14 +9,14 @@ System.register([], function(_export, _context) { }); //// [1.ts] System.register([ - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(_export, _context) { "use strict"; var _class_call_check; return { setters: [ function(_class_call_check1) { - _class_call_check = _class_call_check1.default; + _class_call_check = _class_call_check1._; } ], execute: function() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5UMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5UMD.1.normal.js index 82fbe497a4a0..9f7c55b5ba69 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5UMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5UMD.1.normal.js @@ -22,13 +22,13 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_class_call_check.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.classCallCheckMjs, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.classCallCheck, global.interopRequireWildcard); })(this, function(exports, _class_call_check, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -48,8 +48,6 @@ return D; } }); - _class_call_check = _class_call_check.default; - _interop_require_wildcard = _interop_require_wildcard.default; import("./0"); var p1 = import("./0"); p1.then(function(zero) { @@ -62,7 +60,7 @@ var C = /*#__PURE__*/ function() { "use strict"; function C() { - _class_call_check(this, C); + _class_call_check._(this, C); } var _proto = C.prototype; _proto.method = function method() { @@ -73,7 +71,7 @@ var D = /*#__PURE__*/ function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } var _proto = D.prototype; _proto.method = function method() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5UMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5UMD.2.minified.js index 20d6cd587aed..12fabc533312 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5UMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5UMD.2.minified.js @@ -19,11 +19,11 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_class_call_check.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_class_call_check.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.classCallCheckMjs, global.interopRequireWildcardMjs); + "@swc/helpers/_/_class_call_check", + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.classCallCheck, global.interopRequireWildcard); }(this, function(exports1, _class_call_check, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -40,13 +40,13 @@ D: function() { return D; } - }), _class_call_check = _class_call_check.default, _interop_require_wildcard = _interop_require_wildcard.default, import("./0"), import("./0").then(function(zero) { + }), import("./0"), import("./0").then(function(zero) { return zero.foo(); }); var p2 = import("./0"), D = function() { "use strict"; function D() { - _class_call_check(this, D); + _class_call_check._(this, D); } return D.prototype.method = function() { import("./0"); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6AMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6AMD.1.normal.js index 9a2071d0ba18..5a38c12c2312 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6AMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6AMD.1.normal.js @@ -19,7 +19,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -35,36 +35,35 @@ define([ p2: ()=>p2, D: ()=>D }); - _interop_require_wildcard = _interop_require_wildcard.default; new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); var p1 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); p1.then((zero)=>{ return zero.foo(); }); var p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); function foo() { const p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } class C { method() { const loadAsync = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } } class D { method() { const loadAsync = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } } }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6AMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6AMD.2.minified.js index 343e0565fd4f..39640f696f35 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6AMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6AMD.2.minified.js @@ -18,7 +18,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -31,19 +31,19 @@ define([ }(exports, { p2: ()=>p2, D: ()=>D - }), _interop_require_wildcard = _interop_require_wildcard.default, new Promise((resolve, reject)=>require([ + }), new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)), new Promise((resolve, reject)=>require([ + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)), new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)).then((zero)=>zero.foo()); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)).then((zero)=>zero.foo()); var p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); class D { method() { new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); } } }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6CJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6CJS.1.normal.js index b8247ba8181e..46eda7f0febf 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6CJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6CJS.1.normal.js @@ -25,23 +25,23 @@ _export(exports, { p2: ()=>p2, D: ()=>D }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); -var p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); +var p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); p1.then((zero)=>{ return zero.foo(); }); -var p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); +var p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); function foo() { - const p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } class C { method() { - const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } } class D { method() { - const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6CJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6CJS.2.minified.js index e9025bc6b2e6..016fd9eec498 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6CJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6CJS.2.minified.js @@ -22,11 +22,11 @@ Object.defineProperty(exports, "__esModule", { p2: ()=>p2, D: ()=>D }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))), Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))).then((zero)=>zero.foo()); -var p2 = Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))), Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))).then((zero)=>zero.foo()); +var p2 = Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))); class D { method() { - Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))); + Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))); } } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6UMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6UMD.1.normal.js index 01b330e7f19f..a531a491c170 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6UMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6UMD.1.normal.js @@ -20,12 +20,12 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard); })(this, function(exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -41,7 +41,6 @@ p2: ()=>p2, D: ()=>D }); - _interop_require_wildcard = _interop_require_wildcard.default; import("./0"); var p1 = import("./0"); p1.then((zero)=>{ diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6UMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6UMD.2.minified.js index c9a02e980a20..ca5fc657b8e6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6UMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6UMD.2.minified.js @@ -17,10 +17,10 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs); + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard); }(this, function(exports1, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -33,7 +33,7 @@ }(exports1, { p2: ()=>p2, D: ()=>D - }), _interop_require_wildcard = _interop_require_wildcard.default, import("./0"), import("./0").then((zero)=>zero.foo()); + }), import("./0"), import("./0").then((zero)=>zero.foo()); var p2 = import("./0"); class D { method() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD1.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD1.1.normal.js index 591a41c7e4b4..b90f09503f0b 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD1.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD1.1.normal.js @@ -19,7 +19,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -29,22 +29,21 @@ define([ enumerable: true, get: ()=>p2 }); - _interop_require_wildcard = _interop_require_wildcard.default; new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); var p1 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); p1.then((zero)=>{ return zero.foo(); }); var p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); function foo() { const p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD1.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD1.2.minified.js index 25524f06a90c..e0921711931f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD1.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD1.2.minified.js @@ -18,7 +18,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -26,12 +26,12 @@ define([ }), Object.defineProperty(exports, "p2", { enumerable: !0, get: ()=>p2 - }), _interop_require_wildcard = _interop_require_wildcard.default, new Promise((resolve, reject)=>require([ + }), new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)), new Promise((resolve, reject)=>require([ + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)), new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)).then((zero)=>zero.foo()); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)).then((zero)=>zero.foo()); var p2 = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD2.1.normal.js index 551dba2f55ac..61e860a29592 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD2.1.normal.js @@ -22,13 +22,12 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; function foo(x) { x.then((value)=>{ let b = new value.B(); @@ -37,5 +36,5 @@ define([ } foo(new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject))); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject))); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD2.2.minified.js index 512fb6e1b2c1..358b1814c772 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD2.2.minified.js @@ -20,16 +20,16 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _interop_require_wildcard = _interop_require_wildcard.default, function(x) { + }), function(x) { x.then((value)=>{ new value.B().print(); }); }(new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject))); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject))); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3.1.normal.js index e45b2ce44e12..84db45181944 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3.1.normal.js @@ -21,17 +21,16 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; async function foo() { class C extends (await new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject))).B { + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject))).B { } var c = new C(); c.print(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3.2.minified.js index 0e45d1eb3af4..b962c19a0d76 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3.2.minified.js @@ -20,15 +20,15 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _interop_require_wildcard = _interop_require_wildcard.default, async function() { + }), async function() { class C extends (await new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject))).B { + ], (m)=>resolve(_interop_require_wildcard._(m)), reject))).B { } new C().print(); }(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4.1.normal.js index 4d0d5bf024bc..018fe222c392 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4.1.normal.js @@ -53,7 +53,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -63,47 +63,46 @@ define([ enumerable: true, get: ()=>D }); - _interop_require_wildcard = _interop_require_wildcard.default; class C { method() { const loadAsync = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ console.log(err); let one = await new Promise((resolve, reject)=>require([ "./1" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); console.log(one.backup()); }); } constructor(){ this.myModule = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } } class D { method() { const loadAsync = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ console.log(err); let one = await new Promise((resolve, reject)=>require([ "./1" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); console.log(one.backup()); }); } constructor(){ this.myModule = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); } } }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4.2.minified.js index ad8efe7edf31..07675f9d173f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4.2.minified.js @@ -48,7 +48,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -56,23 +56,23 @@ define([ }), Object.defineProperty(exports, "D", { enumerable: !0, get: ()=>D - }), _interop_require_wildcard = _interop_require_wildcard.default; + }); class D { method() { new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)), this.myModule.then((Zero)=>{ + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)), this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ console.log(err), console.log((await new Promise((resolve, reject)=>require([ "./1" - ], (m)=>resolve(_interop_require_wildcard(m)), reject))).backup()); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject))).backup()); }); } constructor(){ this.myModule = new Promise((resolve, reject)=>require([ "./0" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); } } }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS1.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS1.1.normal.js index 8c68a1a9144b..c65ebf8fb93c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS1.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS1.1.normal.js @@ -19,13 +19,13 @@ Object.defineProperty(exports, "p2", { enumerable: true, get: ()=>p2 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); -var p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); +var p1 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); p1.then((zero)=>{ return zero.foo(); }); -var p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); +var p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); function foo() { - const p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const p2 = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS1.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS1.2.minified.js index 39ea110e70f4..d9033eff695f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS1.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS1.2.minified.js @@ -17,6 +17,6 @@ Object.defineProperty(exports, "__esModule", { enumerable: !0, get: ()=>p2 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))), Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))).then((zero)=>zero.foo()); -var p2 = Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))), Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))).then((zero)=>zero.foo()); +var p2 = Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2.1.normal.js index 1c9b7fb2529a..ac8491915fa8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2.1.normal.js @@ -27,13 +27,13 @@ function backup() { Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); async function compute(promise) { let j = await promise; if (!j) { - j = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./1"))); + j = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./1"))); return j.backup(); } return j.foo(); } -compute(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0")))); +compute(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0")))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2.2.minified.js index 89170ed53dfd..df1d4b836e57 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2.2.minified.js @@ -25,8 +25,8 @@ Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); !async function(promise) { let j = await promise; - j ? j.foo() : (j = await Promise.resolve().then(()=>_interop_require_wildcard(require("./1")))).backup(); -}(Promise.resolve().then(()=>_interop_require_wildcard(require("./0")))); + j ? j.foo() : (j = await Promise.resolve().then(()=>_interop_require_wildcard._(require("./1")))).backup(); +}(Promise.resolve().then(()=>_interop_require_wildcard._(require("./0")))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS3.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS3.1.normal.js index 19b89285d424..9f66b16a6ca6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS3.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS3.1.normal.js @@ -18,11 +18,11 @@ class B { Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); function foo(x) { x.then((value)=>{ let b = new value.B(); b.print(); }); } -foo(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0")))); +foo(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0")))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS3.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS3.2.minified.js index b16b67e064aa..165c65d50433 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS3.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS3.2.minified.js @@ -16,9 +16,9 @@ class B { Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); !function(x) { x.then((value)=>{ new value.B().print(); }); -}(Promise.resolve().then(()=>_interop_require_wildcard(require("./0")))); +}(Promise.resolve().then(()=>_interop_require_wildcard._(require("./0")))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4.1.normal.js index 95d6980bb654..ef9c99f76cc6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4.1.normal.js @@ -17,9 +17,9 @@ class B { Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); async function foo() { - class C extends (await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0")))).B { + class C extends (await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0")))).B { } var c = new C(); c.print(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4.2.minified.js index 414b6b2c7fda..01e4efebf6e9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4.2.minified.js @@ -16,9 +16,9 @@ class B { Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); !async function() { - class C extends (await Promise.resolve().then(()=>_interop_require_wildcard(require("./0")))).B { + class C extends (await Promise.resolve().then(()=>_interop_require_wildcard._(require("./0")))).B { } new C().print(); }(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5.1.normal.js index 0cc79bc9dc08..785b0bca94eb 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5.1.normal.js @@ -44,34 +44,34 @@ Object.defineProperty(exports, "D", { enumerable: true, get: ()=>D }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); class C { method() { - const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ console.log(err); - let one = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./1"))); + let one = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./1"))); console.log(one.backup()); }); } constructor(){ - this.myModule = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + this.myModule = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } } class D { method() { - const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + const loadAsync = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ console.log(err); - let one = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./1"))); + let one = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./1"))); console.log(one.backup()); }); } constructor(){ - this.myModule = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./0"))); + this.myModule = Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./0"))); } } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5.2.minified.js index 108511a8d451..ab27a74f55fa 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5.2.minified.js @@ -40,16 +40,16 @@ Object.defineProperty(exports, "__esModule", { enumerable: !0, get: ()=>D }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); class D { method() { - Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))), this.myModule.then((Zero)=>{ + Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))), this.myModule.then((Zero)=>{ console.log(Zero.foo()); }, async (err)=>{ - console.log(err), console.log((await Promise.resolve().then(()=>_interop_require_wildcard(require("./1")))).backup()); + console.log(err), console.log((await Promise.resolve().then(()=>_interop_require_wildcard._(require("./1")))).backup()); }); } constructor(){ - this.myModule = Promise.resolve().then(()=>_interop_require_wildcard(require("./0"))); + this.myModule = Promise.resolve().then(()=>_interop_require_wildcard._(require("./0"))); } } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.1.normal.js index 57f0ea66a6d9..e197f372a964 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.1.normal.js @@ -8,13 +8,12 @@ define([ //// [index.ts] define([ "require", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, _interop_require_wildcard) { "use strict"; - _interop_require_wildcard = _interop_require_wildcard.default; return async function() { const something = await new Promise((resolve, reject)=>require([ "./something" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); }; }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.2.minified.js index 155c1bf9c420..dd5911322520 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD.2.minified.js @@ -7,11 +7,11 @@ define([ //// [index.ts] define([ "require", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], function(require, _interop_require_wildcard) { - return _interop_require_wildcard = _interop_require_wildcard.default, async function() { + return async function() { await new Promise((resolve, reject)=>require([ "./something" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); }; }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.1.normal.js index 1ea33f2f3b8e..17e568a27ce1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.1.normal.js @@ -3,7 +3,7 @@ module.exports = 42; //// [index.ts] "use strict"; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); module.exports = async function() { - const something = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./something"))); + const something = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./something"))); }; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.2.minified.js index cd3aac6e612a..d5bf7065b05a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS.2.minified.js @@ -3,7 +3,7 @@ module.exports = 42; //// [index.ts] "use strict"; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); module.exports = async function() { - await Promise.resolve().then(()=>_interop_require_wildcard(require("./something"))); + await Promise.resolve().then(()=>_interop_require_wildcard._(require("./something"))); }; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.1.normal.js index edf9db9d7379..02a37b631960 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.1.normal.js @@ -9,14 +9,13 @@ }); //// [index.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") module.exports = factory(require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") module.exports = factory(require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) module.exports = factory(global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) module.exports = factory(global.interopRequireWildcard); })(this, function(_interop_require_wildcard) { "use strict"; - _interop_require_wildcard = _interop_require_wildcard.default; return async function() { const something = await import("./something"); }; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.2.minified.js index 729edecf48ed..3aaf1c257f05 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD.2.minified.js @@ -6,11 +6,11 @@ }); //// [index.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? module.exports = factory(require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && (module.exports = factory(global.interopRequireWildcardMjs)); + "object" == typeof module && "object" == typeof module.exports ? module.exports = factory(require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && (module.exports = factory(global.interopRequireWildcard)); }(this, function(_interop_require_wildcard) { - return _interop_require_wildcard = _interop_require_wildcard.default, async function() { + return async function() { await import("./something"); }; }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD1.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD1.1.normal.js index b791ace4eaa3..c93df3991ca1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD1.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD1.1.normal.js @@ -20,12 +20,12 @@ }); //// [1.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.interopRequireWildcard); })(this, function(exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -35,7 +35,6 @@ enumerable: true, get: ()=>p2 }); - _interop_require_wildcard = _interop_require_wildcard.default; import("./0"); var p1 = import("./0"); p1.then((zero)=>{ diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD1.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD1.2.minified.js index 3222cc346c18..ca0d439dae41 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD1.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD1.2.minified.js @@ -17,10 +17,10 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcardMjs); + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.interopRequireWildcard); }(this, function(exports1, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -28,6 +28,6 @@ }), Object.defineProperty(exports1, "p2", { enumerable: !0, get: ()=>p2 - }), _interop_require_wildcard = _interop_require_wildcard.default, import("./0"), import("./0").then((zero)=>zero.foo()); + }), import("./0"), import("./0").then((zero)=>zero.foo()); var p2 = import("./0"); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD2.1.normal.js index 21b44d893543..b44f67ce2b45 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD2.1.normal.js @@ -23,18 +23,17 @@ //// [2.ts] // We use Promise for now as there is no way to specify shape of module object (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard); })(this, function(exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; function foo(x) { x.then((value)=>{ let b = new value.B(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD2.2.minified.js index 5d30a3738041..64c8923b69d2 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD2.2.minified.js @@ -19,15 +19,15 @@ }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs); + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard); }(this, function(exports1, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _interop_require_wildcard = _interop_require_wildcard.default, function(x) { + }), function(x) { x.then((value)=>{ new value.B().print(); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3.1.normal.js index 45ef8aa7c1e2..a886742d191a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3.1.normal.js @@ -22,18 +22,17 @@ }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard); })(this, function(exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; async function foo() { class C extends (await import("./0")).B { } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3.2.minified.js index ffa5f85f8970..76749f1e77d0 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3.2.minified.js @@ -19,15 +19,15 @@ }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs); + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard); }(this, function(exports1, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _interop_require_wildcard = _interop_require_wildcard.default, async function() { + }), async function() { class C extends (await import("./0")).B { } new C().print(); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4.1.normal.js index ad2d1fa34968..77e9d6b21802 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4.1.normal.js @@ -51,12 +51,12 @@ }); //// [2.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.2Ts = {}, global.interopRequireWildcard); })(this, function(exports, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -66,7 +66,6 @@ enumerable: true, get: ()=>D }); - _interop_require_wildcard = _interop_require_wildcard.default; class C { method() { const loadAsync = import("./0"); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4.2.minified.js index 2d0384213b15..7cdb0e5f8a44 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4.2.minified.js @@ -44,10 +44,10 @@ }); //// [2.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcardMjs); + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.2Ts = {}, global.interopRequireWildcard); }(this, function(exports1, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { @@ -55,7 +55,7 @@ }), Object.defineProperty(exports1, "D", { enumerable: !0, get: ()=>D - }), _interop_require_wildcard = _interop_require_wildcard.default; + }); class D { method() { import("./0"), this.myModule.then((Zero)=>{ diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5.1.normal.js index dc713141b230..47895666bed1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5.1.normal.js @@ -21,25 +21,23 @@ //// [1.ts] // https://github.com/microsoft/TypeScript/issues/36780 (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.1Ts = {}, global.asyncToGenerator, global.interopRequireWildcard); })(this, function(exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; function func() { return _func.apply(this, arguments); } function _func() { - _func = _async_to_generator(function*() { + _func = _async_to_generator._(function*() { const packageName = '.'; const packageJson = yield import(packageName + '/package.json'); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5.2.minified.js index 7040e6dbe918..4900846c8f54 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5.2.minified.js @@ -17,14 +17,14 @@ }); //// [1.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs); + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.1Ts = {}, global.asyncToGenerator, global.interopRequireWildcard); }(this, function(exports1, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _interop_require_wildcard = _interop_require_wildcard.default; + }); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.1.normal.js index 220c832e2788..653ed446b227 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.1.normal.js @@ -17,25 +17,23 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function*() { + _foo = _async_to_generator._(function*() { return yield new Promise((resolve, reject)=>require([ (yield new Promise((resolve, reject)=>require([ "./foo" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject))).default - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject))).default + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); }); return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.2.minified.js index 0bcf583c9e17..32579d95ce47 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD.2.minified.js @@ -16,11 +16,11 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], function(require, exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _interop_require_wildcard = _interop_require_wildcard.default; + }); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.1.normal.js index 54cbf482340b..0887715b781d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.1.normal.js @@ -19,23 +19,20 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], function(require, exports, _async_to_generator, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function() { - return _ts_generator(this, function(_state) { + _foo = _async_to_generator._(function() { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ @@ -44,7 +41,7 @@ define([ return require([ "./foo" ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) ]; @@ -55,7 +52,7 @@ define([ return require([ _state.sent().default ], function(m) { - return resolve(/*#__PURE__*/ _interop_require_wildcard(m)); + return resolve(/*#__PURE__*/ _interop_require_wildcard._(m)); }, reject); }) ]; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.2.minified.js index c675563281cf..fbb3430dc8df 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2.2.minified.js @@ -18,12 +18,12 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], function(require, exports, _async_to_generator, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _interop_require_wildcard = _interop_require_wildcard.default, _ts_generator = _ts_generator.default; + }); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.1.normal.js index 44958c62a79c..b2302bdfd0e4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.1.normal.js @@ -13,14 +13,14 @@ const _default = "./foo"; Object.defineProperty(exports, "__esModule", { value: true }); -const _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function*() { - return yield Promise.resolve((yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./foo")))).default).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); + _foo = _async_to_generator._(function*() { + return yield Promise.resolve((yield Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./foo")))).default).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); }); return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.2.minified.js index 5c43c53d0f36..575b7eef889c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS.2.minified.js @@ -11,4 +11,4 @@ const _default = "./foo"; "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_interop_require_wildcard.js").default; +}), require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard"); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.1.normal.js index 15a0eb43f3aa..c8f976f40e88 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.1.normal.js @@ -15,28 +15,28 @@ var _default = "./foo"; Object.defineProperty(exports, "__esModule", { value: true }); -var _async_to_generator = require("@swc/helpers/lib/_async_to_generator.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _ts_generator = require("@swc/helpers/lib/_ts_generator.js").default; +var _async_to_generator = require("@swc/helpers/_/_async_to_generator"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _ts_generator = require("@swc/helpers/_/_ts_generator"); function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function() { - return _ts_generator(this, function(_state) { + _foo = _async_to_generator._(function() { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ 4, Promise.resolve().then(function() { - return /*#__PURE__*/ _interop_require_wildcard(require("./foo")); + return /*#__PURE__*/ _interop_require_wildcard._(require("./foo")); }) ]; case 1: return [ 4, Promise.resolve(_state.sent().default).then(function(p) { - return /*#__PURE__*/ _interop_require_wildcard(require(p)); + return /*#__PURE__*/ _interop_require_wildcard._(require(p)); }) ]; case 2: diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.2.minified.js index 7feab6a9e707..6e28c89dac09 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2.2.minified.js @@ -13,4 +13,4 @@ var _default = "./foo"; "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_async_to_generator.js").default, require("@swc/helpers/lib/_interop_require_wildcard.js").default, require("@swc/helpers/lib/_ts_generator.js").default; +}), require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard"), require("@swc/helpers/_/_ts_generator"); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.1.normal.js index 882948e57717..ecc5736ef3dd 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.1.normal.js @@ -1,7 +1,7 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.2.minified.js index 160816a22fd3..18ae32d536c4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015.2.minified.js @@ -1,4 +1,4 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.1.normal.js index 0c990d32311d..4f6b807bc202 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.1.normal.js @@ -1,8 +1,8 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.2.minified.js index 0fa25ff580c9..62d84c704b03 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152.2.minified.js @@ -1,5 +1,5 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.1.normal.js index 882948e57717..ecc5736ef3dd 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.1.normal.js @@ -1,7 +1,7 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.2.minified.js index 160816a22fd3..18ae32d536c4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020.2.minified.js @@ -1,4 +1,4 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.1.normal.js index 0c990d32311d..4f6b807bc202 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.1.normal.js @@ -1,8 +1,8 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.2.minified.js index 0fa25ff580c9..62d84c704b03 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202.2.minified.js @@ -1,5 +1,5 @@ //// [foo.ts] export default "./foo"; //// [index.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.1.normal.js index d2b255650ef1..ded4c09d9885 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.1.normal.js @@ -10,7 +10,7 @@ System.register([], function(_export, _context) { }); //// [index.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs" + "@swc/helpers/_/_async_to_generator" ], function(_export, _context) { "use strict"; var _async_to_generator; @@ -26,7 +26,7 @@ System.register([ return { setters: [ function(_async_to_generator1) { - _async_to_generator = _async_to_generator1.default; + _async_to_generator = _async_to_generator1._; } ], execute: function() {} diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.2.minified.js index 66f2e4439ba6..a861fb43f5ef 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem.2.minified.js @@ -9,12 +9,12 @@ System.register([], function(_export, _context) { }); //// [index.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs" + "@swc/helpers/_/_async_to_generator" ], function(_export, _context) { return { setters: [ function(_async_to_generator1) { - _async_to_generator1.default; + _async_to_generator1._; } ], execute: function() {} diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.1.normal.js index 00a490ad70b5..9727f21cac60 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.1.normal.js @@ -10,8 +10,8 @@ System.register([], function(_export, _context) { }); //// [index.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_ts_generator" ], function(_export, _context) { "use strict"; var _async_to_generator, _ts_generator; @@ -45,10 +45,10 @@ System.register([ return { setters: [ function(_async_to_generator1) { - _async_to_generator = _async_to_generator1.default; + _async_to_generator = _async_to_generator1._; }, function(_ts_generator1) { - _ts_generator = _ts_generator1.default; + _ts_generator = _ts_generator1._; } ], execute: function() {} diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.2.minified.js index 59c83a4da251..b0e9908171e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2.2.minified.js @@ -9,16 +9,16 @@ System.register([], function(_export, _context) { }); //// [index.ts] System.register([ - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_ts_generator" ], function(_export, _context) { return { setters: [ function(_async_to_generator1) { - _async_to_generator1.default; + _async_to_generator1._; }, function(_ts_generator1) { - _ts_generator1.default; + _ts_generator1._; } ], execute: function() {} diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.1.normal.js index bc8256c93d4d..ef6f62a3c562 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.1.normal.js @@ -18,25 +18,23 @@ }); //// [index.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.indexTs = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.indexTs = {}, global.asyncToGenerator, global.interopRequireWildcard); })(this, function(exports, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function*() { + _foo = _async_to_generator._(function*() { return yield import((yield import("./foo")).default); }); return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.2.minified.js index 62bcbac4642a..367bd3e9247d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD.2.minified.js @@ -15,14 +15,14 @@ }); //// [index.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.indexTs = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs); + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.indexTs = {}, global.asyncToGenerator, global.interopRequireWildcard); }(this, function(exports1, _async_to_generator, _interop_require_wildcard) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _interop_require_wildcard = _interop_require_wildcard.default; + }); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.1.normal.js index 6fe42e6f9480..c7d4872af8ec 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.1.normal.js @@ -20,28 +20,25 @@ }); //// [index.ts] (function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("@swc/helpers/src/_ts_generator.mjs")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard"), require("@swc/helpers/_/_ts_generator")); else if (typeof define === "function" && define.amd) define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.indexTs = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs, global.tsGeneratorMjs); + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.indexTs = {}, global.asyncToGenerator, global.interopRequireWildcard, global.tsGenerator); })(this, function(exports, _async_to_generator, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _async_to_generator = _async_to_generator.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _ts_generator = _ts_generator.default; function foo() { return _foo.apply(this, arguments); } function _foo() { - _foo = _async_to_generator(function() { - return _ts_generator(this, function(_state) { + _foo = _async_to_generator._(function() { + return _ts_generator._(this, function(_state) { switch(_state.label){ case 0: return [ diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.2.minified.js index 93a6fa4e850e..b8e3bd152ecf 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2.2.minified.js @@ -17,15 +17,15 @@ }); //// [index.ts] !function(global, factory) { - "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/src/_async_to_generator.mjs"), require("@swc/helpers/src/_interop_require_wildcard.mjs"), require("@swc/helpers/src/_ts_generator.mjs")) : "function" == typeof define && define.amd ? define([ + "object" == typeof module && "object" == typeof module.exports ? factory(exports, require("@swc/helpers/_/_async_to_generator"), require("@swc/helpers/_/_interop_require_wildcard"), require("@swc/helpers/_/_ts_generator")) : "function" == typeof define && define.amd ? define([ "exports", - "@swc/helpers/src/_async_to_generator.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", - "@swc/helpers/src/_ts_generator.mjs" - ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.indexTs = {}, global.asyncToGeneratorMjs, global.interopRequireWildcardMjs, global.tsGeneratorMjs); + "@swc/helpers/_/_async_to_generator", + "@swc/helpers/_/_interop_require_wildcard", + "@swc/helpers/_/_ts_generator" + ], factory) : (global = "undefined" != typeof globalThis ? globalThis : global || self) && factory(global.indexTs = {}, global.asyncToGenerator, global.interopRequireWildcard, global.tsGenerator); }(this, function(exports1, _async_to_generator, _interop_require_wildcard, _ts_generator) { "use strict"; Object.defineProperty(exports1, "__esModule", { value: !0 - }), _async_to_generator = _async_to_generator.default, _interop_require_wildcard = _interop_require_wildcard.default, _ts_generator = _ts_generator.default; + }); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.1.normal.js index cb26ca5607e9..60181656f507 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.1.normal.js @@ -1,5 +1,5 @@ //// [0.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var B = /*#__PURE__*/ function() { "use strict"; function B() { @@ -19,9 +19,9 @@ export function backup() { return "backup"; } //// [2.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.2.minified.js index 5d33efbdd784..34c8dd2ca7bb 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified.2.minified.js @@ -1,5 +1,5 @@ //// [0.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var B = function() { "use strict"; function B() { @@ -17,6 +17,6 @@ export function backup() { return "backup"; } //// [2.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.1.normal.js index 59708794bc3b..603d69480eb6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.1.normal.js @@ -14,21 +14,21 @@ class C { Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p1 = Promise.resolve(ValidSomeCondition() ? "./0" : "externalModule").then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p11 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p1 = Promise.resolve(ValidSomeCondition() ? "./0" : "externalModule").then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p11 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); p1.then((zero)=>{ return zero.foo(); // ok, zero is any }); let j; -var p3 = Promise.resolve(j = getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); +var p3 = Promise.resolve(j = getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); function* loadModule(directories) { for (const directory1 of directories){ const path = `${directory1}\\moduleFile`; - Promise.resolve((yield path)).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); + Promise.resolve((yield path)).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); } } diff --git a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.2.minified.js index 6f718aaa5102..334186f4e7f0 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny.2.minified.js @@ -13,7 +13,7 @@ class C { Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))); -var p1 = (Promise.resolve(ValidSomeCondition() ? "./0" : "externalModule").then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p)))); -Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard(require(p))), p1.then((zero)=>zero.foo()), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve(`${directory}\\${moduleFile}`).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))); +var p1 = (Promise.resolve(ValidSomeCondition() ? "./0" : "externalModule").then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p)))); +Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard._(require(p))), p1.then((zero)=>zero.foo()), Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.1.normal.js index 1e125bfe9f05..efcf6cac4b35 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.1.normal.js @@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); // Error specifier is not assignable to string -Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); +Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p1 = Promise.resolve(getSpecifier()).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +const p2 = Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); p1.then((zero)=>{ return zero.foo(); // ok, zero is any }); var p3 = Promise.resolve([ "path1", "path2" -]).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); -var p4 = Promise.resolve(()=>"PathToModule").then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p))); +]).then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); +var p4 = Promise.resolve(()=>"PathToModule").then((p)=>/*#__PURE__*/ _interop_require_wildcard._(require(p))); diff --git a/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.2.minified.js index 04e1034fbf06..7b37308ad954 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionSpecifierNotStringTypeError.2.minified.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))); -var p1 = Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard(require(p))); -Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard(require(p))), p1.then((zero)=>zero.foo()), Promise.resolve([ +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))); +var p1 = Promise.resolve(getSpecifier()).then((p)=>_interop_require_wildcard._(require(p))); +Promise.resolve(whatToLoad ? getSpecifier() : "defaulPath").then((p)=>_interop_require_wildcard._(require(p))), p1.then((zero)=>zero.foo()), Promise.resolve([ "path1", "path2" -]).then((p)=>_interop_require_wildcard(require(p))), Promise.resolve(()=>"PathToModule").then((p)=>_interop_require_wildcard(require(p))); +]).then((p)=>_interop_require_wildcard._(require(p))), Promise.resolve(()=>"PathToModule").then((p)=>_interop_require_wildcard._(require(p))); diff --git a/crates/swc/tests/tsc-references/importClause_default.1.normal.js b/crates/swc/tests/tsc-references/importClause_default.1.normal.js index f523248b7d69..bc2efffbf011 100644 --- a/crates/swc/tests/tsc-references/importClause_default.1.normal.js +++ b/crates/swc/tests/tsc-references/importClause_default.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importClause_default.2.minified.js b/crates/swc/tests/tsc-references/importClause_default.2.minified.js index 81a31dfb0407..9979f905f5fc 100644 --- a/crates/swc/tests/tsc-references/importClause_default.2.minified.js +++ b/crates/swc/tests/tsc-references/importClause_default.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importDefaultNamedType.1.normal.js b/crates/swc/tests/tsc-references/importDefaultNamedType.1.normal.js index 0474f3c289f7..48f96046bb8f 100644 --- a/crates/swc/tests/tsc-references/importDefaultNamedType.1.normal.js +++ b/crates/swc/tests/tsc-references/importDefaultNamedType.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importDefaultNamedType.2.minified.js b/crates/swc/tests/tsc-references/importDefaultNamedType.2.minified.js index 0474f3c289f7..48f96046bb8f 100644 --- a/crates/swc/tests/tsc-references/importDefaultNamedType.2.minified.js +++ b/crates/swc/tests/tsc-references/importDefaultNamedType.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importEquals2.1.normal.js b/crates/swc/tests/tsc-references/importEquals2.1.normal.js index de44a6b45112..4e1930ac7927 100644 --- a/crates/swc/tests/tsc-references/importEquals2.1.normal.js +++ b/crates/swc/tests/tsc-references/importEquals2.1.normal.js @@ -1,6 +1,6 @@ //// [importEquals2.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importEquals2.2.minified.js b/crates/swc/tests/tsc-references/importEquals2.2.minified.js index 0b133e825f6d..72a9cc3405d9 100644 --- a/crates/swc/tests/tsc-references/importEquals2.2.minified.js +++ b/crates/swc/tests/tsc-references/importEquals2.2.minified.js @@ -1,6 +1,6 @@ //// [importEquals2.ts] //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] //! //! x Export assignment cannot be used when targeting ECMAScript modules. Consider using `export default` or another module format instead. diff --git a/crates/swc/tests/tsc-references/importImportOnlyModule.1.normal.js b/crates/swc/tests/tsc-references/importImportOnlyModule.1.normal.js index 253fa635a594..eff95e32065f 100644 --- a/crates/swc/tests/tsc-references/importImportOnlyModule.1.normal.js +++ b/crates/swc/tests/tsc-references/importImportOnlyModule.1.normal.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -14,10 +14,9 @@ define([ return C1; } }); - _class_call_check = _class_call_check.default; var C1 = function C1() { "use strict"; - _class_call_check(this, C1); + _class_call_check._(this, C1); this.m1 = 42; }; (function() { diff --git a/crates/swc/tests/tsc-references/importImportOnlyModule.2.minified.js b/crates/swc/tests/tsc-references/importImportOnlyModule.2.minified.js index 49c0625f4973..fad52c66cc64 100644 --- a/crates/swc/tests/tsc-references/importImportOnlyModule.2.minified.js +++ b/crates/swc/tests/tsc-references/importImportOnlyModule.2.minified.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -12,10 +12,10 @@ define([ get: function() { return C1; } - }), _class_call_check = _class_call_check.default; + }); var C1 = function C1() { "use strict"; - _class_call_check(this, C1), this.m1 = 42; + _class_call_check._(this, C1), this.m1 = 42; }; C1.s1 = !0; }); diff --git a/crates/swc/tests/tsc-references/importStatements.1.normal.js b/crates/swc/tests/tsc-references/importStatements.1.normal.js index b7770e50874d..cf96266af51a 100644 --- a/crates/swc/tests/tsc-references/importStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/importStatements.1.normal.js @@ -1,5 +1,5 @@ //// [importStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/importStatements.2.minified.js b/crates/swc/tests/tsc-references/importStatements.2.minified.js index b21122a8b8c5..1aec6b30e47f 100644 --- a/crates/swc/tests/tsc-references/importStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/importStatements.2.minified.js @@ -1,6 +1,6 @@ //// [importStatements.ts] var A, C, D, E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var Point = function Point(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeAmbient.1.normal.js b/crates/swc/tests/tsc-references/importTypeAmbient.1.normal.js index b7564e2acf82..bb25d05c98b9 100644 --- a/crates/swc/tests/tsc-references/importTypeAmbient.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeAmbient.1.normal.js @@ -1,5 +1,5 @@ //// [importTypeAmbient.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importTypeAmbient.2.minified.js b/crates/swc/tests/tsc-references/importTypeAmbient.2.minified.js index cdd415afb5da..66aeabc7fe00 100644 --- a/crates/swc/tests/tsc-references/importTypeAmbient.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeAmbient.2.minified.js @@ -1,2 +1,2 @@ //// [importTypeAmbient.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/importTypeGenericTypes.1.normal.js b/crates/swc/tests/tsc-references/importTypeGenericTypes.1.normal.js index 0218386684a2..1f9f4aab422a 100644 --- a/crates/swc/tests/tsc-references/importTypeGenericTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeGenericTypes.1.normal.js @@ -10,14 +10,14 @@ //! 7 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0, diff --git a/crates/swc/tests/tsc-references/importTypeGenericTypes.2.minified.js b/crates/swc/tests/tsc-references/importTypeGenericTypes.2.minified.js index 0218386684a2..1f9f4aab422a 100644 --- a/crates/swc/tests/tsc-references/importTypeGenericTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeGenericTypes.2.minified.js @@ -10,14 +10,14 @@ //! 7 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0, diff --git a/crates/swc/tests/tsc-references/importTypeLocal.1.normal.js b/crates/swc/tests/tsc-references/importTypeLocal.1.normal.js index ba21a8311f6b..fc081cd8ff3c 100644 --- a/crates/swc/tests/tsc-references/importTypeLocal.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeLocal.1.normal.js @@ -10,14 +10,14 @@ //! 6 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importTypeLocal.2.minified.js b/crates/swc/tests/tsc-references/importTypeLocal.2.minified.js index ba21a8311f6b..fc081cd8ff3c 100644 --- a/crates/swc/tests/tsc-references/importTypeLocal.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeLocal.2.minified.js @@ -10,14 +10,14 @@ //! 6 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importTypeLocalMissing.1.normal.js b/crates/swc/tests/tsc-references/importTypeLocalMissing.1.normal.js index 109123d8794c..6a8199b3e4ca 100644 --- a/crates/swc/tests/tsc-references/importTypeLocalMissing.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeLocalMissing.1.normal.js @@ -10,14 +10,14 @@ //! 6 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importTypeLocalMissing.2.minified.js b/crates/swc/tests/tsc-references/importTypeLocalMissing.2.minified.js index 109123d8794c..6a8199b3e4ca 100644 --- a/crates/swc/tests/tsc-references/importTypeLocalMissing.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeLocalMissing.2.minified.js @@ -10,14 +10,14 @@ //! 6 | //! `---- //// [foo2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar(input) { "use strict"; _class_call_check(this, Bar); }; export { Bar }; //// [usage.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.1.normal.js b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.1.normal.js index 2f577251f4b2..629cd1ca5115 100644 --- a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.1.normal.js +++ b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.1.normal.js @@ -1,6 +1,6 @@ //// [importsNotUsedAsValues_error.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.2.minified.js b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.2.minified.js index 9e7114f3b2d3..ab0a2da6ea95 100644 --- a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.2.minified.js +++ b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error.2.minified.js @@ -1,6 +1,6 @@ //// [importsNotUsedAsValues_error.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.1.normal.js b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.1.normal.js index dbe60cf9c5fa..f0f431fec2f5 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.1.normal.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.1.normal.js @@ -1,6 +1,6 @@ //// [incrementOperatorWithAnyOtherType.ts] // ++ operator on any type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY; var ANY1; var ANY2 = [ diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.2.minified.js b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.2.minified.js index 7d8123cdf5ed..814d1e1e9cdb 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.2.minified.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType.2.minified.js @@ -1,5 +1,5 @@ //// [incrementOperatorWithAnyOtherType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY, ANY1, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.1.normal.js index c4ec5cda1fc9..71e0265c990e 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [incrementOperatorWithNumberType.ts] // ++ operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.2.minified.js index e4c9b5d7ee50..30af49b61aed 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [incrementOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/indexersInClassType.1.normal.js b/crates/swc/tests/tsc-references/indexersInClassType.1.normal.js index b6e68811f878..a2812bf32b87 100644 --- a/crates/swc/tests/tsc-references/indexersInClassType.1.normal.js +++ b/crates/swc/tests/tsc-references/indexersInClassType.1.normal.js @@ -1,5 +1,5 @@ //// [indexersInClassType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/indexersInClassType.2.minified.js b/crates/swc/tests/tsc-references/indexersInClassType.2.minified.js index 98f5f2dc61bb..46db1a9d0f30 100644 --- a/crates/swc/tests/tsc-references/indexersInClassType.2.minified.js +++ b/crates/swc/tests/tsc-references/indexersInClassType.2.minified.js @@ -1,5 +1,5 @@ //// [indexersInClassType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var r = new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferFromBindingPattern.1.normal.js b/crates/swc/tests/tsc-references/inferFromBindingPattern.1.normal.js index 816c7300dfcc..77c9d2268791 100644 --- a/crates/swc/tests/tsc-references/inferFromBindingPattern.1.normal.js +++ b/crates/swc/tests/tsc-references/inferFromBindingPattern.1.normal.js @@ -1,5 +1,5 @@ //// [inferFromBindingPattern.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var x1 = f1(); // string var _f2 = _sliced_to_array(f2(), 1), x2 = _f2[0]; // string var _f3 = f3(), x3 = _f3.x; // string diff --git a/crates/swc/tests/tsc-references/inferFromBindingPattern.2.minified.js b/crates/swc/tests/tsc-references/inferFromBindingPattern.2.minified.js index 9e7a8fbce858..7a53e711dc99 100644 --- a/crates/swc/tests/tsc-references/inferFromBindingPattern.2.minified.js +++ b/crates/swc/tests/tsc-references/inferFromBindingPattern.2.minified.js @@ -1,5 +1,5 @@ //// [inferFromBindingPattern.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; f1(), _sliced_to_array(f2(), 1)[0], f3().x, _sliced_to_array([ 42 ], 1)[0], _sliced_to_array(selectJohn(), 1)[0]; diff --git a/crates/swc/tests/tsc-references/inferThis.1.normal.js b/crates/swc/tests/tsc-references/inferThis.1.normal.js index 87322c7adc66..ef9af850d622 100644 --- a/crates/swc/tests/tsc-references/inferThis.1.normal.js +++ b/crates/swc/tests/tsc-references/inferThis.1.normal.js @@ -1,5 +1,5 @@ //// [/a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferThis.2.minified.js b/crates/swc/tests/tsc-references/inferThis.2.minified.js index ff56b4c0aa8a..2f593023c521 100644 --- a/crates/swc/tests/tsc-references/inferThis.2.minified.js +++ b/crates/swc/tests/tsc-references/inferThis.2.minified.js @@ -1,5 +1,5 @@ //// [/a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.1.normal.js index b02c2d0ae9ae..a33ab16f9104 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.1.normal.js @@ -1,6 +1,6 @@ //// [inferringClassMembersFromAssignments.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.2.minified.js index 90aeb6ac53bc..1aad615aa148 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [inferringClassMembersFromAssignments.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.1.normal.js index 083642e2a687..8fbb0c8f6a89 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.1.normal.js index 3771979346ea..df49775fed30 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.1.normal.js index 01aaa1a7b246..12678edc3840 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.1.normal.js index a797401b3588..0af981b14574 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.1.normal.js @@ -1,5 +1,5 @@ //// [inferringClassMembersFromAssignments7.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.2.minified.js index c5a7cf2a85c2..200f51ffe164 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7.2.minified.js @@ -1,5 +1,5 @@ //// [inferringClassMembersFromAssignments7.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var c = new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.1.normal.js b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.1.normal.js index 885fb882c9f6..b16d42e09908 100644 --- a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.1.normal.js @@ -1,6 +1,6 @@ //// [inferringClassStaticMembersFromAssignments.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C1 = function C1() { "use strict"; _class_call_check(this, C1); @@ -16,7 +16,7 @@ C2.staticProp = 0; export var F2 = function F2() {}; F2.staticProp = 0; //// [global.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C3 = function C3() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.2.minified.js b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.2.minified.js index d93e6d080533..0d5f690f347e 100644 --- a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [inferringClassStaticMembersFromAssignments.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var C1 = function C1() { "use strict"; _class_call_check(this, C1); @@ -16,7 +16,7 @@ C2.staticProp = 0; export var F2 = function() {}; F2.staticProp = 0; //// [global.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; //// [b.ts] import * as a from "./a"; a.C1.staticProp, a.C2.staticProp, a.F1.staticProp, a.F2.staticProp, C3.staticProp, C4.staticProp, F3.staticProp, F4.staticProp; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.1.normal.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.1.normal.js index 018578457cbb..a8209d94dfa3 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.1.normal.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.1.normal.js @@ -1,6 +1,6 @@ //// [initializerReferencingConstructorLocals.ts] // Initializer expressions for instance member variables are evaluated in the scope of the class constructor body but are not permitted to reference parameters or local variables of the constructor. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.2.minified.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.2.minified.js index 627fb46766f9..139cd3a4bec8 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.2.minified.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals.2.minified.js @@ -1,2 +1,2 @@ //// [initializerReferencingConstructorLocals.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.1.normal.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.1.normal.js index f9c1c14173df..5559941076aa 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.1.normal.js @@ -1,6 +1,6 @@ //// [initializerReferencingConstructorParameters.ts] // Initializer expressions for instance member variables are evaluated in the scope of the class constructor body but are not permitted to reference parameters or local variables of the constructor. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x1) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.2.minified.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.2.minified.js index 1fcf0deeea35..7ed2a2ce4952 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters.2.minified.js @@ -1,2 +1,2 @@ //// [initializerReferencingConstructorParameters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.1.normal.js b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.1.normal.js index 71ab051f7c91..697c9599d539 100644 --- a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.1.normal.js @@ -3,8 +3,8 @@ export { }; //// [renderer2.d.ts] export { }; //// [component.tsx] -/** @jsx predom */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +/** @jsx predom */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _this = this; import { predom } from "./renderer2"; export var MySFC = function(props) { @@ -50,8 +50,8 @@ export var tree = /*#__PURE__*/ predom(MySFC, { })); export default /*#__PURE__*/ predom("h", null); //// [index.tsx] -/** @jsx dom */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +/** @jsx dom */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; import { dom } from "./renderer"; import prerendered, { MySFC, MyClass, tree } from "./component"; var elem = prerendered; diff --git a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.2.minified.js b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.2.minified.js index cb4c7cd86638..73c00022e9b4 100644 --- a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes.2.minified.js @@ -3,8 +3,8 @@ export { }; //// [renderer2.d.ts] export { }; //// [component.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var _this = this; import { predom } from "./renderer2"; export var MySFC = function(props) { @@ -47,7 +47,7 @@ export var tree = predom(MySFC, { })); export default predom("h", null); //// [index.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; import { dom } from "./renderer"; import prerendered, { MySFC, MyClass, tree } from "./component"; diff --git a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.1.normal.js b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.1.normal.js index c972caf79a90..7c969fe1dd54 100644 --- a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.1.normal.js +++ b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.1.normal.js @@ -1,7 +1,7 @@ //// [innerTypeParameterShadowingOuterOne2.ts] // inner type parameters shadow outer ones of the same name // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.2.minified.js b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.2.minified.js index 23c3e855a9c7..abccb961223d 100644 --- a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.2.minified.js +++ b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2.2.minified.js @@ -1,2 +1,2 @@ //// [innerTypeParameterShadowingOuterOne2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.1.normal.js index 06e959bb82a5..30dc5e364056 100644 --- a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.1.normal.js @@ -1,5 +1,5 @@ //// [instanceMemberAssignsToClassPrototype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.2.minified.js index cea7264a95f1..5e999f6caa83 100644 --- a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype.2.minified.js @@ -1,2 +1,2 @@ //// [instanceMemberAssignsToClassPrototype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/instanceMemberInitialization.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberInitialization.1.normal.js index 36baf8edd6ab..b4926d9f9a16 100644 --- a/crates/swc/tests/tsc-references/instanceMemberInitialization.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberInitialization.1.normal.js @@ -1,5 +1,5 @@ //// [instanceMemberInitialization.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceMemberInitialization.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberInitialization.2.minified.js index 3198be503ce6..9cab3f8fc254 100644 --- a/crates/swc/tests/tsc-references/instanceMemberInitialization.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberInitialization.2.minified.js @@ -1,5 +1,5 @@ //// [instanceMemberInitialization.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C), this.x = 1; diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.1.normal.js index 3ad396bd2a7b..9cd1298b8d96 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.1.normal.js @@ -1,7 +1,7 @@ //// [instanceMemberWithComputedPropertyName.ts] // https://github.com/microsoft/TypeScript/issues/30953 "use strict"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = 1; var C = function C() { _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.2.minified.js index 043ab2bb59f7..cfbc74ca5523 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName.2.minified.js @@ -1,3 +1,3 @@ //// [instanceMemberWithComputedPropertyName.ts] "use strict"; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.1.normal.js index 5ba985c79337..0307b46543ee 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.1.normal.js @@ -1,7 +1,7 @@ //// [instanceMemberWithComputedPropertyName2.ts] // https://github.com/microsoft/TypeScript/issues/33857 "use strict"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; const x = 1; let _x = x; class C { diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.2.minified.js index 932076e7533d..ffdc5d01fc06 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2.2.minified.js @@ -1,3 +1,3 @@ //// [instanceMemberWithComputedPropertyName2.ts] "use strict"; -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.1.normal.js b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.1.normal.js index 573385f0a9a5..20d9b53077cf 100644 --- a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.1.normal.js +++ b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.1.normal.js @@ -1,8 +1,8 @@ //// [instancePropertiesInheritedIntoClassType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.2.minified.js b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.2.minified.js index 849a5db45e62..f371c3865eb7 100644 --- a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.2.minified.js +++ b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType.2.minified.js @@ -1,9 +1,9 @@ //// [instancePropertiesInheritedIntoClassType.ts] var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(NonGeneric) { var d = new (function(C) { "use strict"; diff --git a/crates/swc/tests/tsc-references/instancePropertyInClassType.1.normal.js b/crates/swc/tests/tsc-references/instancePropertyInClassType.1.normal.js index 45bd94e37542..ac74e308563b 100644 --- a/crates/swc/tests/tsc-references/instancePropertyInClassType.1.normal.js +++ b/crates/swc/tests/tsc-references/instancePropertyInClassType.1.normal.js @@ -1,6 +1,6 @@ //// [instancePropertyInClassType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/instancePropertyInClassType.2.minified.js b/crates/swc/tests/tsc-references/instancePropertyInClassType.2.minified.js index 1fd010e2db4d..70655d864abb 100644 --- a/crates/swc/tests/tsc-references/instancePropertyInClassType.2.minified.js +++ b/crates/swc/tests/tsc-references/instancePropertyInClassType.2.minified.js @@ -1,7 +1,7 @@ //// [instancePropertyInClassType.ts] var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; !function(NonGeneric) { var c = new (function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithAny.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithAny.1.normal.js index d5ce8084804b..ec34262b5eb6 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithAny.1.normal.js @@ -1,4 +1,4 @@ //// [instanceofOperatorWithAny.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var a; var r = _instanceof(a, a); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithAny.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithAny.2.minified.js index 72f0344a42b2..53975f4d48a6 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithAny.2.minified.js @@ -1,4 +1,4 @@ //// [instanceofOperatorWithAny.ts] var a; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(a, a); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.1.normal.js index e84375c0c34e..ef1f9df63f90 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.1.normal.js @@ -1,6 +1,6 @@ //// [instanceofOperatorWithInvalidOperands.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.2.minified.js index 337248ea3507..9a724686a63a 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands.2.minified.js @@ -1,5 +1,5 @@ //// [instanceofOperatorWithInvalidOperands.ts] var x, a1, a2, a3, a4, b1, b2, b3, b4, o1, o2, o3; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(a1, x), _instanceof(a2, x), _instanceof(a3, x), _instanceof(a4, x), _instanceof(0, x), _instanceof(!0, x), _instanceof("", x), _instanceof(null, x), _instanceof(void 0, x), _instanceof(x, b1), _instanceof(x, b2), _instanceof(x, b3), _instanceof(x, b4), _instanceof(x, 0), _instanceof(x, !0), _instanceof(x, ""), _instanceof(x, o1), _instanceof(x, o2), _instanceof(x, o3), _instanceof("", {}); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.1.normal.js index 832c756171e9..bf0581e22508 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.1.normal.js @@ -1,5 +1,5 @@ //// [instanceofOperatorWithInvalidStaticToString.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function foo(staticToString) { return _instanceof(staticToString, StaticToString); } diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.2.minified.js index 53859373ea76..54d0f76760bb 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString.2.minified.js @@ -1,2 +1,2 @@ //// [instanceofOperatorWithInvalidStaticToString.ts] -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.1.normal.js index 5fff26e0541e..78d6a344ec11 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.1.normal.js @@ -1,6 +1,6 @@ //// [instanceofOperatorWithLHSIsObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.2.minified.js index 8c6da767516b..8233e634df5c 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject.2.minified.js @@ -1,5 +1,5 @@ //// [instanceofOperatorWithLHSIsObject.ts] var x1, x2, a, b, c, d; -import "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(a, x1), _instanceof(b, x2), _instanceof(c, x1), _instanceof(d, x1); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.1.normal.js index 97600dcc6ae5..5f15f31255af 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.1.normal.js @@ -1,5 +1,5 @@ //// [instanceofOperatorWithLHSIsTypeParameter.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function foo(t) { var x; var r = _instanceof(t, x); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.2.minified.js index 309299888012..6f41bd0e35ee 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter.2.minified.js @@ -1,2 +1,2 @@ //// [instanceofOperatorWithLHSIsTypeParameter.ts] -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.1.normal.js index 0b84d2b15c84..8d7d13e2b7f1 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.1.normal.js @@ -1,5 +1,5 @@ //// [instanceofOperatorWithRHSIsSubtypeOfFunction.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var x; var f1; var f2; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.2.minified.js index b84263d553af..d1ca75fe99a9 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction.2.minified.js @@ -1,4 +1,4 @@ //// [instanceofOperatorWithRHSIsSubtypeOfFunction.ts] var x, f1, f2, f3, f4; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(x, f1), _instanceof(x, f2), _instanceof(x, f3), _instanceof(x, f4), _instanceof(x, null), _instanceof(x, void 0); diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.1.normal.js index 0c3c9aae31bd..97089411db71 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.1.normal.js @@ -1,7 +1,7 @@ //// [instantiateGenericClassWithWrongNumberOfTypeArguments.ts] // it is always an error to provide a type argument list whose count does not match the type parameter list // both of these attempts to construct a type is an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.2.minified.js index e335bbf6f476..e3ec250aa222 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments.2.minified.js @@ -1,5 +1,5 @@ //// [instantiateGenericClassWithWrongNumberOfTypeArguments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.1.normal.js index bde2b02b1585..386af28050ba 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.1.normal.js @@ -1,6 +1,6 @@ //// [instantiateGenericClassWithZeroTypeArguments.ts] // no errors expected when instantiating a generic type with no type arguments provided -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.2.minified.js index 0a2fec86df6f..7e70975f9a52 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments.2.minified.js @@ -1,5 +1,5 @@ //// [instantiateGenericClassWithZeroTypeArguments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.1.normal.js index 220928838bf8..da7bfad969d5 100644 --- a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.1.normal.js @@ -1,7 +1,7 @@ //// [instantiateNonGenericTypeWithTypeArguments.ts] // it is an error to provide type arguments to a non-generic call // all of these are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.2.minified.js index 1f7f28f84eab..cd8d200434fb 100644 --- a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments.2.minified.js @@ -1,6 +1,6 @@ //// [instantiateNonGenericTypeWithTypeArguments.ts] var f, a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiatedModule.1.normal.js b/crates/swc/tests/tsc-references/instantiatedModule.1.normal.js index 82828a097669..f66f1aa39baf 100644 --- a/crates/swc/tests/tsc-references/instantiatedModule.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiatedModule.1.normal.js @@ -1,6 +1,6 @@ //// [instantiatedModule.ts] // adding the var makes this an instantiated module -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var Point = M.Point = 1; diff --git a/crates/swc/tests/tsc-references/instantiatedModule.2.minified.js b/crates/swc/tests/tsc-references/instantiatedModule.2.minified.js index aeb0fa90b7bb..114b39e1890a 100644 --- a/crates/swc/tests/tsc-references/instantiatedModule.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiatedModule.2.minified.js @@ -1,5 +1,5 @@ //// [instantiatedModule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).Point = 1; var M, M2, m2, a2, M3, m3, a3, m = M; M.Point, m.Point, function(M2) { diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClass.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClass.1.normal.js index d572811ed4a5..9584e206797b 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClass.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClass.1.normal.js @@ -1,6 +1,6 @@ //// [interfaceExtendingClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClass.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClass.2.minified.js index 6dc7b1f7b950..1a24466095de 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClass.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClass.2.minified.js @@ -1,5 +1,5 @@ //// [interfaceExtendingClass.ts] var i; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; i.x, i.y(), i.Z; diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.1.normal.js index 70e9c30b805d..932095dde1a7 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceExtendingClassWithPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.2.minified.js index b81a286d7dcb..76c2cb5837c4 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates.2.minified.js @@ -1,4 +1,4 @@ //// [interfaceExtendingClassWithPrivates.ts] var i; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; i.y, i.x; diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.1.normal.js index 3db824affc52..8c48f094513d 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceExtendingClassWithPrivates2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.2.minified.js index 5f631d639b67..0f04fb7f97d2 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2.2.minified.js @@ -1,4 +1,4 @@ //// [interfaceExtendingClassWithPrivates2.ts] var i; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; i.z, i.x, i.y; diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.1.normal.js index 7fb98d4aaa2b..35c3515a94be 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceExtendingClassWithProtecteds.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.2.minified.js index c6c37cce50af..e4c6bb856419 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds.2.minified.js @@ -1,4 +1,4 @@ //// [interfaceExtendingClassWithProtecteds.ts] var i; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; i.y, i.x; diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.1.normal.js index 898fbd0b814a..19a94ab69fba 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceExtendingClassWithProtecteds2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.2.minified.js index c26e7bea7110..8d7c60256b82 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2.2.minified.js @@ -1,4 +1,4 @@ //// [interfaceExtendingClassWithProtecteds2.ts] var i; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; i.z, i.x, i.y; diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.1.normal.js index 0685a0838ba5..f8c37a97329c 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.1.normal.js @@ -1,7 +1,7 @@ //// [interfaceExtendsObjectIntersection.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = /*#__PURE__*/ function(_Constructor) { "use strict"; _inherits(C1, _Constructor); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.2.minified.js index c546fe6e0cc4..e72d48e20b63 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection.2.minified.js @@ -1,8 +1,8 @@ //// [interfaceExtendsObjectIntersection.ts] var EX; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Constructor(), Constructor(), Constructor(), Constructor(), Constructor(), Constructor(), Constructor(), function(EX) { EX[EX.A = 0] = "A", EX[EX.B = 1] = "B", EX[EX.C = 2] = "C"; }(EX || (EX = {})), Constructor(), Constructor(), Constructor(), Constructor(); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.1.normal.js index 7faf84967e8b..6f71556e6b7f 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.1.normal.js @@ -1,7 +1,7 @@ //// [interfaceExtendsObjectIntersectionErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = /*#__PURE__*/ function(_Constructor) { "use strict"; _inherits(C1, _Constructor); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.2.minified.js index 7621d7f445d7..285f5b3c2c24 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors.2.minified.js @@ -1,8 +1,8 @@ //// [interfaceExtendsObjectIntersectionErrors.ts] var EX; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Constructor(), Constructor(), Constructor(), Constructor(), Constructor(), function(EX) { EX[EX.A = 0] = "A", EX[EX.B = 1] = "B", EX[EX.C = 2] = "C"; }(EX || (EX = {})); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.1.normal.js index e5df629f7914..bd47145143c6 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceWithPropertyOfEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.2.minified.js index c5d27eb70d23..dbc0538790ac 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType.2.minified.js @@ -1,6 +1,6 @@ //// [interfaceWithPropertyOfEveryType.ts] var M, E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).y = 1, function(E) { E[E.A = 0] = "A"; }(E || (E = {})), new function C() { diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.1.normal.js index c9f1d2be208a..49d5fb61ce0a 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceWithPropertyThatIsPrivateInBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.2.minified.js index f6183549f284..15e4d6e934c3 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType.2.minified.js @@ -1,2 +1,2 @@ //// [interfaceWithPropertyThatIsPrivateInBaseType.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.1.normal.js index 1c7afdad2e2b..fdb72f03a55f 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.1.normal.js @@ -1,5 +1,5 @@ //// [interfaceWithPropertyThatIsPrivateInBaseType2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.2.minified.js index be23dcb71012..cae1ffbfe557 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2.2.minified.js @@ -1,2 +1,2 @@ //// [interfaceWithPropertyThatIsPrivateInBaseType2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.1.normal.js b/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.1.normal.js index 48caac3654d6..e246924d8c03 100644 --- a/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.1.normal.js +++ b/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.1.normal.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); let x01; let x02; let x03; @@ -42,7 +42,7 @@ var myChoices; var myChoicesAndEmpty; var unknownChoices; var unknownChoicesAndEmpty; -mock(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./ex")))); +mock(Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./ex")))); //// [ex.d.ts] "use strict"; Object.defineProperty(exports, "__esModule", { diff --git a/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.2.minified.js b/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.2.minified.js index 238bbc665c6b..f6f7e194e445 100644 --- a/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.2.minified.js +++ b/crates/swc/tests/tsc-references/intersectionsAndEmptyObjects.2.minified.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, intersectDictionaries = (d1, d2)=>Object.assign({}, d1, d2), testDictionary = (_value)=>{}, d1 = {}; +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), intersectDictionaries = (d1, d2)=>Object.assign({}, d1, d2), testDictionary = (_value)=>{}, d1 = {}; testDictionary(d1); const d2 = intersectDictionaries(d1, d1); testDictionary(d2); @@ -16,7 +16,7 @@ testDictionary(d4); const d5 = intersectDictionaries(d3, d1); testDictionary(d5); const d6 = intersectDictionaries(d3, d3); -testDictionary(d6), mock(Promise.resolve().then(()=>_interop_require_wildcard(require("./ex")))); +testDictionary(d6), mock(Promise.resolve().then(()=>_interop_require_wildcard._(require("./ex")))); //// [ex.d.ts] "use strict"; Object.defineProperty(exports, "__esModule", { diff --git a/crates/swc/tests/tsc-references/intraExpressionInferences.1.normal.js b/crates/swc/tests/tsc-references/intraExpressionInferences.1.normal.js index 8d785a39391e..0b18b589acbe 100644 --- a/crates/swc/tests/tsc-references/intraExpressionInferences.1.normal.js +++ b/crates/swc/tests/tsc-references/intraExpressionInferences.1.normal.js @@ -1,6 +1,6 @@ //// [intraExpressionInferences.ts] // Repros from #47599 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; callIt({ produce: function() { return 0; diff --git a/crates/swc/tests/tsc-references/intraExpressionInferences.2.minified.js b/crates/swc/tests/tsc-references/intraExpressionInferences.2.minified.js index 56d7dda50573..6b975ce816ad 100644 --- a/crates/swc/tests/tsc-references/intraExpressionInferences.2.minified.js +++ b/crates/swc/tests/tsc-references/intraExpressionInferences.2.minified.js @@ -1,5 +1,5 @@ //// [intraExpressionInferences.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; callIt({ produce: function() { return 0; diff --git a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.1.normal.js b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.1.normal.js index 9de4a6ca2e8b..db7cdbb3cf3f 100644 --- a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.1.normal.js @@ -1,5 +1,5 @@ //// [invalidAssignmentsToVoid.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; x = 1; x = true; diff --git a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.2.minified.js b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.2.minified.js index 6a3ed9ef2e39..7335125b9563 100644 --- a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid.2.minified.js @@ -1,4 +1,4 @@ //// [invalidAssignmentsToVoid.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).x = 1; diff --git a/crates/swc/tests/tsc-references/invalidBooleanAssignments.1.normal.js b/crates/swc/tests/tsc-references/invalidBooleanAssignments.1.normal.js index 08fdd99d6166..c45dcbe6724c 100644 --- a/crates/swc/tests/tsc-references/invalidBooleanAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidBooleanAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [invalidBooleanAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = true; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidBooleanAssignments.2.minified.js b/crates/swc/tests/tsc-references/invalidBooleanAssignments.2.minified.js index 2ee7753007ad..b8f5dfab38ff 100644 --- a/crates/swc/tests/tsc-references/invalidBooleanAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidBooleanAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [invalidBooleanAssignments.ts] var E, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), (M || (M = {})).a = 1, M = !0; diff --git a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.1.normal.js b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.1.normal.js index 02c3e8e39bb0..18626053ba9a 100644 --- a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.1.normal.js @@ -1,6 +1,6 @@ //// [invalidImportAliasIdentifiers.ts] // none of these should work, since non are actually modules -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var V = 12; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.2.minified.js b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.2.minified.js index 54c7acbed6cf..05547d9e4661 100644 --- a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers.2.minified.js @@ -1,6 +1,6 @@ //// [invalidImportAliasIdentifiers.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.Red = 0] = "Red", E[E.Blue = 1] = "Blue"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.1.normal.js b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.1.normal.js index 2e97315e5f5f..13bce2947d6c 100644 --- a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.1.normal.js @@ -1,7 +1,7 @@ //// [invalidMultipleVariableDeclarations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.2.minified.js b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.2.minified.js index dfc9ca7b859a..4afdbf774d15 100644 --- a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations.2.minified.js @@ -1,7 +1,7 @@ //// [invalidMultipleVariableDeclarations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M, C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidNestedModules.1.normal.js b/crates/swc/tests/tsc-references/invalidNestedModules.1.normal.js index 5795b9a962e3..4c0868328f0a 100644 --- a/crates/swc/tests/tsc-references/invalidNestedModules.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidNestedModules.1.normal.js @@ -1,5 +1,5 @@ //// [invalidNestedModules.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { var B; diff --git a/crates/swc/tests/tsc-references/invalidNestedModules.2.minified.js b/crates/swc/tests/tsc-references/invalidNestedModules.2.minified.js index 5ead8a551653..8992a8bcb81c 100644 --- a/crates/swc/tests/tsc-references/invalidNestedModules.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidNestedModules.2.minified.js @@ -1,6 +1,6 @@ //// [invalidNestedModules.ts] var A, M2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(A) { var B; ((B = A.B || (A.B = {})).C || (B.C = {})).Point = function Point() { diff --git a/crates/swc/tests/tsc-references/invalidNumberAssignments.1.normal.js b/crates/swc/tests/tsc-references/invalidNumberAssignments.1.normal.js index ff4a00db142e..4b27f79f9336 100644 --- a/crates/swc/tests/tsc-references/invalidNumberAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidNumberAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [invalidNumberAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = 1; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidNumberAssignments.2.minified.js b/crates/swc/tests/tsc-references/invalidNumberAssignments.2.minified.js index 0a520a41d655..369b65bb6025 100644 --- a/crates/swc/tests/tsc-references/invalidNumberAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidNumberAssignments.2.minified.js @@ -1,4 +1,4 @@ //// [invalidNumberAssignments.ts] var M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; (M || (M = {})).x = 1, M = 1; diff --git a/crates/swc/tests/tsc-references/invalidReturnStatements.1.normal.js b/crates/swc/tests/tsc-references/invalidReturnStatements.1.normal.js index 6148f343844c..11b9fd74d665 100644 --- a/crates/swc/tests/tsc-references/invalidReturnStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidReturnStatements.1.normal.js @@ -1,8 +1,8 @@ //// [invalidReturnStatements.ts] // all the following should be error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function fn1() {} function fn2() {} function fn3() {} diff --git a/crates/swc/tests/tsc-references/invalidReturnStatements.2.minified.js b/crates/swc/tests/tsc-references/invalidReturnStatements.2.minified.js index 5805d8c8bdd3..0a4cb2d90b72 100644 --- a/crates/swc/tests/tsc-references/invalidReturnStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidReturnStatements.2.minified.js @@ -1,4 +1,4 @@ //// [invalidReturnStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/invalidStringAssignments.1.normal.js b/crates/swc/tests/tsc-references/invalidStringAssignments.1.normal.js index e0ecb39e2ab3..b43141ee22d9 100644 --- a/crates/swc/tests/tsc-references/invalidStringAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidStringAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [invalidStringAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = ""; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidStringAssignments.2.minified.js b/crates/swc/tests/tsc-references/invalidStringAssignments.2.minified.js index 19986a813401..e1d53aebe866 100644 --- a/crates/swc/tests/tsc-references/invalidStringAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidStringAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [invalidStringAssignments.ts] var M, E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; (M || (M = {})).x = 1, M = "", function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/invalidUndefinedAssignments.1.normal.js b/crates/swc/tests/tsc-references/invalidUndefinedAssignments.1.normal.js index f26b5449cb92..322105ef0dc9 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [invalidUndefinedAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/invalidUndefinedAssignments.2.minified.js b/crates/swc/tests/tsc-references/invalidUndefinedAssignments.2.minified.js index ad98a357f6e8..0f11b0c21b69 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [invalidUndefinedAssignments.ts] var x, E, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), (E = x).A = x, I = x, (M || (M = {})).x = 1, M = x; diff --git a/crates/swc/tests/tsc-references/invalidUndefinedValues.1.normal.js b/crates/swc/tests/tsc-references/invalidUndefinedValues.1.normal.js index 48f231312656..aa6dea3b5572 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedValues.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedValues.1.normal.js @@ -1,5 +1,5 @@ //// [invalidUndefinedValues.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; x = 1; x = ""; diff --git a/crates/swc/tests/tsc-references/invalidUndefinedValues.2.minified.js b/crates/swc/tests/tsc-references/invalidUndefinedValues.2.minified.js index ac04ab719a95..613135844c2f 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedValues.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedValues.2.minified.js @@ -1,6 +1,6 @@ //// [invalidUndefinedValues.ts] var M, E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).x = 1, function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A; diff --git a/crates/swc/tests/tsc-references/invalidVoidAssignments.1.normal.js b/crates/swc/tests/tsc-references/invalidVoidAssignments.1.normal.js index c8c07661b74b..79af5d8fc27b 100644 --- a/crates/swc/tests/tsc-references/invalidVoidAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidVoidAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [invalidVoidAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidVoidAssignments.2.minified.js b/crates/swc/tests/tsc-references/invalidVoidAssignments.2.minified.js index ced5e693d5c6..045686c4e82c 100644 --- a/crates/swc/tests/tsc-references/invalidVoidAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidVoidAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [invalidVoidAssignments.ts] var x, M, E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; (M || (M = {})).x = 1, M = x, function(E) { E[E.A = 0] = "A"; }(E || (E = {})), x = E, x = E.A, x = { diff --git a/crates/swc/tests/tsc-references/invalidVoidValues.1.normal.js b/crates/swc/tests/tsc-references/invalidVoidValues.1.normal.js index 5e6915b89f5c..53d7e8fa01e4 100644 --- a/crates/swc/tests/tsc-references/invalidVoidValues.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidVoidValues.1.normal.js @@ -1,5 +1,5 @@ //// [invalidVoidValues.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; x = 1; x = ""; diff --git a/crates/swc/tests/tsc-references/invalidVoidValues.2.minified.js b/crates/swc/tests/tsc-references/invalidVoidValues.2.minified.js index 52243eb71122..2f4d5b8e7808 100644 --- a/crates/swc/tests/tsc-references/invalidVoidValues.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidVoidValues.2.minified.js @@ -1,6 +1,6 @@ //// [invalidVoidValues.ts] var E, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A, (M || (M = {})).x = 1; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.1.normal.js index 3522c75c5007..50a911dfcd70 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.1.normal.js @@ -1,14 +1,14 @@ //// [bar.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar() { "use strict"; _class_call_check(this, Bar); }; module.exports = Bar; //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Bar = require("./bar"); var Strings = { a: "A", diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.2.minified.js index fb4e8cb2ccff..de271a30c580 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility.2.minified.js @@ -1,13 +1,13 @@ //// [bar.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Bar() { "use strict"; _class_call_check(this, Bar); }; //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function(Bar) { "use strict"; _inherits(Foo, Bar); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.1.normal.js index 30342869fbc2..1aa0d378e736 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.1.normal.js @@ -4,7 +4,7 @@ export { }; /** * @template T * @implements {IEncoder} - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Encoder = /*#__PURE__*/ function() { "use strict"; function Encoder() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.2.minified.js index 27291d050cfa..4d27c5499f46 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization.2.minified.js @@ -1,7 +1,7 @@ //// [interface.ts] export { }; //// [lib.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Encoder = function() { "use strict"; function Encoder() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.1.normal.js index f16a5a52d663..712d019132aa 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.1.normal.js @@ -1,5 +1,5 @@ //// [bar.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Z = /*#__PURE__*/ function() { "use strict"; function Z() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.2.minified.js index 7c955f8b42d9..fd40f8ec9772 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional.2.minified.js @@ -1,5 +1,5 @@ //// [bar.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Z = function() { "use strict"; function Z() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.1.normal.js index ca07841df940..d88a5e440789 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.1.normal.js @@ -1,6 +1,6 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Handler = /*#__PURE__*/ function() { "use strict"; function Handler() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.2.minified.js index 0ebf50fd403f..4890e4046830 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic.2.minified.js @@ -1,6 +1,6 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var Handler = function() { "use strict"; function Handler() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.1.normal.js index f19ce3879c9f..fffedea45dc9 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.1.normal.js @@ -1,5 +1,5 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Clazz = /*#__PURE__*/ function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.2.minified.js index fc8bbc59ef68..514f19dee9ed 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation.2.minified.js @@ -1,5 +1,5 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Clazz = function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClasses.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClasses.1.normal.js index a2f7fad76905..860a3c1b4458 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClasses.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClasses.1.normal.js @@ -1,9 +1,9 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClasses.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClasses.2.minified.js index 7217273d37ae..0a6d007dd5d5 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClasses.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClasses.2.minified.js @@ -1,9 +1,9 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.1.normal.js index 2283992fcd0e..c4a895cb6142 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.1.normal.js @@ -1,9 +1,9 @@ //// [index.js] // Pretty much all of this should be an error, (since index signatures and generics are forbidden in js), // but we should be able to synthesize declarations from the symbols regardless -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var M = function M() { "use strict"; _class_call_check(this, M); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.2.minified.js index 825288ae7eb0..8eab8d2bc155 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr.2.minified.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var M = function M() { "use strict"; _class_call_check(this, M); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.1.normal.js index ad51454378c5..36b3335b9f38 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.1.normal.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var Thing = function Thing() { - _class_call_check(this, Thing); + _class_call_check._(this, Thing); }; module.exports = { Thing: Thing diff --git a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.2.minified.js index 20e2978fc2d7..420e675a1632 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath.2.minified.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); module.exports = { Thing: function Thing() { - _class_call_check(this, Thing); + _class_call_check._(this, Thing); } }; //// [reexport.js] diff --git a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.1.normal.js index 3a93e08aef6a..33aa27c85519 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var TopLevelSym = Symbol(); var InnerSym = Symbol(); var _obj; @@ -13,7 +13,7 @@ module.exports = (_obj = {}, _define_property(_obj, TopLevelSym, function() { return arg.x; })), _obj); //// [index2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TopLevelSym = Symbol(); var InnerSym = Symbol(); export var MyClass = function MyClass() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.2.minified.js index e5a34b0537cf..eef7352d6c1a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var _obj, TopLevelSym = Symbol(), InnerSym = Symbol(); module.exports = (_define_property(_obj = {}, TopLevelSym, function() { var x = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 12; @@ -11,7 +11,7 @@ module.exports = (_define_property(_obj = {}, TopLevelSym, function() { return arg.x; })), _obj); //// [index2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TopLevelSym = Symbol(), InnerSym = Symbol(); export var MyClass = function MyClass() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefault.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsDefault.1.normal.js index f8b0b6c7989f..c8c4e75ce37f 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefault.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefault.1.normal.js @@ -7,7 +7,7 @@ export default function foo() { export var x = foo; export { foo as bar }; //// [index3.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); @@ -17,9 +17,9 @@ export { Foo as default }; export var X = Foo; export { Foo as Bar }; //// [index4.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import Fab from "./index3"; var Bar = /*#__PURE__*/ function(Fab) { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefault.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsDefault.2.minified.js index d9099d3efec3..83f1b8a61b14 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefault.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefault.2.minified.js @@ -7,7 +7,7 @@ export default function foo() { export var x = foo; export { foo as bar }; //// [index3.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo), this.a = null; @@ -15,9 +15,9 @@ var Foo = function Foo() { export var X = Foo; export { Foo as default, Foo as Bar }; //// [index4.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import Fab from "./index3"; var Bar = function(Fab) { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.1.normal.js index 46310ab21ac0..b301f5345016 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.1.normal.js @@ -1,6 +1,6 @@ //// [index1.js] // merge type alias and alias (should error, see #32367) -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Cls = function Cls() { "use strict"; _class_call_check(this, Cls); @@ -14,7 +14,7 @@ export default Cls; /** */ //// [index2.js] // merge type alias and class (error message improvement needed, see #32368) -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.2.minified.js index 6c0934def24a..93db6e4d1080 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr.2.minified.js @@ -1,5 +1,5 @@ //// [index1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Cls = function Cls() { "use strict"; _class_call_check(this, Cls), this.x = 12; @@ -7,7 +7,7 @@ var Cls = function Cls() { Cls.y = "ok"; export default Cls; //// [index2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.1.normal.js index e08028843ceb..bc1a286d7eb0 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Thing(p) { "use strict"; _class_call_check(this, Thing); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.2.minified.js index 8d8aa90e75ad..37437cfd76f4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Thing(p) { "use strict"; _class_call_check(this, Thing), this.t = 12 + p; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.1.normal.js index b85131f490bc..e3cda482bc85 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function _class(p) { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.2.minified.js index 98292ff85378..54ec05aee269 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function _class(p) { "use strict"; _class_call_check(this, _class), this.t = 12 + p; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.1.normal.js index 0c04e2fe7ee0..d647955f8a6b 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function _class(p) { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.2.minified.js index 492cf3335641..65854cb7e9a0 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function _class(p) { "use strict"; _class_call_check(this, _class), this.t = 12 + p; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.1.normal.js index cf85ece8b576..6921bc842e67 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.2.minified.js index fcf4568b3185..51864e236def 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A), this.member = new Q(); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.1.normal.js index 9c068e47d9fa..0055dc84cb6e 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.2.minified.js index 796f2818c1ac..7b0cc1f6d125 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = new function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.1.normal.js index ac0b5e47dae6..10b0b774d012 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.2.minified.js index 408e0efd4efe..c2b7139e2185 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo), this.member = 10; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.1.normal.js index 2f3a4888822a..156298d03668 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.2.minified.js index befedd9f6b3b..e215b8d53db5 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo), this.member = 10; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.1.normal.js index 24127914041f..9dc8e3021af0 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.1.normal.js @@ -1,12 +1,12 @@ //// [obj.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Obj() { "use strict"; _class_call_check(this, Obj); this.x = 12; }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Obj = require("./obj"); var Container = function Container() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.2.minified.js index d16785bc9966..fcf2f548f4a7 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility.2.minified.js @@ -1,11 +1,11 @@ //// [obj.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Obj() { "use strict"; _class_call_check(this, Obj), this.x = 12; }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Obj = require("./obj"); module.exports = function Container() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportForms.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportForms.1.normal.js index a7d4c573cc39..9d2db9559874 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportForms.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportForms.1.normal.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportForms.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportForms.2.minified.js index a7d4c573cc39..9d2db9559874 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportForms.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportForms.2.minified.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.1.normal.js index fe097400230a..628e88e3bfe4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.1.normal.js @@ -1,5 +1,5 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Thing = function Thing() { "use strict"; _class_call_check(this, Thing); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.2.minified.js index fe097400230a..628e88e3bfe4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal.2.minified.js @@ -1,5 +1,5 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Thing = function Thing() { "use strict"; _class_call_check(this, Thing); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.1.normal.js index 786bdb3e0e4d..ea02cc004911 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Strings = { a: "A", b: "B" diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.2.minified.js index 97116d88fd44..b8f86f03e479 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments.2.minified.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.1.normal.js index f58084ca66f4..2b1e8b805a35 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.1.normal.js @@ -1,8 +1,8 @@ //// [utils/errors.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var FancyError = /*#__PURE__*/ function(Error1) { "use strict"; _inherits(FancyError, Error1); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.2.minified.js index 7a4e63bb46be..70b45403e223 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases.2.minified.js @@ -1,8 +1,8 @@ //// [utils/errors.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var FancyError = function(Error1) { "use strict"; _inherits(FancyError, Error1); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.1.normal.js index 8811ad5db609..69c50516d810 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.1.normal.js @@ -38,7 +38,7 @@ module.exports = Hook; * * @class * @param {Input} input - */ import _instanceof from "@swc/helpers/src/_instanceof.mjs"; + */ import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function Context(input) { if (!_instanceof(this, Context)) { return new Context(input); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.2.minified.js index 9f1a39afcdd7..d73c1bebcc81 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment.2.minified.js @@ -7,7 +7,7 @@ module.exports = function(handle) { this.handle = handle; }; //// [context.js] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function Context(input) { if (!_instanceof(this, Context)) return new Context(input); this.state = this.construct(input); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.1.normal.js index da75c0c87abe..8914f397b005 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.1.normal.js @@ -3,7 +3,7 @@ * Foos a bar together using an `a` and a `b` * @param {number} a * @param {string} b - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export function foo(a, b) {} /** * Legacy - DO NOT USE diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.2.minified.js index 1f112a6d3286..a0bfdf282883 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc.2.minified.js @@ -1,5 +1,5 @@ //// [source.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export function foo(a, b) {} export var Aleph = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.1.normal.js index af48840407fc..bc703289228d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.1.normal.js @@ -2,7 +2,7 @@ /** * @param {number} x * @param {number} y - */ import _instanceof from "@swc/helpers/src/_instanceof.mjs"; + */ import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; export function Point(x, y) { if (!_instanceof(this, Point)) { return new Point(x, y); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.2.minified.js index 1e94013ed630..7863d08fe2aa 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses.2.minified.js @@ -1,5 +1,5 @@ //// [source.js] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; export function Point(x, y) { if (!_instanceof(this, Point)) return new Point(x, y); this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.1.normal.js index 7ff5b51f701f..8ca319848c22 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.1.normal.js @@ -1,7 +1,7 @@ //// [source.js] /** * @param {number} len - */ import _instanceof from "@swc/helpers/src/_instanceof.mjs"; + */ import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; export function Vec(len) { /** * @type {number[]} diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.2.minified.js index 548e773b539b..78ae1604c5bc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2.2.minified.js @@ -1,5 +1,5 @@ //// [source.js] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; export function Vec(len) { this.storage = Array(len); } diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctions.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctions.1.normal.js index d633d35396e4..ee32ab5cdf4f 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctions.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export function a() {} export function b() {} b.cat = "cat"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctions.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctions.2.minified.js index ca9997478b36..711309b6fa42 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctions.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export function a() {} export function b() {} b.cat = "cat"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.1.normal.js index dff78ab67a7f..87bc5743c709 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.1.normal.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.a = function a() {}; module.exports.b = function b() {}; module.exports.b.cat = "cat"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.2.minified.js index 1cb621773235..933879f61cba 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.a = function() {}, module.exports.b = function() {}, module.exports.b.cat = "cat", module.exports.c = function() {}, module.exports.c.Cls = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.1.normal.js index 6d8862e6790b..c98209153411 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.1.normal.js @@ -1,7 +1,7 @@ //// [index.js] /** * @module A - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.2.minified.js index 3b1c619cbf56..a8c68508d982 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit.2.minified.js @@ -1,5 +1,5 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var el = null; export default function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.1.normal.js index 82d120b84edb..eed1f9cb254e 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.1.normal.js @@ -1,5 +1,5 @@ //// [file.js] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class X { /** * Cancels the request, sending a cancellation to the other party diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.2.minified.js index 22a03a5d5778..a37aa7f70b70 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams.2.minified.js @@ -1,2 +1,2 @@ //// [file.js] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.1.normal.js index 2ceb57dc19cf..2a2951cd06a4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.1.normal.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.2.minified.js index 2ceb57dc19cf..2a2951cd06a4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases.2.minified.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.1.normal.js index b2d16ec3dd10..993d749214cd 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.1.normal.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.2.minified.js index 7f24462932c6..28b34a4148bb 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop.2.minified.js @@ -1,5 +1,5 @@ //// [cls.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.1.normal.js index 802ff795d7e1..8fac99f6a42b 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.1.normal.js @@ -1,7 +1,7 @@ //// [lib.js] /** * @param {string} a - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function bar(a) { return a + a; } diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.2.minified.js index c71ded15b181..f190252214b8 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportedCjsAlias.2.minified.js @@ -1,5 +1,5 @@ //// [lib.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var SomeClass = function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.1.normal.js index 0986eabf3274..2b855ca2e67a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.1.normal.js @@ -1,5 +1,5 @@ //// [rectangle.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Rectangle = function Rectangle() { "use strict"; _class_call_check(this, Rectangle); @@ -9,7 +9,7 @@ module.exports = { Rectangle: Rectangle }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Rectangle = require("./rectangle").Rectangle; var Render = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.2.minified.js index 037788cb97e8..2cdc4c790527 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile.2.minified.js @@ -1,5 +1,5 @@ //// [rectangle.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { Rectangle: function Rectangle() { "use strict"; @@ -7,7 +7,7 @@ module.exports = { } }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Rectangle = require("./rectangle").Rectangle, Render = function() { "use strict"; function Render() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.1.normal.js index 462adbc89c0c..68c5da3950d6 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.1.normal.js @@ -1,5 +1,5 @@ //// [bug38550.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Clazz = /*#__PURE__*/ function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.2.minified.js index 75331694882e..540104edf165 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.2.minified.js @@ -1,5 +1,5 @@ //// [bug38550.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Clazz = function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.1.normal.js index affe3a7821dc..1f36f7d056d9 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.1.normal.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var Super = function Super(firstArg, secondArg) { "use strict"; _class_call_check(this, Super); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.2.minified.js index 9ed7aa187380..d097dcf42ba9 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.2.minified.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var Super = function Super(firstArg, secondArg) { "use strict"; _class_call_check(this, Super); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.1.normal.js index 4f81ed1b46da..43c09117400d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.1.normal.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.2.minified.js index da6c30f9470b..57714997b379 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes.2.minified.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.1.normal.js index 54d5a9565f77..a2dd20450e49 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.1.normal.js @@ -25,7 +25,7 @@ export { }; // flag file as module */ /** * @param {number} x * @returns {SomeType} - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function doTheThing(x) { return { x: "" + x diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.2.minified.js index 84505ba211b8..f254ad299897 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases.2.minified.js @@ -1,7 +1,7 @@ //// [index.js] export { }; //// [mixed.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { doTheThing: function(x) { return { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.1.normal.js index 6e2699859c61..54ae7e2cf3fe 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.1.normal.js @@ -1,7 +1,7 @@ //// [conn.js] /** * @typedef {string | number} Whatever - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Conn = /*#__PURE__*/ function() { "use strict"; function Conn() { @@ -16,7 +16,7 @@ module.exports = Conn; //// [usage.js] /** * @typedef {import("./conn")} Conn - */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; + */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Wrap = function Wrap(c) { "use strict"; _class_call_check(this, Wrap); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.2.minified.js index c7d351940e8d..333eb433c160 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes.2.minified.js @@ -1,5 +1,5 @@ //// [conn.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Conn = function() { "use strict"; function Conn() { @@ -9,7 +9,7 @@ var Conn = function() { }(); module.exports = Conn; //// [usage.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { Wrap: function Wrap(c) { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.1.normal.js index 9ead284d60d9..60ae0d233db7 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.1.normal.js @@ -22,7 +22,7 @@ module.exports = { taskNameToGroup: taskNameToGroup }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _require = require("./module.js"), taskGroups = _require.taskGroups, taskNameToGroup = _require.taskNameToGroup; /** @typedef {import('./module.js').TaskGroup} TaskGroup */ /** * @typedef TaskNode diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.2.minified.js index 118ce6d5bdb7..3cd69d5a5f5b 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment.2.minified.js @@ -13,7 +13,7 @@ module.exports = { taskNameToGroup: {} }; //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _require = require("./module.js"); _require.taskGroups, _require.taskNameToGroup, module.exports = function MainThreadTasks(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.1.normal.js b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.1.normal.js index 5c2b585b893e..3eac8422bf67 100644 --- a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.1.normal.js +++ b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.1.normal.js @@ -1,6 +1,6 @@ //// [jsObjectsMarkedAsOpenEnded.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var variable = {}; variable.a = 0; var C = function C() { diff --git a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.2.minified.js b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.2.minified.js index a9afa2c598fa..77b38bdcf38f 100644 --- a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.2.minified.js +++ b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded.2.minified.js @@ -1,5 +1,5 @@ //// [jsObjectsMarkedAsOpenEnded.ts] //// [a.js] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [b.ts] variable.a = 1, new C().member.a = 1, new C().initializedMember.a = 1, obj.property.a = 1, arr[0].a = 1, getObj().a = 1; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.1.normal.js index 40aeded74ade..defbd9dd1cf6 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.1.normal.js @@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var props = { answer: 42 }; -var a = /*#__PURE__*/ React.createElement("div", _object_spread({ +var a = /*#__PURE__*/ React.createElement("div", _object_spread._({ key: "foo" }, props), "text"); -var b = /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, props), { +var b = /*#__PURE__*/ React.createElement("div", _object_spread_props._(_object_spread._({}, props), { key: "bar" }), "text"); diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.2.minified.js index 7f5ae268f9a4..750374021a2e 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp.2.minified.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default, props = { +var _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"), props = { answer: 42 }; -_object_spread({ +_object_spread._({ key: "foo" -}, props), _object_spread_props(_object_spread({}, props), { +}, props), _object_spread_props._(_object_spread._({}, props), { key: "bar" }); diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.1.normal.js index a6dc518f57aa..ed92477f6a90 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.1.normal.js @@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var props = { answer: 42 }; -var a = /*#__PURE__*/ React.createElement("div", _object_spread({ +var a = /*#__PURE__*/ React.createElement("div", _object_spread._({ key: "foo" }, props), "text"); -var b = /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({}, props), { +var b = /*#__PURE__*/ React.createElement("div", _object_spread_props._(_object_spread._({}, props), { key: "bar" }), "text"); diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.2.minified.js index 232b9c7bba45..f17afba25db2 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport.2.minified.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default, props = { +var _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"), props = { answer: 42 }; -_object_spread({ +_object_spread._({ key: "foo" -}, props), _object_spread_props(_object_spread({}, props), { +}, props), _object_spread_props._(_object_spread._({}, props), { key: "bar" }); diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.1.normal.js index 39489a58bd6a..999afa429200 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.1.normal.js @@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var _jsxruntime = require("preact/jsx-runtime"); var _preact = require("preact"); var props = { answer: 42 }; -var a = /*#__PURE__*/ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, props), { +var a = /*#__PURE__*/ (0, _jsxruntime.jsx)("div", _object_spread_props._(_object_spread._({}, props), { children: "text" }), "foo"); -var b = /*#__PURE__*/ (0, _preact.createElement)("div", _object_spread_props(_object_spread({}, props), { +var b = /*#__PURE__*/ (0, _preact.createElement)("div", _object_spread_props._(_object_spread._({}, props), { key: "bar" }), "text"); //// [react.tsx] @@ -23,17 +23,17 @@ var b = /*#__PURE__*/ (0, _preact.createElement)("div", _object_spread_props(_ob Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var _jsxruntime = require("react/jsx-runtime"); var _react = require("react"); require("./preact"); var props2 = { answer: 42 }; -var a2 = /*#__PURE__*/ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, props2), { +var a2 = /*#__PURE__*/ (0, _jsxruntime.jsx)("div", _object_spread_props._(_object_spread._({}, props2), { children: "text" }), "foo"); -var b2 = /*#__PURE__*/ (0, _react.createElement)("div", _object_spread_props(_object_spread({}, props2), { +var b2 = /*#__PURE__*/ (0, _react.createElement)("div", _object_spread_props._(_object_spread._({}, props2), { key: "bar" }), "text"); diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.2.minified.js index 0dfbee9e6c76..0f88fda3dde7 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma.2.minified.js @@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"); require("preact/jsx-runtime"), require("preact"); var props = { answer: 42 }; -_object_spread_props(_object_spread({}, props), { +_object_spread_props._(_object_spread._({}, props), { children: "text" -}), _object_spread_props(_object_spread({}, props), { +}), _object_spread_props._(_object_spread._({}, props), { key: "bar" }); //// [react.tsx] @@ -18,13 +18,13 @@ _object_spread_props(_object_spread({}, props), { Object.defineProperty(exports, "__esModule", { value: !0 }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"); require("react/jsx-runtime"), require("react"), require("./preact"); var props2 = { answer: 42 }; -_object_spread_props(_object_spread({}, props2), { +_object_spread_props._(_object_spread._({}, props2), { children: "text" -}), _object_spread_props(_object_spread({}, props2), { +}), _object_spread_props._(_object_spread._({}, props2), { key: "bar" }); diff --git a/crates/swc/tests/tsc-references/jsxReactTestSuite.1.normal.js b/crates/swc/tests/tsc-references/jsxReactTestSuite.1.normal.js index e3bc155d10e2..914a84eee937 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite.1.normal.js @@ -1,6 +1,6 @@ //// [jsxReactTestSuite.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; /*#__PURE__*/ React.createElement("div", null, "text"); /*#__PURE__*/ React.createElement("div", null, this.props.children); /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement("br", null)), /*#__PURE__*/ React.createElement(Component, null, foo, /*#__PURE__*/ React.createElement("br", null), bar), /*#__PURE__*/ React.createElement("br", null)); diff --git a/crates/swc/tests/tsc-references/jsxReactTestSuite.2.minified.js b/crates/swc/tests/tsc-references/jsxReactTestSuite.2.minified.js index 8203634106c5..881f3957d41a 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite.2.minified.js @@ -1,6 +1,6 @@ //// [jsxReactTestSuite.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; this.props.children, Component, foo, bar, Composite, this.props.children, Composite, Composite2; var x = React.createElement("div", { attr1: "foobar", diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess.1.normal.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess.1.normal.js index d79f796593b9..203050717d4d 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess.1.normal.js @@ -1,7 +1,7 @@ //// [keyofAndIndexedAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Shape = function Shape() { "use strict"; _class_call_check(this, Shape); diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess.2.minified.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess.2.minified.js index 5c6cf7748537..5e473bd89f78 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess.2.minified.js @@ -1,8 +1,8 @@ //// [keyofAndIndexedAccess.ts] var E, Flag; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(E) { E[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C"; }(E || (E = {})), one(function() {}), on({ diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.1.normal.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.1.normal.js index 8668316eb66a..84d5ed2a621e 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.1.normal.js @@ -1,5 +1,5 @@ //// [keyofAndIndexedAccessErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Shape = function Shape() { "use strict"; _class_call_check(this, Shape); diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.2.minified.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.2.minified.js index 048854c4038c..2a2f5f413466 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors.2.minified.js @@ -1,2 +1,2 @@ //// [keyofAndIndexedAccessErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/literalTypeWidening.1.normal.js b/crates/swc/tests/tsc-references/literalTypeWidening.1.normal.js index 324208751c86..32d18e47e5d6 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening.1.normal.js @@ -1,7 +1,7 @@ //// [literalTypeWidening.ts] // Widening vs. non-widening literal types -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function f1() { var c1 = "hello"; // Widening type "hello" var v1 = c1; // Type string diff --git a/crates/swc/tests/tsc-references/literalTypeWidening.2.minified.js b/crates/swc/tests/tsc-references/literalTypeWidening.2.minified.js index 396aa6f9cbe2..48f18404e041 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening.2.minified.js @@ -1,6 +1,6 @@ //// [literalTypeWidening.ts] -import "@swc/helpers/src/_object_spread.mjs"; -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_spread"; +import "@swc/helpers/_/_object_without_properties"; export function Set() { for(var _len = arguments.length, _$keys = Array(_len), _key = 0; _key < _len; _key++)_$keys[_key] = arguments[_key]; var result = {}; diff --git a/crates/swc/tests/tsc-references/literalTypes2.1.normal.js b/crates/swc/tests/tsc-references/literalTypes2.1.normal.js index caa4f83b65be..7f07e7aa534a 100644 --- a/crates/swc/tests/tsc-references/literalTypes2.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypes2.1.normal.js @@ -1,5 +1,5 @@ //// [literalTypes2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/literalTypes2.2.minified.js b/crates/swc/tests/tsc-references/literalTypes2.2.minified.js index 57f230ebca63..7a0220a7bb37 100644 --- a/crates/swc/tests/tsc-references/literalTypes2.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypes2.2.minified.js @@ -1,5 +1,5 @@ //// [literalTypes2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A", E[E.B = 1] = "B", E[E.C = 2] = "C"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.1.normal.js b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.1.normal.js index 9f7a06bcbf29..f9c79eccd010 100644 --- a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.1.normal.js @@ -1,5 +1,5 @@ //// [literalTypesWidenInParameterPosition.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var D = function D() { "use strict"; var widen = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 2; diff --git a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.2.minified.js b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.2.minified.js index 9c6600bee828..ed8988e70f11 100644 --- a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition.2.minified.js @@ -1,5 +1,5 @@ //// [literalTypesWidenInParameterPosition.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function D() { "use strict"; var widen = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 2; diff --git a/crates/swc/tests/tsc-references/localTypes1.1.normal.js b/crates/swc/tests/tsc-references/localTypes1.1.normal.js index 8900fd7fbdfb..a7a446fc25b9 100644 --- a/crates/swc/tests/tsc-references/localTypes1.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes1.1.normal.js @@ -1,8 +1,8 @@ //// [localTypes1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function f1() { var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/localTypes1.2.minified.js b/crates/swc/tests/tsc-references/localTypes1.2.minified.js index ef4489bf554b..16b10e4ab5d4 100644 --- a/crates/swc/tests/tsc-references/localTypes1.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes1.2.minified.js @@ -1,5 +1,5 @@ //// [localTypes1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import "@swc/helpers/src/_inherits.mjs"; -import "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import "@swc/helpers/_/_inherits"; +import "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/localTypes2.1.normal.js b/crates/swc/tests/tsc-references/localTypes2.1.normal.js index 5f463bb5e468..e63d9faa4eb8 100644 --- a/crates/swc/tests/tsc-references/localTypes2.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes2.1.normal.js @@ -1,5 +1,5 @@ //// [localTypes2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1() { var f = function f() { var C = function C(x, y) { diff --git a/crates/swc/tests/tsc-references/localTypes2.2.minified.js b/crates/swc/tests/tsc-references/localTypes2.2.minified.js index b0b249dd2557..03189d08f8bf 100644 --- a/crates/swc/tests/tsc-references/localTypes2.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes2.2.minified.js @@ -1,2 +1,2 @@ //// [localTypes2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/localTypes3.1.normal.js b/crates/swc/tests/tsc-references/localTypes3.1.normal.js index 1853a931a22d..17bf71f28f77 100644 --- a/crates/swc/tests/tsc-references/localTypes3.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes3.1.normal.js @@ -1,5 +1,5 @@ //// [localTypes3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1() { var f = function f() { var C = function C(x, y) { diff --git a/crates/swc/tests/tsc-references/localTypes3.2.minified.js b/crates/swc/tests/tsc-references/localTypes3.2.minified.js index 2ebaddb9545f..a16edeb2c06f 100644 --- a/crates/swc/tests/tsc-references/localTypes3.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes3.2.minified.js @@ -1,2 +1,2 @@ //// [localTypes3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/localTypes5.1.normal.js b/crates/swc/tests/tsc-references/localTypes5.1.normal.js index 1914d5cc24f2..eb8017eddc3f 100644 --- a/crates/swc/tests/tsc-references/localTypes5.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes5.1.normal.js @@ -1,5 +1,5 @@ //// [localTypes5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { var X = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/localTypes5.2.minified.js b/crates/swc/tests/tsc-references/localTypes5.2.minified.js index 097975220d12..9447321ccab4 100644 --- a/crates/swc/tests/tsc-references/localTypes5.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes5.2.minified.js @@ -1,5 +1,5 @@ //// [localTypes5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function X() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.1.normal.js index 7449c6441b40..9c6caa92fa76 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.1.normal.js @@ -1,6 +1,6 @@ //// [logicalNotOperatorWithAnyOtherType.ts] // ! operator on any type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY; var ANY1; var ANY2 = [ diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.2.minified.js index 2177c05c2aea..f9da87b9e8c5 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType.2.minified.js @@ -1,5 +1,5 @@ //// [logicalNotOperatorWithAnyOtherType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, obj1 = { x: "", y: function() {} diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.1.normal.js index c35354b36adf..9fe02e3da45b 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.1.normal.js @@ -1,6 +1,6 @@ //// [logicalNotOperatorWithBooleanType.ts] // ! operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.2.minified.js index 1f355adc0c9b..0a9a7e3d80b4 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType.2.minified.js @@ -1,5 +1,5 @@ //// [logicalNotOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.1.normal.js index 04701e6ad83c..bd1273c6ba92 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [logicalNotOperatorWithNumberType.ts] // ! operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.2.minified.js index 1288a907e428..ec3f31aac96c 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [logicalNotOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.1.normal.js index c9824d5ad6f6..15589bceaa61 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.1.normal.js @@ -1,6 +1,6 @@ //// [logicalNotOperatorWithStringType.ts] // ! operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.2.minified.js index a749b55a0872..01308007bf65 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType.2.minified.js @@ -1,5 +1,5 @@ //// [logicalNotOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/looseThisTypeInFunctions.1.normal.js b/crates/swc/tests/tsc-references/looseThisTypeInFunctions.1.normal.js index a7d14501ba3a..83debefedd6f 100644 --- a/crates/swc/tests/tsc-references/looseThisTypeInFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/looseThisTypeInFunctions.1.normal.js @@ -1,5 +1,5 @@ //// [looseThisTypeInFunctions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/looseThisTypeInFunctions.2.minified.js b/crates/swc/tests/tsc-references/looseThisTypeInFunctions.2.minified.js index d10609777341..5f90f1a8e1dc 100644 --- a/crates/swc/tests/tsc-references/looseThisTypeInFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/looseThisTypeInFunctions.2.minified.js @@ -1,5 +1,5 @@ //// [looseThisTypeInFunctions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var u, c = new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints.1.normal.js b/crates/swc/tests/tsc-references/mappedTypeConstraints.1.normal.js index bccff6a27187..7181ee6dfb36 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints.1.normal.js @@ -1,5 +1,5 @@ //// [mappedTypeConstraints.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function f0(obj) { obj.b; } diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints.2.minified.js b/crates/swc/tests/tsc-references/mappedTypeConstraints.2.minified.js index 99513c25fd82..2981b02f3210 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints.2.minified.js @@ -1,2 +1,2 @@ //// [mappedTypeConstraints.ts] -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/mappedTypeErrors.1.normal.js b/crates/swc/tests/tsc-references/mappedTypeErrors.1.normal.js index 193ef36b247d..3da463983539 100644 --- a/crates/swc/tests/tsc-references/mappedTypeErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypeErrors.1.normal.js @@ -1,5 +1,5 @@ //// [mappedTypeErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(x) { var y; // Error } diff --git a/crates/swc/tests/tsc-references/mappedTypeErrors.2.minified.js b/crates/swc/tests/tsc-references/mappedTypeErrors.2.minified.js index 10dd631ddac8..bce5fa5bfc45 100644 --- a/crates/swc/tests/tsc-references/mappedTypeErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypeErrors.2.minified.js @@ -1,5 +1,5 @@ //// [mappedTypeErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function setState(obj, props) { for(var k in props)obj[k] = props[k]; } diff --git a/crates/swc/tests/tsc-references/mappedTypes3.1.normal.js b/crates/swc/tests/tsc-references/mappedTypes3.1.normal.js index 3ef6c69e776d..051fbefd0756 100644 --- a/crates/swc/tests/tsc-references/mappedTypes3.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypes3.1.normal.js @@ -1,5 +1,5 @@ //// [mappedTypes3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Box = function Box() { "use strict"; _class_call_check(this, Box); diff --git a/crates/swc/tests/tsc-references/mappedTypes3.2.minified.js b/crates/swc/tests/tsc-references/mappedTypes3.2.minified.js index 0a5a600ed1e7..c8c24b557ba3 100644 --- a/crates/swc/tests/tsc-references/mappedTypes3.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypes3.2.minified.js @@ -1,2 +1,2 @@ //// [mappedTypes3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/mappedTypesAndObjects.1.normal.js b/crates/swc/tests/tsc-references/mappedTypesAndObjects.1.normal.js index 025c75d8d102..48e6141ae267 100644 --- a/crates/swc/tests/tsc-references/mappedTypesAndObjects.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypesAndObjects.1.normal.js @@ -1,5 +1,5 @@ //// [mappedTypesAndObjects.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(x, y) { var obj; obj = x; diff --git a/crates/swc/tests/tsc-references/mappedTypesAndObjects.2.minified.js b/crates/swc/tests/tsc-references/mappedTypesAndObjects.2.minified.js index 1961254c9d00..ce1862699167 100644 --- a/crates/swc/tests/tsc-references/mappedTypesAndObjects.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypesAndObjects.2.minified.js @@ -1,2 +1,2 @@ //// [mappedTypesAndObjects.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.1.normal.js index c4f730d50951..1e66f406f0a9 100644 --- a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.1.normal.js @@ -1,5 +1,5 @@ //// [memberFunctionOverloadMixingStaticAndInstance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.2.minified.js index cb9ae02ee000..265d6e2cff20 100644 --- a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance.2.minified.js @@ -1,2 +1,2 @@ //// [memberFunctionOverloadMixingStaticAndInstance.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.1.normal.js index 0a86179bac85..452740b0f74d 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.1.normal.js @@ -1,5 +1,5 @@ //// [memberFunctionsWithPrivateOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.2.minified.js index f32fb26e4c43..a6e0fb5b9884 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads.2.minified.js @@ -1,5 +1,5 @@ //// [memberFunctionsWithPrivateOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var c, d, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.1.normal.js index 94b3eab50e9c..e0fe5637069b 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.1.normal.js @@ -1,5 +1,5 @@ //// [memberFunctionsWithPublicOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.2.minified.js index e6962cd3aad3..f22f99a0fe67 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads.2.minified.js @@ -1,2 +1,2 @@ //// [memberFunctionsWithPublicOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.1.normal.js index f50f36d62d12..1e3c1059edf7 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.1.normal.js @@ -1,5 +1,5 @@ //// [memberFunctionsWithPublicPrivateOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.2.minified.js index 8fd3b718e9e9..dc446c916262 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads.2.minified.js @@ -1,4 +1,4 @@ //// [memberFunctionsWithPublicPrivateOverloads.ts] var c, d; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; c.foo(1), d.foo(2); diff --git a/crates/swc/tests/tsc-references/mergedClassInterface.1.normal.js b/crates/swc/tests/tsc-references/mergedClassInterface.1.normal.js index 229af2903e7f..aab5e7ad111c 100644 --- a/crates/swc/tests/tsc-references/mergedClassInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedClassInterface.1.normal.js @@ -1,6 +1,6 @@ //// [mergedClassInterface.ts] //// [file1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C3 = function C3() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/mergedClassInterface.2.minified.js b/crates/swc/tests/tsc-references/mergedClassInterface.2.minified.js index 7485ea5d7050..9ebb091629ec 100644 --- a/crates/swc/tests/tsc-references/mergedClassInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedClassInterface.2.minified.js @@ -1,7 +1,7 @@ //// [mergedClassInterface.ts] //// [file1.ts] var c5; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c5.x1, c5.x2, c5.x3, c5.x4; //// [file2.ts] //// [file3.ts] diff --git a/crates/swc/tests/tsc-references/mergedInheritedClassInterface.1.normal.js b/crates/swc/tests/tsc-references/mergedInheritedClassInterface.1.normal.js index eb30e386ccc1..859caf170eb0 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedClassInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInheritedClassInterface.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInheritedClassInterface.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var BaseClass = /*#__PURE__*/ function() { "use strict"; function BaseClass() { diff --git a/crates/swc/tests/tsc-references/mergedInheritedClassInterface.2.minified.js b/crates/swc/tests/tsc-references/mergedInheritedClassInterface.2.minified.js index ec871ff799bd..67cdc53301e6 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedClassInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInheritedClassInterface.2.minified.js @@ -1,6 +1,6 @@ //// [mergedInheritedClassInterface.ts] var child, grandchild; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; child.required, child.optional, child.additional, child.baseNumber, child.classNumber, child.baseMethod(), child.method(), grandchild.required, grandchild.optional, grandchild.additional2, grandchild.classString, grandchild.method2(); diff --git a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.1.normal.js b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.1.normal.js index fc16fefa7fff..39220158d76c 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInheritedMembersSatisfyAbstractBase.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var BaseClass = function BaseClass() { "use strict"; _class_call_check(this, BaseClass); diff --git a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.2.minified.js b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.2.minified.js index a27f411e7bc0..2c4085052d16 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase.2.minified.js @@ -1,7 +1,7 @@ //// [mergedInheritedMembersSatisfyAbstractBase.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; new (function(BaseClass) { "use strict"; _inherits(Broken, BaseClass); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.1.normal.js index b3a56461bf60..df205e3cdec1 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.1.normal.js @@ -1,5 +1,5 @@ //// [mergedInterfacesWithInheritedPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.2.minified.js index 6402d1de2001..c9f647420a78 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates.2.minified.js @@ -1,4 +1,4 @@ //// [mergedInterfacesWithInheritedPrivates.ts] var a; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; a.x; diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.1.normal.js index 6182b848aafc..1d60c82944f6 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInterfacesWithInheritedPrivates2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.2.minified.js index a0921ab5f6d6..09e8414a88e8 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2.2.minified.js @@ -1,6 +1,6 @@ //// [mergedInterfacesWithInheritedPrivates2.ts] var a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; a.x, a.w; diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.1.normal.js index 438365bfb8f8..9fff654beee7 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInterfacesWithInheritedPrivates3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.2.minified.js index ffc76f7d227c..4725871957a5 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3.2.minified.js @@ -1,6 +1,6 @@ //// [mergedInterfacesWithInheritedPrivates3.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.1.normal.js index feff1f32878c..200e5cd115cd 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInterfacesWithMultipleBases.ts] // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.2.minified.js index 2909153e4b85..f71a9ecef288 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases.2.minified.js @@ -1,4 +1,4 @@ //// [mergedInterfacesWithMultipleBases.ts] var a, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; a.a, M || (M = {}); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.1.normal.js index a6379ec1f6eb..540a46317653 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInterfacesWithMultipleBases2.ts] // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.2.minified.js index 89266a33716c..2e870bc7bc22 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2.2.minified.js @@ -1,4 +1,4 @@ //// [mergedInterfacesWithMultipleBases2.ts] var a, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; a.a, M || (M = {}); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.1.normal.js index 0b91dfa6f63a..da25fdc18246 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.1.normal.js @@ -1,7 +1,7 @@ //// [mergedInterfacesWithMultipleBases3.ts] // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.2.minified.js index 89473e69affe..9f618250bce2 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3.2.minified.js @@ -1,2 +1,2 @@ //// [mergedInterfacesWithMultipleBases3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.1.normal.js index 8726095512b3..1348dcc53f4a 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.1.normal.js @@ -1,6 +1,6 @@ //// [mergedInterfacesWithMultipleBases4.ts] // merged interfaces behave as if all extends clauses from each declaration are merged together -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.2.minified.js index 3bd415812f97..5295d779ef34 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4.2.minified.js @@ -1,2 +1,2 @@ //// [mergedInterfacesWithMultipleBases4.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/missingAndExcessProperties.1.normal.js b/crates/swc/tests/tsc-references/missingAndExcessProperties.1.normal.js index c8ca61efa501..a585317c3e6b 100644 --- a/crates/swc/tests/tsc-references/missingAndExcessProperties.1.normal.js +++ b/crates/swc/tests/tsc-references/missingAndExcessProperties.1.normal.js @@ -1,6 +1,6 @@ //// [missingAndExcessProperties.ts] // Missing properties -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; function f1() { var _ref = {}, x = _ref.x, y = _ref.y; var _ref1 = {}, _ref_x = _ref1.x, x = _ref_x === void 0 ? 1 : _ref_x, y = _ref1.y; diff --git a/crates/swc/tests/tsc-references/missingAndExcessProperties.2.minified.js b/crates/swc/tests/tsc-references/missingAndExcessProperties.2.minified.js index ce2fd758b21c..4cc9e16a6726 100644 --- a/crates/swc/tests/tsc-references/missingAndExcessProperties.2.minified.js +++ b/crates/swc/tests/tsc-references/missingAndExcessProperties.2.minified.js @@ -1,2 +1,2 @@ //// [missingAndExcessProperties.ts] -import "@swc/helpers/src/_object_destructuring_empty.mjs"; +import "@swc/helpers/_/_object_destructuring_empty"; diff --git a/crates/swc/tests/tsc-references/mixinAccessModifiers.1.normal.js b/crates/swc/tests/tsc-references/mixinAccessModifiers.1.normal.js index 287e335062d0..43b5fa38c6bc 100644 --- a/crates/swc/tests/tsc-references/mixinAccessModifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinAccessModifiers.1.normal.js @@ -1,7 +1,7 @@ //// [mixinAccessModifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Private = function Private() { "use strict"; for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/mixinAccessModifiers.2.minified.js b/crates/swc/tests/tsc-references/mixinAccessModifiers.2.minified.js index b6e1cb7dccf1..ad3bde036c9e 100644 --- a/crates/swc/tests/tsc-references/mixinAccessModifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinAccessModifiers.2.minified.js @@ -1,7 +1,7 @@ //// [mixinAccessModifiers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Private = function Private() { "use strict"; for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/mixinClassesAnnotated.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesAnnotated.1.normal.js index 86b3e5d2f2db..e4c6db6739f1 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnnotated.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnnotated.1.normal.js @@ -1,8 +1,8 @@ //// [mixinClassesAnnotated.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x, y) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesAnnotated.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesAnnotated.2.minified.js index d91f6c61e4e1..8ba3cd771f8e 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnnotated.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnnotated.2.minified.js @@ -1,8 +1,8 @@ //// [mixinClassesAnnotated.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _class, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesAnonymous.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesAnonymous.1.normal.js index 4b5abdbf9bbd..3fd51f1094b3 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnonymous.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnonymous.1.normal.js @@ -1,8 +1,8 @@ //// [mixinClassesAnonymous.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(x, y) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesAnonymous.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesAnonymous.2.minified.js index cf0abb3f39a7..53f1da4073c7 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnonymous.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnonymous.2.minified.js @@ -1,8 +1,8 @@ //// [mixinClassesAnonymous.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _class, Derived = function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesMembers.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesMembers.1.normal.js index e1b464e02724..2825306e0fa9 100644 --- a/crates/swc/tests/tsc-references/mixinClassesMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesMembers.1.normal.js @@ -1,9 +1,9 @@ //// [mixinClassesMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function f1() { var x1 = new Mixed1("hello"); var x2 = new Mixed1(42); diff --git a/crates/swc/tests/tsc-references/mixinClassesMembers.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesMembers.2.minified.js index 6d0bfcb8e146..4795a9bca3b5 100644 --- a/crates/swc/tests/tsc-references/mixinClassesMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesMembers.2.minified.js @@ -1,7 +1,7 @@ //// [mixinClassesMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Mixed1, Mixed3; diff --git a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.1.normal.js b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.1.normal.js index 6ec41dc44621..8b607fef38df 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.1.normal.js @@ -1,5 +1,5 @@ //// [modifierOnClassDeclarationMemberInFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() { var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.2.minified.js b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.2.minified.js index d6cd1b7979a5..9a519083065a 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction.2.minified.js @@ -1,2 +1,2 @@ //// [modifierOnClassDeclarationMemberInFunction.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.1.normal.js b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.1.normal.js index 544384183238..32160040d054 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.1.normal.js @@ -1,5 +1,5 @@ //// [modifierOnClassExpressionMemberInFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function g() { var _C; var x = (_C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.2.minified.js b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.2.minified.js index f74c704d42bc..06065b53abe3 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction.2.minified.js @@ -1,2 +1,2 @@ //// [modifierOnClassExpressionMemberInFunction.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/moduleExportAlias3.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAlias3.1.normal.js index 1082d3cf2533..168523302e95 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias3.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias3.1.normal.js @@ -1,6 +1,6 @@ //// [bug24062.js] // #24062 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/moduleExportAlias3.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAlias3.2.minified.js index deafb11133cf..02f398a7138a 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias3.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias3.2.minified.js @@ -1,5 +1,5 @@ //// [bug24062.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { C: function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/moduleExportAlias4.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAlias4.1.normal.js index 6a7c0226d1ac..5e4b03abf2cd 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias4.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias4.1.normal.js @@ -1,6 +1,6 @@ //// [bug24024.js] // #24024 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var wat = require("./bug24024"); module.exports = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/moduleExportAlias4.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAlias4.2.minified.js index 58b008a5447e..aa9b7070614c 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias4.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias4.2.minified.js @@ -1,5 +1,5 @@ //// [bug24024.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; require("./bug24024"), module.exports = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment.1.normal.js index 92ada82fa339..ffb4c8ff2719 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment.1.normal.js @@ -1,5 +1,5 @@ //// [npmlog.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var EE = /*#__PURE__*/ function() { "use strict"; function EE() { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment.2.minified.js index 600beee92914..a062d54fe2b1 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment.2.minified.js @@ -1,5 +1,5 @@ //// [npmlog.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var EE = function() { "use strict"; function EE() { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment5.1.normal.js index bf32c4995b6f..553579d716e1 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment5.1.normal.js @@ -1,5 +1,5 @@ //// [axios.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Axios = /*#__PURE__*/ function() { "use strict"; function Axios() { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment5.2.minified.js index 05e4bbca8236..b32e2a0879ce 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment5.2.minified.js @@ -1,5 +1,5 @@ //// [axios.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var axios = new (function() { "use strict"; function Axios() { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment6.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment6.1.normal.js index e9df2eee162f..2d59962f0cc7 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment6.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment6.1.normal.js @@ -1,5 +1,5 @@ //// [webpackLibNormalModule.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment6.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment6.2.minified.js index bc171c3d7b5f..7dde0effa223 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment6.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment6.2.minified.js @@ -1,2 +1,2 @@ //// [webpackLibNormalModule.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment7.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment7.1.normal.js index f203ea485cce..77e2046312cf 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment7.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment7.1.normal.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Thing = function Thing() { "use strict"; _class_call_check(this, Thing); diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment7.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment7.2.minified.js index 7d7877b30332..1322e02f1bd9 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment7.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment7.2.minified.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { Thing: function Thing() { "use strict"; diff --git a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.1.normal.js b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.1.normal.js index 31d18f6ff876..ed9ec4cbb9be 100644 --- a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.1.normal.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.n = {}; module.exports.n.K = function C() { this.x = 10; diff --git a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.2.minified.js b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.2.minified.js index 3b42502d7ed5..36a176f26961 100644 --- a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces.2.minified.js @@ -1,5 +1,5 @@ //// [mod.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports.n = {}, module.exports.n.K = function() { this.x = 10; }, module.exports.Classic = function _class() { diff --git a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.1.normal.js b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.1.normal.js index 7eaf3c0e2aa8..b430921ce83d 100644 --- a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.1.normal.js @@ -1,7 +1,7 @@ //// [moduleWithStatementsOfEveryKind.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A; (function(A) { var F = function F(s) { diff --git a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.2.minified.js b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.2.minified.js index a6765ea5d417..aa70a4517591 100644 --- a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind.2.minified.js @@ -1,8 +1,8 @@ //// [moduleWithStatementsOfEveryKind.ts] var A, Y; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(A) { var Module, Color, Color1; Module || (Module = {}), (Color1 = Color || (Color = {}))[Color1.Blue = 0] = "Blue", Color1[Color1.Red = 1] = "Red"; diff --git a/crates/swc/tests/tsc-references/multipleDeclarations.1.normal.js b/crates/swc/tests/tsc-references/multipleDeclarations.1.normal.js index 4b987f332bde..c9f2c18e1edd 100644 --- a/crates/swc/tests/tsc-references/multipleDeclarations.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDeclarations.1.normal.js @@ -1,5 +1,5 @@ //// [input.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function C() { this.m = null; } diff --git a/crates/swc/tests/tsc-references/multipleDeclarations.2.minified.js b/crates/swc/tests/tsc-references/multipleDeclarations.2.minified.js index 659d997e666a..6cb51c120a38 100644 --- a/crates/swc/tests/tsc-references/multipleDeclarations.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDeclarations.2.minified.js @@ -1,5 +1,5 @@ //// [input.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { this.m = null; }).prototype.m = function() { diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports01.1.normal.js b/crates/swc/tests/tsc-references/multipleDefaultExports01.1.normal.js index 34799a075234..fbc1edbcedd6 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports01.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports01.1.normal.js @@ -45,6 +45,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); (0, _m1.default)(); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports01.2.minified.js b/crates/swc/tests/tsc-references/multipleDefaultExports01.2.minified.js index 0f76cb812217..4390455cb467 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports01.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports01.2.minified.js @@ -44,4 +44,4 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), (0, (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")).default)(); +}), (0, require("@swc/helpers/_/_interop_require_default")._(require("./m1")).default)(); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports02.1.normal.js b/crates/swc/tests/tsc-references/multipleDefaultExports02.1.normal.js index 90fcec50a251..2e9c0b8aad85 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports02.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports02.1.normal.js @@ -23,6 +23,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _m1 = /*#__PURE__*/ _interop_require_default(require("./m1")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _m1 = /*#__PURE__*/ _interop_require_default._(require("./m1")); (0, _m1.default)(); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports02.2.minified.js b/crates/swc/tests/tsc-references/multipleDefaultExports02.2.minified.js index 4184f40e60a9..af8cd24e5dc6 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports02.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports02.2.minified.js @@ -22,4 +22,4 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), (0, (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("./m1")).default)(); +}), (0, require("@swc/helpers/_/_interop_require_default")._(require("./m1")).default)(); diff --git a/crates/swc/tests/tsc-references/multipleNumericIndexers.1.normal.js b/crates/swc/tests/tsc-references/multipleNumericIndexers.1.normal.js index c4dff0cbf5c2..b8aacc00d438 100644 --- a/crates/swc/tests/tsc-references/multipleNumericIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleNumericIndexers.1.normal.js @@ -1,6 +1,6 @@ //// [multipleNumericIndexers.ts] // Multiple indexers of the same type are an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleNumericIndexers.2.minified.js b/crates/swc/tests/tsc-references/multipleNumericIndexers.2.minified.js index 709e7200aa0d..4161845939bd 100644 --- a/crates/swc/tests/tsc-references/multipleNumericIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleNumericIndexers.2.minified.js @@ -1,2 +1,2 @@ //// [multipleNumericIndexers.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/multipleStringIndexers.1.normal.js b/crates/swc/tests/tsc-references/multipleStringIndexers.1.normal.js index c43188e99292..c896a2ac90af 100644 --- a/crates/swc/tests/tsc-references/multipleStringIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleStringIndexers.1.normal.js @@ -1,6 +1,6 @@ //// [multipleStringIndexers.ts] // Multiple indexers of the same type are an error -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleStringIndexers.2.minified.js b/crates/swc/tests/tsc-references/multipleStringIndexers.2.minified.js index 8d0f58a0a821..8d17d8de024b 100644 --- a/crates/swc/tests/tsc-references/multipleStringIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleStringIndexers.2.minified.js @@ -1,2 +1,2 @@ //// [multipleStringIndexers.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/nameCollision.1.normal.js b/crates/swc/tests/tsc-references/nameCollision.1.normal.js index 00214a1f2823..76316e0c9f91 100644 --- a/crates/swc/tests/tsc-references/nameCollision.1.normal.js +++ b/crates/swc/tests/tsc-references/nameCollision.1.normal.js @@ -1,5 +1,5 @@ //// [nameCollision.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A; (function(A) { // these 2 statements force an underscore before the 'A' diff --git a/crates/swc/tests/tsc-references/nameCollision.2.minified.js b/crates/swc/tests/tsc-references/nameCollision.2.minified.js index 1931e285198a..de3fe8ee81f5 100644 --- a/crates/swc/tests/tsc-references/nameCollision.2.minified.js +++ b/crates/swc/tests/tsc-references/nameCollision.2.minified.js @@ -1,6 +1,6 @@ //// [nameCollision.ts] var A, B, X, Y, D; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; A || (A = {}), B || (B = {}), B || (B = {}), function(X) { var Y; (Y = X.Y || (X.Y = {})).Z || (Y.Z = {}); diff --git a/crates/swc/tests/tsc-references/namedTupleMembers.1.normal.js b/crates/swc/tests/tsc-references/namedTupleMembers.1.normal.js index 2199b824f6dd..2fdf2f03e3f3 100644 --- a/crates/swc/tests/tsc-references/namedTupleMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/namedTupleMembers.1.normal.js @@ -1,6 +1,6 @@ //// [namedTupleMembers.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; a = b; a = c; a = d; diff --git a/crates/swc/tests/tsc-references/namedTupleMembers.2.minified.js b/crates/swc/tests/tsc-references/namedTupleMembers.2.minified.js index 84ab4db6fb5d..90780eb54bee 100644 --- a/crates/swc/tests/tsc-references/namedTupleMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/namedTupleMembers.2.minified.js @@ -1,6 +1,6 @@ //// [namedTupleMembers.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; a = b, a = c, b = a = d, b = c, b = d, c = a, c = b, c = d, d = a, d = b, d = c; export var func = null; export function useState(initial) { diff --git a/crates/swc/tests/tsc-references/namespaceImportTypeQuery.1.normal.js b/crates/swc/tests/tsc-references/namespaceImportTypeQuery.1.normal.js index eb21f1444bfd..c7e7da44c794 100644 --- a/crates/swc/tests/tsc-references/namespaceImportTypeQuery.1.normal.js +++ b/crates/swc/tests/tsc-references/namespaceImportTypeQuery.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/namespaceImportTypeQuery.2.minified.js b/crates/swc/tests/tsc-references/namespaceImportTypeQuery.2.minified.js index 364109adb6ea..77a91f744658 100644 --- a/crates/swc/tests/tsc-references/namespaceImportTypeQuery.2.minified.js +++ b/crates/swc/tests/tsc-references/namespaceImportTypeQuery.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/namespaceMemberAccess.1.normal.js b/crates/swc/tests/tsc-references/namespaceMemberAccess.1.normal.js index 77ec343e80ca..71bb8cacac69 100644 --- a/crates/swc/tests/tsc-references/namespaceMemberAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/namespaceMemberAccess.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/namespaceMemberAccess.2.minified.js b/crates/swc/tests/tsc-references/namespaceMemberAccess.2.minified.js index b9c2a2f76072..bb2e1faacb73 100644 --- a/crates/swc/tests/tsc-references/namespaceMemberAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/namespaceMemberAccess.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] import * as types from "./a"; types.A, types.A; diff --git a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.1.normal.js b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.1.normal.js index edf288052f3e..06b0dc214dbe 100644 --- a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.1.normal.js @@ -1,5 +1,5 @@ //// [narrowExceptionVariableInCatchClause.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; function tryCatch() { try { // do stuff... diff --git a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.2.minified.js b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.2.minified.js index 41483e5afb9e..bf92ff824861 100644 --- a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause.2.minified.js @@ -1,2 +1,2 @@ //// [narrowExceptionVariableInCatchClause.ts] -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.1.normal.js b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.1.normal.js index 5576264afc3e..ac00e283d203 100644 --- a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.1.normal.js @@ -1,5 +1,5 @@ //// [narrowFromAnyWithInstanceof.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; if (_instanceof(x, Function)) { x(); x(1, 2, 3); diff --git a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.2.minified.js b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.2.minified.js index 6a121991f48c..27f5b3a6848f 100644 --- a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof.2.minified.js @@ -1,3 +1,3 @@ //// [narrowFromAnyWithInstanceof.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(x, Function) && (x(), x(1, 2, 3), x("hello!"), x.prop), _instanceof(x, Object) && (x.method(), x()), _instanceof(x, Error) && (x.message, x.mesage), _instanceof(x, Date) && (x.getDate(), x.getHuors()); diff --git a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.1.normal.js b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.1.normal.js index 9baf88f017ca..68f2440d7624 100644 --- a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.1.normal.js @@ -1,7 +1,7 @@ //// [narrowingConstrainedTypeVariable.ts] // Repro from #20138 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.2.minified.js b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.2.minified.js index 0fbd1d45750a..6a90d02ef06d 100644 --- a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable.2.minified.js @@ -1,3 +1,3 @@ //// [narrowingConstrainedTypeVariable.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.1.normal.js b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.1.normal.js index 0b7b67cb6ac7..49b28aa7a21a 100644 --- a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.1.normal.js @@ -1,6 +1,6 @@ //// [narrowingGenericTypeFromInstanceof01.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var A = function A(a) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.2.minified.js b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.2.minified.js index 5a001a5dbdc2..295aaa795de3 100644 --- a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01.2.minified.js @@ -1,3 +1,3 @@ //// [narrowingGenericTypeFromInstanceof01.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.1.normal.js index 5f145ec3997a..84eefa96994f 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.1.normal.js @@ -1,6 +1,6 @@ //// [negateOperatorWithBooleanType.ts] // - operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.2.minified.js index 1806bbae9df5..72f923f75aa7 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType.2.minified.js @@ -1,5 +1,5 @@ //// [negateOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/negateOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithNumberType.1.normal.js index 0fecbc9d6adc..bf338a8a2981 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [negateOperatorWithNumberType.ts] // - operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/negateOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithNumberType.2.minified.js index 1bc74f70bf89..c28321ecc8c8 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [negateOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/negateOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithStringType.1.normal.js index ee13a6689ffd..352b2d254868 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithStringType.1.normal.js @@ -1,6 +1,6 @@ //// [negateOperatorWithStringType.ts] // - operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/negateOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithStringType.2.minified.js index 61c0dd850071..84889bee55e2 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithStringType.2.minified.js @@ -1,5 +1,5 @@ //// [negateOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/nestedNamespace.1.normal.js b/crates/swc/tests/tsc-references/nestedNamespace.1.normal.js index 93e29a93718a..797e6c502e62 100644 --- a/crates/swc/tests/tsc-references/nestedNamespace.1.normal.js +++ b/crates/swc/tests/tsc-references/nestedNamespace.1.normal.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var types; (function(types) { var A = function A() { diff --git a/crates/swc/tests/tsc-references/nestedNamespace.2.minified.js b/crates/swc/tests/tsc-references/nestedNamespace.2.minified.js index 06e09b0ec70b..b87b7f5cf7b0 100644 --- a/crates/swc/tests/tsc-references/nestedNamespace.2.minified.js +++ b/crates/swc/tests/tsc-references/nestedNamespace.2.minified.js @@ -1,5 +1,5 @@ //// [a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var types; (types || (types = {})).A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/neverReturningFunctions1.1.normal.js b/crates/swc/tests/tsc-references/neverReturningFunctions1.1.normal.js index e8bdfdae8069..8f2473bef809 100644 --- a/crates/swc/tests/tsc-references/neverReturningFunctions1.1.normal.js +++ b/crates/swc/tests/tsc-references/neverReturningFunctions1.1.normal.js @@ -1,9 +1,9 @@ //// [neverReturningFunctions1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function fail(message) { throw new Error(message); } diff --git a/crates/swc/tests/tsc-references/neverReturningFunctions1.2.minified.js b/crates/swc/tests/tsc-references/neverReturningFunctions1.2.minified.js index ef35d660ab47..7882902e863d 100644 --- a/crates/swc/tests/tsc-references/neverReturningFunctions1.2.minified.js +++ b/crates/swc/tests/tsc-references/neverReturningFunctions1.2.minified.js @@ -1,9 +1,9 @@ //// [neverReturningFunctions1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; registerComponent("test-component", { schema: { myProperty: { diff --git a/crates/swc/tests/tsc-references/neverType.1.normal.js b/crates/swc/tests/tsc-references/neverType.1.normal.js index c577019c32fe..91f98af4f935 100644 --- a/crates/swc/tests/tsc-references/neverType.1.normal.js +++ b/crates/swc/tests/tsc-references/neverType.1.normal.js @@ -1,5 +1,5 @@ //// [neverType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function error(message) { throw new Error(message); } diff --git a/crates/swc/tests/tsc-references/neverType.2.minified.js b/crates/swc/tests/tsc-references/neverType.2.minified.js index 6a3a4bff80d4..f059a4aa5817 100644 --- a/crates/swc/tests/tsc-references/neverType.2.minified.js +++ b/crates/swc/tests/tsc-references/neverType.2.minified.js @@ -1,5 +1,5 @@ //// [neverType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function error(message) { throw Error(message); } diff --git a/crates/swc/tests/tsc-references/newOperatorConformance.1.normal.js b/crates/swc/tests/tsc-references/newOperatorConformance.1.normal.js index 329e06c40b7d..974230cff539 100644 --- a/crates/swc/tests/tsc-references/newOperatorConformance.1.normal.js +++ b/crates/swc/tests/tsc-references/newOperatorConformance.1.normal.js @@ -1,5 +1,5 @@ //// [newOperatorConformance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C0 = function C0() { "use strict"; _class_call_check(this, C0); diff --git a/crates/swc/tests/tsc-references/newOperatorConformance.2.minified.js b/crates/swc/tests/tsc-references/newOperatorConformance.2.minified.js index c84826968b58..74dd35982e4b 100644 --- a/crates/swc/tests/tsc-references/newOperatorConformance.2.minified.js +++ b/crates/swc/tests/tsc-references/newOperatorConformance.2.minified.js @@ -1,5 +1,5 @@ //// [newOperatorConformance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C0() { "use strict"; _class_call_check(this, C0); diff --git a/crates/swc/tests/tsc-references/newTarget.es5.1.normal.js b/crates/swc/tests/tsc-references/newTarget.es5.1.normal.js index 327f0e74500b..10efb452dab5 100644 --- a/crates/swc/tests/tsc-references/newTarget.es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newTarget.es5.1.normal.js @@ -1,8 +1,8 @@ //// [newTarget.es5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; var _this = this; diff --git a/crates/swc/tests/tsc-references/newTarget.es5.2.minified.js b/crates/swc/tests/tsc-references/newTarget.es5.2.minified.js index 03f546ff1e17..ef1482e047eb 100644 --- a/crates/swc/tests/tsc-references/newTarget.es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newTarget.es5.2.minified.js @@ -1,5 +1,5 @@ //// [newTarget.es5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/newWithSpread.1.normal.js b/crates/swc/tests/tsc-references/newWithSpread.1.normal.js index e5752f53f4d9..19d09f808a19 100644 --- a/crates/swc/tests/tsc-references/newWithSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/newWithSpread.1.normal.js @@ -1,7 +1,7 @@ //// [newWithSpread.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _construct from "@swc/helpers/src/_construct.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _construct } from "@swc/helpers/_/_construct"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f(x, y) { for(var _len = arguments.length, z = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ z[_key - 2] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/newWithSpread.2.minified.js b/crates/swc/tests/tsc-references/newWithSpread.2.minified.js index 506c037a1db9..39102fe53980 100644 --- a/crates/swc/tests/tsc-references/newWithSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/newWithSpread.2.minified.js @@ -1,7 +1,7 @@ //// [newWithSpread.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _construct from "@swc/helpers/src/_construct.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _construct } from "@swc/helpers/_/_construct"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f(x, y) { for(var _len = arguments.length, z = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)z[_key - 2] = arguments[_key]; } diff --git a/crates/swc/tests/tsc-references/newWithSpreadES5.1.normal.js b/crates/swc/tests/tsc-references/newWithSpreadES5.1.normal.js index 1e237d3600ce..d47362c7c2f3 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES5.1.normal.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES5.1.normal.js @@ -1,7 +1,7 @@ //// [newWithSpreadES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _construct from "@swc/helpers/src/_construct.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _construct } from "@swc/helpers/_/_construct"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f(x, y) { for(var _len = arguments.length, z = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ z[_key - 2] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/newWithSpreadES5.2.minified.js b/crates/swc/tests/tsc-references/newWithSpreadES5.2.minified.js index 7723a363058c..c505f99b396e 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES5.2.minified.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES5.2.minified.js @@ -1,7 +1,7 @@ //// [newWithSpreadES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _construct from "@swc/helpers/src/_construct.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _construct } from "@swc/helpers/_/_construct"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f(x, y) { for(var _len = arguments.length, z = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)z[_key - 2] = arguments[_key]; } diff --git a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.1.normal.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.1.normal.js index 6bda6ef0e03f..7fbce9d5588f 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.1.normal.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.1.normal.js @@ -1,9 +1,9 @@ //// [noUncheckedIndexedAccessDestructuring.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; // Declaration forms for array destructuring // Destructuring from a simple array -> include undefined var _strArray = _sliced_to_array(strArray, 1), s1 = _strArray[0]; diff --git a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.2.minified.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.2.minified.js index 0349018837b4..2f287811ea7d 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.2.minified.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring.2.minified.js @@ -1,9 +1,9 @@ //// [noUncheckedIndexedAccessDestructuring.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; _sliced_to_array(strArray, 1)[0].toString(), _to_array(strArray).slice(0).push(void 0), _to_array(strArray).slice(2).push(void 0), strMap.t1.toString(), _extends({}, _object_destructuring_empty(strMap)).z.toString(); var ref3, x = numMapPoint.x, y = numMapPoint.y, z = numMapPoint.z; x.toFixed(), y.toFixed(), z.toFixed(); diff --git a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.1.normal.js b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.1.normal.js index ed423b616e2f..6c436f986307 100644 --- a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.1.normal.js +++ b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.1.normal.js @@ -1,6 +1,6 @@ //// [nonGenericTypeReferenceWithTypeArguments.ts] // Check that errors are reported for non-generic types with type arguments -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.2.minified.js b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.2.minified.js index f0322e350e41..2c646bec85ec 100644 --- a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.2.minified.js +++ b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments.2.minified.js @@ -1,4 +1,4 @@ //// [nonGenericTypeReferenceWithTypeArguments.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; E || (E = {}); diff --git a/crates/swc/tests/tsc-references/nonInstantiatedModule.1.normal.js b/crates/swc/tests/tsc-references/nonInstantiatedModule.1.normal.js index 9bdbf4c4d351..df662b1d61dd 100644 --- a/crates/swc/tests/tsc-references/nonInstantiatedModule.1.normal.js +++ b/crates/swc/tests/tsc-references/nonInstantiatedModule.1.normal.js @@ -1,5 +1,5 @@ //// [nonInstantiatedModule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var a = M.a = 1; diff --git a/crates/swc/tests/tsc-references/nonInstantiatedModule.2.minified.js b/crates/swc/tests/tsc-references/nonInstantiatedModule.2.minified.js index 56cc7f081efc..70cc0a075750 100644 --- a/crates/swc/tests/tsc-references/nonInstantiatedModule.2.minified.js +++ b/crates/swc/tests/tsc-references/nonInstantiatedModule.2.minified.js @@ -1,5 +1,5 @@ //// [nonInstantiatedModule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (M || (M = {})).a = 1; var M, M2, M3, m = M; M.a, m.a, function(M2) { diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.1.normal.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.1.normal.js index 243906b3a994..3eafea65d2c2 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.1.normal.js @@ -1,6 +1,6 @@ //// [nonPrimitiveAccessProperty.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; var a; a.toString(); a.nonExist(); // error diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.2.minified.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.2.minified.js index a278d6bd80b5..d1f96c291b89 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty.2.minified.js @@ -1,5 +1,5 @@ //// [nonPrimitiveAccessProperty.ts] var a; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; a.toString(), a.nonExist(), a.destructuring, _extends({}, _object_destructuring_empty(a)); diff --git a/crates/swc/tests/tsc-references/nonPrimitiveNarrow.1.normal.js b/crates/swc/tests/tsc-references/nonPrimitiveNarrow.1.normal.js index f426b270c30d..faef907de93a 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveNarrow.1.normal.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveNarrow.1.normal.js @@ -1,6 +1,6 @@ //// [nonPrimitiveNarrow.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var Narrow = function Narrow() { "use strict"; _class_call_check(this, Narrow); diff --git a/crates/swc/tests/tsc-references/nonPrimitiveNarrow.2.minified.js b/crates/swc/tests/tsc-references/nonPrimitiveNarrow.2.minified.js index f5c1830fa87f..898326399d6e 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveNarrow.2.minified.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveNarrow.2.minified.js @@ -1,7 +1,7 @@ //// [nonPrimitiveNarrow.ts] var a, b; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(a, function Narrow() { "use strict"; _class_call_check(this, Narrow); diff --git a/crates/swc/tests/tsc-references/nullAssignableToEveryType.1.normal.js b/crates/swc/tests/tsc-references/nullAssignableToEveryType.1.normal.js index 4d1ee4180023..898a5dd2dd98 100644 --- a/crates/swc/tests/tsc-references/nullAssignableToEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/nullAssignableToEveryType.1.normal.js @@ -1,5 +1,5 @@ //// [nullAssignableToEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nullAssignableToEveryType.2.minified.js b/crates/swc/tests/tsc-references/nullAssignableToEveryType.2.minified.js index d8ce69a6ba4d..8ce9404bc700 100644 --- a/crates/swc/tests/tsc-references/nullAssignableToEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/nullAssignableToEveryType.2.minified.js @@ -1,6 +1,6 @@ //// [nullAssignableToEveryType.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.1.normal.js b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.1.normal.js index e86b7c393c01..1d1aca6a7a81 100644 --- a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.1.normal.js +++ b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.1.normal.js @@ -1,6 +1,6 @@ //// [nullIsSubtypeOfEverythingButUndefined.ts] // null is a subtype of any other types except undefined -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var r0 = true ? null : null; var r0 = true ? null : null; var u; diff --git a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.2.minified.js b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.2.minified.js index 6be7c932b74a..e1d63def2dcb 100644 --- a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.2.minified.js +++ b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined.2.minified.js @@ -1,5 +1,5 @@ //// [nullIsSubtypeOfEverythingButUndefined.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).1.normal.js index 55e55ab7de88..94e6044f6cd0 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [nullishCoalescingOperatorInAsyncGenerator.ts] // https://github.com/microsoft/TypeScript/issues/37686 -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; function f(a) { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).2.minified.js index 65f070529304..b6bf83a46c4c 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es2015).2.minified.js @@ -1,2 +1,2 @@ //// [nullishCoalescingOperatorInAsyncGenerator.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).1.normal.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).1.normal.js index 1691a2f49c53..2c67a18f38cb 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).1.normal.js @@ -1,7 +1,7 @@ //// [nullishCoalescingOperatorInAsyncGenerator.ts] // https://github.com/microsoft/TypeScript/issues/37686 -import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f(a) { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).2.minified.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).2.minified.js index b5938de501d5..d2a2c684b2db 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator(target=es5).2.minified.js @@ -1,3 +1,3 @@ //// [nullishCoalescingOperatorInAsyncGenerator.ts] -import "@swc/helpers/src/_wrap_async_generator.mjs"; -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_wrap_async_generator"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.1.normal.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.1.normal.js index 24a7350eea0a..280bc60aad6d 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.1.normal.js @@ -1,7 +1,7 @@ //// [numericIndexerConstrainsPropertyDeclarations.ts] // String indexer types constrain the types of named properties in their containing type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.2.minified.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.2.minified.js index 5de6a41ec239..d0b9a607be3b 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations.2.minified.js @@ -1,3 +1,3 @@ //// [numericIndexerConstrainsPropertyDeclarations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.1.normal.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.1.normal.js index f85a12c7adbf..51a5c692fe52 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.1.normal.js @@ -1,8 +1,8 @@ //// [numericIndexerConstrainsPropertyDeclarations2.ts] // String indexer providing a constraint of a user defined type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.2.minified.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.2.minified.js index 60909141fe23..e322e33f81e7 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2.2.minified.js @@ -1,7 +1,7 @@ //// [numericIndexerConstrainsPropertyDeclarations2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/numericIndexingResults.1.normal.js b/crates/swc/tests/tsc-references/numericIndexingResults.1.normal.js index 0fa4726f879f..21a5b9f0de91 100644 --- a/crates/swc/tests/tsc-references/numericIndexingResults.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexingResults.1.normal.js @@ -1,5 +1,5 @@ //// [numericIndexingResults.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/numericIndexingResults.2.minified.js b/crates/swc/tests/tsc-references/numericIndexingResults.2.minified.js index 5c79cd3d6937..8ecc6a353372 100644 --- a/crates/swc/tests/tsc-references/numericIndexingResults.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexingResults.2.minified.js @@ -1,5 +1,5 @@ //// [numericIndexingResults.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c["1"], c["2"], c["3"], c[1], c[2], c[3], i["1"], i["2"], i["3"], i[1], i[2], i[3], a["1"], a["2"], a["3"], a[1], a[2], a[3]; var c, i, a, b = { 1: "", diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization.1.normal.js b/crates/swc/tests/tsc-references/objectLiteralNormalization.1.normal.js index 30a95f0a5a00..dac05014d2c4 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization.1.normal.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization.1.normal.js @@ -1,7 +1,7 @@ //// [objectLiteralNormalization.ts] // Object literals in unions are normalized upon widening -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var a1 = [ { a: 0 diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization.2.minified.js b/crates/swc/tests/tsc-references/objectLiteralNormalization.2.minified.js index 8f3ae8142d04..b0ad39064303 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization.2.minified.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization.2.minified.js @@ -1,6 +1,6 @@ //// [objectLiteralNormalization.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var a1 = { a: 0 }; diff --git a/crates/swc/tests/tsc-references/objectRest.1.normal.js b/crates/swc/tests/tsc-references/objectRest.1.normal.js index e0bc31bb141e..5f6ed3fb061b 100644 --- a/crates/swc/tests/tsc-references/objectRest.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest.1.normal.js @@ -1,8 +1,8 @@ //// [objectRest.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; var o = { a: 1, b: 'no' diff --git a/crates/swc/tests/tsc-references/objectRest.2.minified.js b/crates/swc/tests/tsc-references/objectRest.2.minified.js index 7f18fa47bcd8..972b6c1cbba2 100644 --- a/crates/swc/tests/tsc-references/objectRest.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest.2.minified.js @@ -1,9 +1,9 @@ //// [objectRest.ts] let nestedrest, complex; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key"; var _tmp, _o, o = { a: 1, b: 'no' diff --git a/crates/swc/tests/tsc-references/objectRest2.1.normal.js b/crates/swc/tests/tsc-references/objectRest2.1.normal.js index 8038e7b9fd60..2f05e3b2a756 100644 --- a/crates/swc/tests/tsc-references/objectRest2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest2.1.normal.js @@ -1,7 +1,7 @@ //// [objectRest2.ts] // test for #12203 -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function rootConnection(name) { return { resolve: function() { diff --git a/crates/swc/tests/tsc-references/objectRest2.2.minified.js b/crates/swc/tests/tsc-references/objectRest2.2.minified.js index 229b107a1dbe..d3e8862b27ad 100644 --- a/crates/swc/tests/tsc-references/objectRest2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest2.2.minified.js @@ -1,6 +1,6 @@ //// [objectRest2.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _async_to_generator(function*(context, args) { let { objects } = yield { objects: 12 diff --git a/crates/swc/tests/tsc-references/objectRestAssignment.1.normal.js b/crates/swc/tests/tsc-references/objectRestAssignment.1.normal.js index 3ce54873f8db..83f4a1d7022b 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment.1.normal.js @@ -1,7 +1,7 @@ //// [objectRestAssignment.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; let ka; let nested; let other; diff --git a/crates/swc/tests/tsc-references/objectRestAssignment.2.minified.js b/crates/swc/tests/tsc-references/objectRestAssignment.2.minified.js index 08604c80a671..9daff336fb1d 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment.2.minified.js @@ -1,8 +1,8 @@ //// [objectRestAssignment.ts] let ka, other, complex, overEmit; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; _object_without_properties(complex.x, [ "ka" ]), _object_without_properties(complex, [ diff --git a/crates/swc/tests/tsc-references/objectRestCatchES5.1.normal.js b/crates/swc/tests/tsc-references/objectRestCatchES5.1.normal.js index ecba78cf5464..34a6a0552bd2 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5.1.normal.js @@ -1,5 +1,5 @@ //// [objectRestCatchES5.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; var a = 1, b = 2; try {} catch (_param) { var a1 = _param.a, b1 = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestCatchES5.2.minified.js b/crates/swc/tests/tsc-references/objectRestCatchES5.2.minified.js index b58e825615cb..6dc1040f801b 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5.2.minified.js @@ -1,2 +1,2 @@ //// [objectRestCatchES5.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/objectRestForOf.1.normal.js b/crates/swc/tests/tsc-references/objectRestForOf.1.normal.js index 6e1b48cd245f..21de3918b534 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestForOf.1.normal.js @@ -1,7 +1,7 @@ //// [objectRestForOf.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; let array; for (let _ref of array){ var { x } = _ref, restOf = _object_without_properties(_ref, [ diff --git a/crates/swc/tests/tsc-references/objectRestForOf.2.minified.js b/crates/swc/tests/tsc-references/objectRestForOf.2.minified.js index bf721a827a11..7fb67cf05bc6 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestForOf.2.minified.js @@ -1,8 +1,8 @@ //// [objectRestForOf.ts] let array, xx; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; for (let _ref of array){ var _ref1, { x } = _ref; _object_without_properties(_ref, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameter.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameter.1.normal.js index 65df8a0f71da..be8b23b8e68a 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameter.1.normal.js @@ -1,5 +1,5 @@ //// [objectRestParameter.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function cloneAgain(_param) { var { a } = _param, clone = _object_without_properties(_param, [ "a" diff --git a/crates/swc/tests/tsc-references/objectRestParameter.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameter.2.minified.js index 3106178f544c..9f61d7b6a94f 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameter.2.minified.js @@ -1,5 +1,5 @@ //// [objectRestParameter.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function foobar(_param = {}) { var { bar ={} } = _param; _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameterES5.1.normal.js index 59979f072284..fcc52cc63560 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5.1.normal.js @@ -1,7 +1,7 @@ //// [objectRestParameterES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function cloneAgain(_param) { var a = _param.a, clone = _object_without_properties(_param, [ "a" diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameterES5.2.minified.js index 6339e141f2f2..29e605930bcb 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5.2.minified.js @@ -1,7 +1,7 @@ //// [objectRestParameterES5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function foobar() { var _param = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; _param.bar, _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestReadonly.1.normal.js b/crates/swc/tests/tsc-references/objectRestReadonly.1.normal.js index 5b326076a6ff..0deb4db728ba 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly.1.normal.js @@ -1,6 +1,6 @@ //// [objectRestReadonly.ts] // #23734 -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; var obj = { foo: "bar", baz: "qux", diff --git a/crates/swc/tests/tsc-references/objectRestReadonly.2.minified.js b/crates/swc/tests/tsc-references/objectRestReadonly.2.minified.js index 8c994bd2bd08..0eae6fd8a8f7 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly.2.minified.js @@ -1,5 +1,5 @@ //// [objectRestReadonly.ts] -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; var obj = { foo: "bar", baz: "qux", diff --git a/crates/swc/tests/tsc-references/objectSpread.1.normal.js b/crates/swc/tests/tsc-references/objectSpread.1.normal.js index bb2813ce3a31..d92d0d6c6b04 100644 --- a/crates/swc/tests/tsc-references/objectSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpread.1.normal.js @@ -1,8 +1,8 @@ //// [objectSpread.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var o = { a: 1, b: "no" diff --git a/crates/swc/tests/tsc-references/objectSpread.2.minified.js b/crates/swc/tests/tsc-references/objectSpread.2.minified.js index 2c8957d37222..87cff37d1f72 100644 --- a/crates/swc/tests/tsc-references/objectSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpread.2.minified.js @@ -1,8 +1,8 @@ //// [objectSpread.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_define_property.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_define_property"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var anything, o = { a: 1, b: "no" diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty.1.normal.js index da1a22342904..a83d5928d60f 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty.1.normal.js @@ -1,8 +1,8 @@ //// [objectSpreadComputedProperty.ts] // fixes #12200 -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; function f() { var n = 12; var m = 13; diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty.2.minified.js index 41689d491182..9e1735ff975b 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty.2.minified.js @@ -1,4 +1,4 @@ //// [objectSpreadComputedProperty.ts] -import "@swc/helpers/src/_define_property.mjs"; -import "@swc/helpers/src/_object_spread.mjs"; -import "@swc/helpers/src/_object_spread_props.mjs"; +import "@swc/helpers/_/_define_property"; +import "@swc/helpers/_/_object_spread"; +import "@swc/helpers/_/_object_spread_props"; diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature.1.normal.js index 3543f33e0234..74fdddf60ac8 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature.1.normal.js @@ -1,6 +1,6 @@ //// [objectSpreadIndexSignature.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var i = _object_spread_props(_object_spread({}, indexed1), { b: 11 }); diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature.2.minified.js index 86e11480dd35..f625fd63f26e 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature.2.minified.js @@ -1,6 +1,6 @@ //// [objectSpreadIndexSignature.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread_props(_object_spread({}, indexed1), { b: 11 })[101], _object_spread({}, indexed1, indexed2)[1001], indexed3 = _object_spread({}, b ? indexed3 : void 0), _object_spread({}, roindex).a = 0; diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.1.normal.js index fcba2421b1da..c08afed3cdfb 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.1.normal.js @@ -1,5 +1,5 @@ //// [objectSpreadRepeatedComplexity.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function f(cnd) { // Type is a union of 2^(n-1) members, where n is the number of spread objects return _object_spread({}, cnd[1] && cnd[2] && { diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.2.minified.js index eb9e81fc76f6..fe8adf95f376 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity.2.minified.js @@ -1,2 +1,2 @@ //// [objectSpreadRepeatedComplexity.ts] -import "@swc/helpers/src/_object_spread.mjs"; +import "@swc/helpers/_/_object_spread"; diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.1.normal.js index cf287e224b40..873b94d4337b 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.1.normal.js @@ -1,5 +1,5 @@ //// [objectSpreadRepeatedNullCheckPerf.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function parseWithSpread(config) { return _object_spread({}, config.a !== undefined && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.2.minified.js index a3ad342b2266..358e2ac1d0e3 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf.2.minified.js @@ -1,5 +1,5 @@ //// [objectSpreadRepeatedNullCheckPerf.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; !function(config) { _object_spread({}, void 0 !== config.a && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull.1.normal.js index 87dbe5e8d8cb..ce2c6205afd1 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull.1.normal.js @@ -1,6 +1,6 @@ //// [objectSpreadStrictNull.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; function f(definiteBoolean, definiteString, optionalString, optionalNumber, undefinedString, undefinedNumber) { // optional var optionalUnionStops = _object_spread({}, definiteBoolean, definiteString, optionalNumber); diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull.2.minified.js index 7da158976339..f81affe4530a 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull.2.minified.js @@ -1,6 +1,6 @@ //// [objectSpreadStrictNull.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread_props(_object_spread({}, { title: "The Matrix", yearReleased: 1999 diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.1.normal.js index 921fed35cc1b..73d0daa46722 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.1.normal.js @@ -1,7 +1,7 @@ //// [objectTypeHidingMembersOfExtendedObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.2.minified.js index 5af6f78ac66a..e7094d18a150 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject.2.minified.js @@ -1,7 +1,7 @@ //// [objectTypeHidingMembersOfExtendedObject.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var c, i, b, B = function(A) { "use strict"; _inherits(B, A); diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.1.normal.js index 7d00455c0a2b..005ad2efa0ec 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypeHidingMembersOfObject.ts] // all of these valueOf calls should return the type shown in the overriding signatures here -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.2.minified.js index 086d9afddaf4..ee788b9e80dd 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject.2.minified.js @@ -1,6 +1,6 @@ //// [objectTypeHidingMembersOfObject.ts] var c, i, b; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; c.valueOf(), i.valueOf(), ({ valueOf: function() {} }).valueOf(), b.valueOf(); diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.1.normal.js index fced2423364c..a9a1ba35769d 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.1.normal.js @@ -1,5 +1,5 @@ //// [objectTypeHidingMembersOfObjectAssignmentCompat.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var i; var o; o = i; // error diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.2.minified.js index 7ab33a29f2ce..24199df2d970 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypeHidingMembersOfObjectAssignmentCompat.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.1.normal.js index f0eb7823a75e..332ef7a869b7 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.1.normal.js @@ -1,5 +1,5 @@ //// [objectTypeHidingMembersOfObjectAssignmentCompat2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var i; var o; o = i; // error diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.2.minified.js index 3c57d104671a..71e66dec232b 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypeHidingMembersOfObjectAssignmentCompat2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypePropertyAccess.1.normal.js b/crates/swc/tests/tsc-references/objectTypePropertyAccess.1.normal.js index e70dbea004d8..bbd45a006112 100644 --- a/crates/swc/tests/tsc-references/objectTypePropertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypePropertyAccess.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypePropertyAccess.ts] // Index notation should resolve to the type of a declared property with that same name -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypePropertyAccess.2.minified.js b/crates/swc/tests/tsc-references/objectTypePropertyAccess.2.minified.js index 21ae3ae3744a..26f98ff427d5 100644 --- a/crates/swc/tests/tsc-references/objectTypePropertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypePropertyAccess.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypePropertyAccess.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.toString(), c.toString(), c.foo, c.foo, i.toString(), i.toString(), i.bar, i.bar; var c, i, a = { foo: "" diff --git a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.1.normal.js index df2f2faf0c8a..ff271187c279 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypeWithNumericProperty.ts] // no errors here -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.2.minified.js index 2f7652297fa3..ad7d5ae7e431 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypeWithNumericProperty.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c[1], c[1.1], c["1"], c["1.1"], i[1], i[1.1], i["1"], i["1.1"], a[1], a[1.1], a["1"], a["1.1"]; var c, i, a, b = { 1: 1, diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.1.normal.js index 6d6cfa8d676a..5649c5efae3e 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypeWithRecursiveWrappedProperty.ts] // Basic recursive type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.2.minified.js index ce8afb77aa13..87065574d37a 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypeWithRecursiveWrappedProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.1.normal.js index 70f045ffdf87..981898c8e09b 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypeWithRecursiveWrappedProperty2.ts] // Basic recursive type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.2.minified.js index 224f25de7bf3..7d77a4ac5b8a 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypeWithRecursiveWrappedProperty2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.1.normal.js index 947358cbd028..643e1647e929 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts] // Types with infinitely expanding recursive types are type checked nominally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.2.minified.js index 81fb02d048ec..398acac13a84 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.1.normal.js index 244488b55e5b..d25c24d6c39f 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.1.normal.js @@ -1,7 +1,7 @@ //// [objectTypeWithStringIndexerHidingObjectIndexer.ts] // object types can define string indexers that are more specific than the default 'any' that would be returned // no errors expected below -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var o = {}; var r = o[""]; // should be Object var C = function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.2.minified.js index 35acc30329a5..d4d60f0a541b 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypeWithStringIndexerHidingObjectIndexer.ts] var c, i, o2; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c[""], i[""], o2[""]; diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.1.normal.js index 1450ae3b29d4..6487d0413564 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.1.normal.js @@ -1,5 +1,5 @@ //// [objectTypeWithStringNamedPropertyOfIllegalCharacters.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.2.minified.js index 474ec8575cf3..1309b651e566 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters.2.minified.js @@ -1,5 +1,5 @@ //// [objectTypeWithStringNamedPropertyOfIllegalCharacters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c[" "], c[" "], c["a b"], c["~!@#$%^&*()_+{}|:'<>?/.,`"], i[" "], i[" "], i["a b"], i["~!@#$%^&*()_+{}|:'<>?/.,`"], a[" "], a[" "], a["a b"], a["~!@#$%^&*()_+{}|:'<>?/.,`"]; var c, i, a, b = { " ": 1, diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentity.1.normal.js index 2139f9d8d4f8..b0367de9492b 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentity.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentity.2.minified.js index 8459cca358a8..d0eb99bb6870 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentity.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentity2.1.normal.js index cfe23efd8b0d..d273b45aa9e2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity2.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentity2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentity2.2.minified.js index c08c8efec80f..a50015ca6488 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity2.2.minified.js @@ -1,6 +1,6 @@ //// [objectTypesIdentity2.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.1.normal.js index 78290ed9f815..54e324b61c99 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithCallSignatures.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.2.minified.js index 8b259a9ac41d..b58a5683b8e3 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithCallSignatures.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.1.normal.js index 287516205b6d..27950e40c9f8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithCallSignatures2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.2.minified.js index b8878a7c96ea..1b33f8b639c1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithCallSignatures2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.1.normal.js index 522ddd028fad..beb5f886ca14 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.2.minified.js index d274c65a8e4c..8411486e81af 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.1.normal.js index a9bf30cdd11a..686771cdf139 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithCallSignaturesWithOverloads.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.2.minified.js index 532bed134602..c5751c92985b 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithCallSignaturesWithOverloads.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.1.normal.js index ad8314d2b598..070a57f7448a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithConstructSignatures.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A(x) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.2.minified.js index b35356cab4d9..13ae84fa5010 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithConstructSignatures.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.1.normal.js index 17cd4f9fabd4..00b9e2797388 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithConstructSignatures2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.2.minified.js index dc36067eeedf..3a6640b1f5ae 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithConstructSignatures2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.1.normal.js index b642c8ba6493..89fc263d575c 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x, y) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.2.minified.js index a9fde6e4d923..7061b63e4942 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.1.normal.js index 6c84276f068c..16b97105ca6d 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericCallSignatures.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.2.minified.js index 2cdc67e4b5f2..332ca52852c8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignatures.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.1.normal.js index dd0dcb4597c0..9d5726ece42f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericCallSignatures2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.2.minified.js index e61079a7b65f..13cd522058d6 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignatures2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.1.normal.js index 4e8e907d6a93..24b9eaa3a441 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.2.minified.js index 8fe47521be6f..e717a1022e53 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.1.normal.js index 6bab7c6bf67a..419c78b53089 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.2.minified.js index 8b56e991e143..46bd3261d63b 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.1.normal.js index eb0073d3373e..a6b529f0a364 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var One = function One() { "use strict"; _class_call_check(this, One); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.2.minified.js index 4d01f11efd83..d36a1d1e7db8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.1.normal.js index f711de8a9540..1ad81760cca9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.2.minified.js index 072051eb6b3a..c433a282dbb1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.1.normal.js index 418525f3a2e5..770b08bd3d2d 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.2.minified.js index d782b2e4a8b6..f49466ab20e1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.1.normal.js index 10dbde05f44b..ac44e7d9a7b0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.2.minified.js index b722db2c7890..1db456652829 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.1.normal.js index aafb273feec1..4a8f6d0ea24d 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.2.minified.js index e1b0400bad52..72306cc33b74 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.1.normal.js index 79a46f489a02..1864e11f42a1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.2.minified.js index 5acc2b08be1b..187e80cd2baa 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.1.normal.js index 172a43f0568f..25c4cb790940 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.2.minified.js index e394adb9e837..9eaac3085510 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.1.normal.js index fd034771df35..a13f7ec180e8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.2.minified.js index 5522c314740f..47fdee583647 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.1.normal.js index a0a675f1fcbc..e0474b996e10 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.2.minified.js index 3a70055dbc4e..e709741b1d42 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.1.normal.js index 5538fe0fc3f5..aa6b1b452269 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x, y) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.2.minified.js index 7398511b54ac..9ffbf9d5105e 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.1.normal.js index 14a9666bd499..a08d3c82340b 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var One = function One() { "use strict"; _class_call_check(this, One); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.2.minified.js index 9ac92df2dcc9..c277b2fb7212 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.1.normal.js index 40960b3526d0..7b8d068c19b1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.2.minified.js index b0fa6fd603b6..0aa30b1c2bea 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.1.normal.js index 049192efe922..53c87401fc6b 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.2.minified.js index 4bf43b8e6746..fa2405b072f8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.1.normal.js index cd78e7d34922..8f89fc06e9e5 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.2.minified.js index 09960e69ba89..9b02978caa20 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.1.normal.js index 83b3e600cd51..e739d00dd12a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.2.minified.js index 562fe70379d7..ae65d7fc4ef6 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.1.normal.js index 053eccb49865..89552cf978f3 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x, y) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.2.minified.js index e6f6b8bb0d81..f7e14c59a314 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.1.normal.js index b86e54ec22c4..115760300134 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x, y) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.2.minified.js index b4e71a9f0b29..4605587449cd 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.1.normal.js index fb2dafb9bf91..add1b2bd6904 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.1.normal.js @@ -2,7 +2,7 @@ // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B(x, y) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.2.minified.js index 9664aff755d1..d1eb6925b2b0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.1.normal.js index 892bd4d6d205..ab8e58ae6ed0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithNumericIndexers1.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.2.minified.js index 6d0caa192bd9..464108a07562 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithNumericIndexers1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.1.normal.js index b913b180afa7..3591aac12c61 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithNumericIndexers2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.2.minified.js index 922c4bbc03aa..d564afeefbd5 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithNumericIndexers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.1.normal.js index a81adadf5206..3c069e21758e 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithNumericIndexers3.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.2.minified.js index 1a1a556cbcb7..522a3ecb96c1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithNumericIndexers3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.1.normal.js index e0e0bf9a3167..3d2c43d12d35 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithOptionality.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.2.minified.js index 8a35cf06aa3d..98da910131b7 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithOptionality.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.1.normal.js index 15f18233d9c8..399b0604d64f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithPrivates.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.2.minified.js index 72a7af3bad3e..addc3dcc2469 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.1.normal.js index 366c9beca84d..c74e18ac6d65 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithPrivates2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.2.minified.js index e276d575fd37..08e4fb5d5c05 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2.2.minified.js @@ -1,7 +1,7 @@ //// [objectTypesIdentityWithPrivates2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.1.normal.js index 5fde95d7a4af..3ec695a5bd76 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.1.normal.js @@ -1,7 +1,7 @@ //// [objectTypesIdentityWithPrivates3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.2.minified.js index 2daa8fbc0e08..b3fdb1ca0626 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithPrivates3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.1.normal.js index 971a5d181f8a..23e9f50e1631 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.1.normal.js @@ -1,6 +1,6 @@ //// [objectTypesIdentityWithPublics.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.2.minified.js index 17e8f7b9add3..49f0f9544df3 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics.2.minified.js @@ -1,2 +1,2 @@ //// [objectTypesIdentityWithPublics.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.1.normal.js index 01c6bd17c1d0..46cc3cb801df 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithStringIndexers.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.2.minified.js index 1a5fc604e4f4..0a1051abc7b2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithStringIndexers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.1.normal.js index f28975075664..a40375d6f7c9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.1.normal.js @@ -1,8 +1,8 @@ //// [objectTypesIdentityWithStringIndexers2.ts] // object types are identical structurally -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.2.minified.js index c8e9d6afc7dd..dd8ad8114423 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2.2.minified.js @@ -1,4 +1,4 @@ //// [objectTypesIdentityWithStringIndexers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/optionalBindingParameters1.1.normal.js b/crates/swc/tests/tsc-references/optionalBindingParameters1.1.normal.js index 5cde9250affe..dcc828aa918a 100644 --- a/crates/swc/tests/tsc-references/optionalBindingParameters1.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalBindingParameters1.1.normal.js @@ -1,5 +1,5 @@ //// [optionalBindingParameters1.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function foo(param) { var _param = _sliced_to_array(param, 3), x = _param[0], y = _param[1], z = _param[2]; } diff --git a/crates/swc/tests/tsc-references/optionalBindingParameters1.2.minified.js b/crates/swc/tests/tsc-references/optionalBindingParameters1.2.minified.js index 882c08b51247..445f07c2266c 100644 --- a/crates/swc/tests/tsc-references/optionalBindingParameters1.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalBindingParameters1.2.minified.js @@ -1,5 +1,5 @@ //// [optionalBindingParameters1.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function foo(param) { var _param = _sliced_to_array(param, 3); _param[0], _param[1], _param[2]; diff --git a/crates/swc/tests/tsc-references/optionalMethods.1.normal.js b/crates/swc/tests/tsc-references/optionalMethods.1.normal.js index 024e622e2a54..1c75680608e7 100644 --- a/crates/swc/tests/tsc-references/optionalMethods.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalMethods.1.normal.js @@ -1,7 +1,7 @@ //// [optionalMethods.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function test1(x) { x.a; x.b; diff --git a/crates/swc/tests/tsc-references/optionalMethods.2.minified.js b/crates/swc/tests/tsc-references/optionalMethods.2.minified.js index 579168dd558e..805b4f44b640 100644 --- a/crates/swc/tests/tsc-references/optionalMethods.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalMethods.2.minified.js @@ -1,4 +1,4 @@ //// [optionalMethods.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.1.normal.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.1.normal.js index a7ff2f5c07b3..05b15838ab87 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.1.normal.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.1.normal.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./b" ], function(require, exports, _interop_require_default, _b) { "use strict"; @@ -13,8 +13,7 @@ define([ enumerable: true, get: ()=>Foo }); - _interop_require_default = _interop_require_default.default; - _b = /*#__PURE__*/ _interop_require_default(_b); + _b = /*#__PURE__*/ _interop_require_default._(_b); class Foo { } (0, _b.default)(); @@ -23,8 +22,8 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_default", + "@swc/helpers/_/_interop_require_wildcard", "./a" ], function(require, exports, _interop_require_default, _interop_require_wildcard, _a) { "use strict"; @@ -35,14 +34,12 @@ define([ enumerable: true, get: ()=>foo }); - _interop_require_default = _interop_require_default.default; - _interop_require_wildcard = _interop_require_wildcard.default; - _a = /*#__PURE__*/ _interop_require_default(_a); + _a = /*#__PURE__*/ _interop_require_default._(_a); function foo() { new _a.default(); } // https://github.com/microsoft/TypeScript/issues/37429 new Promise((resolve, reject)=>require([ "./a" - ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); + ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard._(m)), reject)); }); diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.2.minified.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.2.minified.js index 5a7a010de3c9..dae178a47241 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.2.minified.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd.2.minified.js @@ -2,7 +2,7 @@ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", + "@swc/helpers/_/_interop_require_default", "./b" ], function(require, exports, _interop_require_default, _b) { "use strict"; @@ -11,7 +11,7 @@ define([ }), Object.defineProperty(exports, "default", { enumerable: !0, get: ()=>Foo - }), _b = (_interop_require_default = _interop_require_default.default)(_b); + }), _b = _interop_require_default._(_b); class Foo { } (0, _b.default)(); @@ -20,8 +20,8 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_default.mjs", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_default", + "@swc/helpers/_/_interop_require_wildcard", "./a" ], function(require, exports, _interop_require_default, _interop_require_wildcard, _a) { "use strict"; @@ -33,7 +33,7 @@ define([ }), Object.defineProperty(exports, "default", { enumerable: !0, get: ()=>foo - }), _interop_require_default = _interop_require_default.default, _interop_require_wildcard = _interop_require_wildcard.default, _a = _interop_require_default(_a), new Promise((resolve, reject)=>require([ + }), _a = _interop_require_default._(_a), new Promise((resolve, reject)=>require([ "./a" - ], (m)=>resolve(_interop_require_wildcard(m)), reject)); + ], (m)=>resolve(_interop_require_wildcard._(m)), reject)); }); diff --git a/crates/swc/tests/tsc-references/overloadResolution.1.normal.js b/crates/swc/tests/tsc-references/overloadResolution.1.normal.js index b12057d62da1..a3bcdf965dbc 100644 --- a/crates/swc/tests/tsc-references/overloadResolution.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolution.1.normal.js @@ -1,7 +1,7 @@ //// [overloadResolution.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolution.2.minified.js b/crates/swc/tests/tsc-references/overloadResolution.2.minified.js index d33123a63bbe..c981f735475b 100644 --- a/crates/swc/tests/tsc-references/overloadResolution.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolution.2.minified.js @@ -1,4 +1,4 @@ //// [overloadResolution.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.1.normal.js b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.1.normal.js index e36cc3be70fd..55ac80e0e3c1 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.1.normal.js @@ -1,7 +1,7 @@ //// [overloadResolutionClassConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.2.minified.js b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.2.minified.js index 59e56954ecfb..6eaf960353f2 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors.2.minified.js @@ -1,7 +1,7 @@ //// [overloadResolutionClassConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var fn1 = function fn1() { "use strict"; _class_call_check(this, fn1); diff --git a/crates/swc/tests/tsc-references/overloadResolutionConstructors.1.normal.js b/crates/swc/tests/tsc-references/overloadResolutionConstructors.1.normal.js index 28a33831b04c..913ddb4ff40f 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionConstructors.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolutionConstructors.1.normal.js @@ -1,7 +1,7 @@ //// [overloadResolutionConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolutionConstructors.2.minified.js b/crates/swc/tests/tsc-references/overloadResolutionConstructors.2.minified.js index be5eec0a66b2..440e04aec946 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionConstructors.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolutionConstructors.2.minified.js @@ -1,8 +1,8 @@ //// [overloadResolutionConstructors.ts] var fn1, fn2, fn3, fn4, fn5; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; new fn1(void 0), new fn1({}), new fn2(0, void 0), new fn2(0, ""), new fn2("", 0), new fn2("", 0), new fn3(3), new fn3("", 3, ""), new fn3(5, 5, 5), new fn3(4), new fn3("", "", ""), new fn3("", "", 3), new fn3(), new fn4("", 3), new fn4(3, ""), new fn4("", 3), new fn4(3, ""), new fn4("", 3), new fn4(3, ""), new fn4(3, void 0), new fn4("", null), new fn4(null, null), new fn4(!0, null), new fn4(null, !0), new fn5(function(n) { return n.toFixed(); }), new fn5(function(n) { diff --git a/crates/swc/tests/tsc-references/override10.1.normal.js b/crates/swc/tests/tsc-references/override10.1.normal.js index 1ab5113344dd..64e573c3591c 100644 --- a/crates/swc/tests/tsc-references/override10.1.normal.js +++ b/crates/swc/tests/tsc-references/override10.1.normal.js @@ -1,7 +1,7 @@ //// [override10.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/override10.2.minified.js b/crates/swc/tests/tsc-references/override10.2.minified.js index 19d3abf411b9..b52cfe50ff3e 100644 --- a/crates/swc/tests/tsc-references/override10.2.minified.js +++ b/crates/swc/tests/tsc-references/override10.2.minified.js @@ -1,4 +1,4 @@ //// [override10.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override15.1.normal.js b/crates/swc/tests/tsc-references/override15.1.normal.js index f4369a812d45..4d5420f2c8d4 100644 --- a/crates/swc/tests/tsc-references/override15.1.normal.js +++ b/crates/swc/tests/tsc-references/override15.1.normal.js @@ -1,7 +1,7 @@ //// [override15.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/override15.2.minified.js b/crates/swc/tests/tsc-references/override15.2.minified.js index 7f05ee79969d..574d884f4334 100644 --- a/crates/swc/tests/tsc-references/override15.2.minified.js +++ b/crates/swc/tests/tsc-references/override15.2.minified.js @@ -1,4 +1,4 @@ //// [override15.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override18(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/override18(target=es2015).1.normal.js index f6fb26a71bb8..cd34261d1516 100644 --- a/crates/swc/tests/tsc-references/override18(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/override18(target=es2015).1.normal.js @@ -1,5 +1,5 @@ //// [override18.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class A { constructor(){ _define_property(this, "foo", void 0); diff --git a/crates/swc/tests/tsc-references/override18(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/override18(target=es2015).2.minified.js index c911327c294b..a20eb1c15db4 100644 --- a/crates/swc/tests/tsc-references/override18(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/override18(target=es2015).2.minified.js @@ -1,2 +1,2 @@ //// [override18.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/override2.1.normal.js b/crates/swc/tests/tsc-references/override2.1.normal.js index eb858b5a7bfc..5d10c7fd55da 100644 --- a/crates/swc/tests/tsc-references/override2.1.normal.js +++ b/crates/swc/tests/tsc-references/override2.1.normal.js @@ -1,7 +1,7 @@ //// [override2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var AB = function AB() { "use strict"; _class_call_check(this, AB); diff --git a/crates/swc/tests/tsc-references/override2.2.minified.js b/crates/swc/tests/tsc-references/override2.2.minified.js index 1284f12e4608..09bd5fda1045 100644 --- a/crates/swc/tests/tsc-references/override2.2.minified.js +++ b/crates/swc/tests/tsc-references/override2.2.minified.js @@ -1,4 +1,4 @@ //// [override2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override3.1.normal.js b/crates/swc/tests/tsc-references/override3.1.normal.js index 862acd65d102..cd0f193c45ef 100644 --- a/crates/swc/tests/tsc-references/override3.1.normal.js +++ b/crates/swc/tests/tsc-references/override3.1.normal.js @@ -1,7 +1,7 @@ //// [override3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var DB = /*#__PURE__*/ function(B1) { "use strict"; _inherits(DB, B1); diff --git a/crates/swc/tests/tsc-references/override3.2.minified.js b/crates/swc/tests/tsc-references/override3.2.minified.js index 0d11f57b863a..1f9412732566 100644 --- a/crates/swc/tests/tsc-references/override3.2.minified.js +++ b/crates/swc/tests/tsc-references/override3.2.minified.js @@ -1,5 +1,5 @@ //// [override3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; B, D, D; diff --git a/crates/swc/tests/tsc-references/override4.1.normal.js b/crates/swc/tests/tsc-references/override4.1.normal.js index 88b282b2b8f9..dad2c8d447e5 100644 --- a/crates/swc/tests/tsc-references/override4.1.normal.js +++ b/crates/swc/tests/tsc-references/override4.1.normal.js @@ -1,7 +1,7 @@ //// [override4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = /*#__PURE__*/ function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override4.2.minified.js b/crates/swc/tests/tsc-references/override4.2.minified.js index 227a4dfe2e47..7fcf9c925b07 100644 --- a/crates/swc/tests/tsc-references/override4.2.minified.js +++ b/crates/swc/tests/tsc-references/override4.2.minified.js @@ -1,4 +1,4 @@ //// [override4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override6.1.normal.js b/crates/swc/tests/tsc-references/override6.1.normal.js index 390337905566..9ba6d62f0019 100644 --- a/crates/swc/tests/tsc-references/override6.1.normal.js +++ b/crates/swc/tests/tsc-references/override6.1.normal.js @@ -1,7 +1,7 @@ //// [override6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B(foo, bar) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/override6.2.minified.js b/crates/swc/tests/tsc-references/override6.2.minified.js index 76e2bbd60fbf..da934f545909 100644 --- a/crates/swc/tests/tsc-references/override6.2.minified.js +++ b/crates/swc/tests/tsc-references/override6.2.minified.js @@ -1,4 +1,4 @@ //// [override6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override8.1.normal.js b/crates/swc/tests/tsc-references/override8.1.normal.js index 3c01c49e5655..c7e68360af66 100644 --- a/crates/swc/tests/tsc-references/override8.1.normal.js +++ b/crates/swc/tests/tsc-references/override8.1.normal.js @@ -1,7 +1,7 @@ //// [override8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/override8.2.minified.js b/crates/swc/tests/tsc-references/override8.2.minified.js index 78cd811f3621..10485dad38b0 100644 --- a/crates/swc/tests/tsc-references/override8.2.minified.js +++ b/crates/swc/tests/tsc-references/override8.2.minified.js @@ -1,4 +1,4 @@ //// [override8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override_js1.1.normal.js b/crates/swc/tests/tsc-references/override_js1.1.normal.js index c024be7dd6ca..e2cc5ac4f793 100644 --- a/crates/swc/tests/tsc-references/override_js1.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js1.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = /*#__PURE__*/ function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js1.2.minified.js b/crates/swc/tests/tsc-references/override_js1.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/override_js1.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js1.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override_js2.1.normal.js b/crates/swc/tests/tsc-references/override_js2.1.normal.js index c024be7dd6ca..e2cc5ac4f793 100644 --- a/crates/swc/tests/tsc-references/override_js2.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js2.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = /*#__PURE__*/ function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js2.2.minified.js b/crates/swc/tests/tsc-references/override_js2.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/override_js2.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js2.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override_js3.1.normal.js b/crates/swc/tests/tsc-references/override_js3.1.normal.js index 01cb7a2874af..e6ad47c8695b 100644 --- a/crates/swc/tests/tsc-references/override_js3.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js3.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = /*#__PURE__*/ function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js3.2.minified.js b/crates/swc/tests/tsc-references/override_js3.2.minified.js index 4afd423ef037..f6f1ffc9131d 100644 --- a/crates/swc/tests/tsc-references/override_js3.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js3.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/override_js4.1.normal.js b/crates/swc/tests/tsc-references/override_js4.1.normal.js index bc13a26335bf..8bbfdeafb9ec 100644 --- a/crates/swc/tests/tsc-references/override_js4.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js4.1.normal.js @@ -1,8 +1,8 @@ //// [override_js4.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/override_js4.2.minified.js b/crates/swc/tests/tsc-references/override_js4.2.minified.js index d0128af9801b..03241959ec4f 100644 --- a/crates/swc/tests/tsc-references/override_js4.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js4.2.minified.js @@ -1,5 +1,5 @@ //// [override_js4.ts] //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.1.normal.js index c50c14c77bfc..d53f7b1e855c 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.1.normal.js @@ -1,5 +1,5 @@ //// [parameterInitializersForwardReferencing.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function left(a) { var b1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a, c1 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b1; a; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).1.normal.js index 003007f5d453..bab205711813 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [parameterInitializersForwardReferencing.2.ts] // https://github.com/microsoft/TypeScript/issues/36295 -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function a() {} function b(_param = a()) { var { b =a() } = _param, x = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).2.minified.js index 22b08209db84..0bfc8755087f 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es2015).2.minified.js @@ -1,2 +1,2 @@ //// [parameterInitializersForwardReferencing.2.ts] -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).1.normal.js index 13cf5e5693e3..f997315e6740 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).1.normal.js @@ -1,6 +1,6 @@ //// [parameterInitializersForwardReferencing.2.ts] // https://github.com/microsoft/TypeScript/issues/36295 -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; function a() {} function b() { var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : a(); diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).2.minified.js index 22b08209db84..0bfc8755087f 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [parameterInitializersForwardReferencing.2.ts] -import "@swc/helpers/src/_object_without_properties.mjs"; +import "@swc/helpers/_/_object_without_properties"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2.minified.js index 536630b69a09..db06bf095975 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2.minified.js @@ -1,2 +1,2 @@ //// [parameterInitializersForwardReferencing.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.1.normal.js index 223d04bb06da..6056fe565200 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.1.normal.js @@ -1,5 +1,5 @@ //// [parameterInitializersForwardReferencing1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var foo = ""; function f1() { var bar = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : foo; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.2.minified.js index 9e82aa7c50c8..e22487a6d2a6 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1.2.minified.js @@ -1,2 +1,2 @@ //// [parameterInitializersForwardReferencing1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.1.normal.js b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.1.normal.js index 5c595fd5b59f..9fe6db909bb1 100644 --- a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.1.normal.js +++ b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.1.normal.js @@ -1,5 +1,5 @@ //// [parametersWithNoAnnotationAreAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) { return x; } diff --git a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.2.minified.js b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.2.minified.js index 08d96154ca35..f204ee0d63a9 100644 --- a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.2.minified.js +++ b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny.2.minified.js @@ -1,2 +1,2 @@ //// [parametersWithNoAnnotationAreAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parser509546.1.normal.js b/crates/swc/tests/tsc-references/parser509546.1.normal.js index 9a6df50a2512..a5663f3b94e7 100644 --- a/crates/swc/tests/tsc-references/parser509546.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546.1.normal.js @@ -1,5 +1,5 @@ //// [parser509546.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546.2.minified.js b/crates/swc/tests/tsc-references/parser509546.2.minified.js index 9a6df50a2512..a5663f3b94e7 100644 --- a/crates/swc/tests/tsc-references/parser509546.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546.2.minified.js @@ -1,5 +1,5 @@ //// [parser509546.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_1.1.normal.js b/crates/swc/tests/tsc-references/parser509546_1.1.normal.js index 79057c03219b..1278057068ad 100644 --- a/crates/swc/tests/tsc-references/parser509546_1.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546_1.1.normal.js @@ -1,5 +1,5 @@ //// [parser509546_1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_1.2.minified.js b/crates/swc/tests/tsc-references/parser509546_1.2.minified.js index 79057c03219b..1278057068ad 100644 --- a/crates/swc/tests/tsc-references/parser509546_1.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546_1.2.minified.js @@ -1,5 +1,5 @@ //// [parser509546_1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_2.1.normal.js b/crates/swc/tests/tsc-references/parser509546_2.1.normal.js index 10189ae285f9..3d8938691fc5 100644 --- a/crates/swc/tests/tsc-references/parser509546_2.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546_2.1.normal.js @@ -1,6 +1,6 @@ //// [parser509546_2.ts] "use strict"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { _class_call_check(this, Logger); }; diff --git a/crates/swc/tests/tsc-references/parser509546_2.2.minified.js b/crates/swc/tests/tsc-references/parser509546_2.2.minified.js index 10189ae285f9..3d8938691fc5 100644 --- a/crates/swc/tests/tsc-references/parser509546_2.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546_2.2.minified.js @@ -1,6 +1,6 @@ //// [parser509546_2.ts] "use strict"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Logger = function Logger() { _class_call_check(this, Logger); }; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.1.normal.js index 0c8a17154462..be4885fc91ef 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic11.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = /*#__PURE__*/ function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.2.minified.js index 3690ec12eeb4..9322be395905 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic11.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.1.normal.js index cf10e5b4e0c2..dc5506350751 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic14.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = /*#__PURE__*/ function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.2.minified.js index f8fdaf3d5ae6..144358874753 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic14.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.1.normal.js index 68c4030b2278..e007d62e8b08 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.2.minified.js index 0e18eced61f1..7d1788a0f6a8 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.1.normal.js index aa269b9ad72f..49adf03030b2 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.2.minified.js index 46ad701de585..ccb6f1da33ac 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.1.normal.js index cd14c3145731..dec509048788 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.2.minified.js index d812732eafc6..c5040dfef1ec 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic4.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.1.normal.js index 21248fb4b623..c3e6577e9058 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.1.normal.js @@ -1,5 +1,5 @@ //// [parserAccessibilityAfterStatic5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.2.minified.js index 741b9862ba1a..d2d558d0301c 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5.2.minified.js @@ -1,2 +1,2 @@ //// [parserAccessibilityAfterStatic5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserAccessors1.1.normal.js b/crates/swc/tests/tsc-references/parserAccessors1.1.normal.js index 7acb00b18de4..6f788a8caaec 100644 --- a/crates/swc/tests/tsc-references/parserAccessors1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessors1.1.normal.js @@ -1,6 +1,6 @@ //// [parserAccessors1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserAccessors1.2.minified.js b/crates/swc/tests/tsc-references/parserAccessors1.2.minified.js index 372f55c8eadc..a2cf496a0fa4 100644 --- a/crates/swc/tests/tsc-references/parserAccessors1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessors1.2.minified.js @@ -1,3 +1,3 @@ //// [parserAccessors1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserAccessors2.1.normal.js b/crates/swc/tests/tsc-references/parserAccessors2.1.normal.js index e7d21a78748f..e66d589c03a3 100644 --- a/crates/swc/tests/tsc-references/parserAccessors2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessors2.1.normal.js @@ -1,6 +1,6 @@ //// [parserAccessors2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserAccessors2.2.minified.js b/crates/swc/tests/tsc-references/parserAccessors2.2.minified.js index 4f073a41ecc4..f7f7cdd832d4 100644 --- a/crates/swc/tests/tsc-references/parserAccessors2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessors2.2.minified.js @@ -1,3 +1,3 @@ //// [parserAccessors2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserAstSpans1.1.normal.js b/crates/swc/tests/tsc-references/parserAstSpans1.1.normal.js index d3bd390bb271..02eceb4da5a9 100644 --- a/crates/swc/tests/tsc-references/parserAstSpans1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAstSpans1.1.normal.js @@ -1,11 +1,11 @@ //// [parserAstSpans1.ts] -/** i1 is interface with properties*/ import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +/** i1 is interface with properties*/ import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var c1 = /*#__PURE__*/ function() { "use strict"; function c1() { diff --git a/crates/swc/tests/tsc-references/parserAstSpans1.2.minified.js b/crates/swc/tests/tsc-references/parserAstSpans1.2.minified.js index 58b9f6060363..a5ab3daf80e0 100644 --- a/crates/swc/tests/tsc-references/parserAstSpans1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAstSpans1.2.minified.js @@ -1,11 +1,11 @@ //// [parserAstSpans1.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i1_i, i2_i, i3_i, c1 = function() { "use strict"; function c1() { diff --git a/crates/swc/tests/tsc-references/parserClass1.1.normal.js b/crates/swc/tests/tsc-references/parserClass1.1.normal.js index a16a44e92313..86ab40967756 100644 --- a/crates/swc/tests/tsc-references/parserClass1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClass1.1.normal.js @@ -1,5 +1,5 @@ //// [parserClass1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var NullLogger = /*#__PURE__*/ function() { "use strict"; function NullLogger() { diff --git a/crates/swc/tests/tsc-references/parserClass1.2.minified.js b/crates/swc/tests/tsc-references/parserClass1.2.minified.js index 52e7c1ac9ea5..a70c7facab28 100644 --- a/crates/swc/tests/tsc-references/parserClass1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClass1.2.minified.js @@ -1,5 +1,5 @@ //// [parserClass1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var NullLogger = function() { "use strict"; function NullLogger() { diff --git a/crates/swc/tests/tsc-references/parserClass2.1.normal.js b/crates/swc/tests/tsc-references/parserClass2.1.normal.js index 208489d7cb8b..191514ce071d 100644 --- a/crates/swc/tests/tsc-references/parserClass2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClass2.1.normal.js @@ -1,5 +1,5 @@ //// [parserClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter); diff --git a/crates/swc/tests/tsc-references/parserClass2.2.minified.js b/crates/swc/tests/tsc-references/parserClass2.2.minified.js index 4f03d2fcebf8..9d83ba1b489f 100644 --- a/crates/swc/tests/tsc-references/parserClass2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClass2.2.minified.js @@ -1,5 +1,5 @@ //// [parserClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter), this.logger = logger, this._information = this.logger.information(); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration10.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration10.1.normal.js index 246f3f4c7635..73696ea41889 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration10.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration10.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration10.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration10.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration10.2.minified.js index 873182434b58..a234bee986b5 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration10.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration10.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration10.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration11.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration11.1.normal.js index 75a40b064af4..e62055371592 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration11.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration11.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration11.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration11.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration11.2.minified.js index ae5844578d8e..ee7d68c895bb 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration11.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration11.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration11.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration12.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration12.1.normal.js index c2c731dc1b16..1abb6528f0d1 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration12.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration12.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration12.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(a) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration12.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration12.2.minified.js index 4de3423db1a3..6b5ce39cdf47 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration12.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration12.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration12.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration13.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration13.1.normal.js index 659dac9d83ae..16034a9ba3c4 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration13.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration13.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration13.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration13.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration13.2.minified.js index 62b93bdd6f80..e0ca203c4e5c 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration13.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration13.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration13.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration14.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration14.1.normal.js index 8ef49f28a286..c2279e35619e 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration14.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration14.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration14.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration14.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration14.2.minified.js index 190c065f8627..fe583a61d05d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration14.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration14.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration14.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration15.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration15.1.normal.js index 0a2dd44ed544..ea972eed9cd3 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration15.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration15.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration15.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration15.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration15.2.minified.js index e265830a3768..9bfc41402123 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration15.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration15.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration15.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration16.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration16.1.normal.js index 6d6231c80de9..956c495a6d9b 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration16.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration16.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration16.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration16.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration16.2.minified.js index 4059a6e913eb..a41a9fa6d61c 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration16.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration16.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration16.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration19.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration19.1.normal.js index 6109449e0d07..355f3809cbe2 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration19.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration19.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration19.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration19.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration19.2.minified.js index bd48dbf69919..451677afd586 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration19.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration19.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration19.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration20.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration20.1.normal.js index c08db2359079..659cac5f9dfd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration20.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration20.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration20.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration20.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration20.2.minified.js index db727c418ec1..433988b63e76 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration20.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration20.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration20.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration21.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration21.1.normal.js index ee9facb9110e..d48c684d8a88 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration21.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration21.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration21.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration21.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration21.2.minified.js index 1b555400ec07..2f5e4c7cd9cb 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration21.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration21.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration21.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration22.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration22.1.normal.js index 843fc5aa3368..67d2b41aa8ff 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration22.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration22.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration22.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration22.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration22.2.minified.js index a6a9fd880a7c..bafde4958993 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration22.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration22.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration22.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration23.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration23.1.normal.js index 519adfe1fb40..bbcfce58c5c3 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration23.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration23.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration23.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C2 = function C2() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration23.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration23.2.minified.js index 48309fcc009b..fe63f4b7c6dc 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration23.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration23.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration23.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration25.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration25.1.normal.js index b833d9b7f288..73d0ad14e092 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration25.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration25.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration25.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration25.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration25.2.minified.js index 17a79dd74bc9..d8bbddfe725e 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration25.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration25.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration25.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration26.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration26.1.normal.js index 0d690cb98b48..8a9c13154872 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration26.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration26.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration26.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration26.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration26.2.minified.js index 64e691e4a900..c26094d1b125 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration26.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration26.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration26.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration8.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration8.1.normal.js index adb11a4cf8cd..c8c24c4235fc 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration8.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration8.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration8.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration8.2.minified.js index c9a070baed77..9445d09343b4 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration8.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration8.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration8.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration9.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration9.1.normal.js index a144550120e8..c8b7508f23b3 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration9.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration9.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclaration9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration9.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration9.2.minified.js index f57998533ece..31ab7c5f9ed0 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration9.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration9.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclaration9.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.1.normal.js index 69ddf888b621..097dbc9acbc3 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.1.normal.js @@ -1,5 +1,5 @@ //// [parserClassDeclarationIndexSignature1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.2.minified.js index 597a2243f883..1661860a5869 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1.2.minified.js @@ -1,2 +1,2 @@ //// [parserClassDeclarationIndexSignature1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration1.1.normal.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration1.1.normal.js index 51961a2a20c4..56835954371b 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration1.1.normal.js @@ -1,5 +1,5 @@ //// [parserConstructorDeclaration1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration1.2.minified.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration1.2.minified.js index 809373e1cb41..51c11364a5be 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration1.2.minified.js @@ -1,2 +1,2 @@ //// [parserConstructorDeclaration1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration5.1.normal.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration5.1.normal.js index 8cd5d5b220d3..340f892a543b 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration5.1.normal.js @@ -1,5 +1,5 @@ //// [parserConstructorDeclaration5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration5.2.minified.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration5.2.minified.js index c74670d038ad..97e08858a667 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration5.2.minified.js @@ -1,2 +1,2 @@ //// [parserConstructorDeclaration5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserES3Accessors1.1.normal.js b/crates/swc/tests/tsc-references/parserES3Accessors1.1.normal.js index e6c197d328d7..dca99425857b 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors1.1.normal.js @@ -1,6 +1,6 @@ //// [parserES3Accessors1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES3Accessors1.2.minified.js b/crates/swc/tests/tsc-references/parserES3Accessors1.2.minified.js index 0df65a27839e..a6ef5396cc0c 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors1.2.minified.js @@ -1,3 +1,3 @@ //// [parserES3Accessors1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserES3Accessors2.1.normal.js b/crates/swc/tests/tsc-references/parserES3Accessors2.1.normal.js index d36d298c8795..5455e852458d 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors2.1.normal.js @@ -1,6 +1,6 @@ //// [parserES3Accessors2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES3Accessors2.2.minified.js b/crates/swc/tests/tsc-references/parserES3Accessors2.2.minified.js index dc9da393ad26..4513785dbb35 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors2.2.minified.js @@ -1,3 +1,3 @@ //// [parserES3Accessors2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.1.normal.js index 1bfe6fae23df..b5157073d7fb 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.1.normal.js @@ -1,3 +1,3 @@ //// [parserES5ComputedPropertyName2.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var v = _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.2.minified.js index c208d38af298..70e839622477 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2.2.minified.js @@ -1,3 +1,3 @@ //// [parserES5ComputedPropertyName2.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.1.normal.js index 66b3910ab5fe..608d79ce786e 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.1.normal.js @@ -1,3 +1,3 @@ //// [parserES5ComputedPropertyName3.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; var v = _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.2.minified.js index a28e350f71ab..372b2c54be12 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3.2.minified.js @@ -1,3 +1,3 @@ //// [parserES5ComputedPropertyName3.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.1.normal.js index f7b936bd6d10..37eb5377eb95 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.1.normal.js @@ -1,4 +1,4 @@ //// [parserES5ComputedPropertyName4.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var _obj, _mutatorMap = {}; var v = (_obj = {}, _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].get = function() {}, _define_enumerable_properties(_obj, _mutatorMap), _obj); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.2.minified.js index d96d371b4545..305e1e8a141b 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4.2.minified.js @@ -1,4 +1,4 @@ //// [parserES5ComputedPropertyName4.ts] -import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import { _ as _define_enumerable_properties } from "@swc/helpers/_/_define_enumerable_properties"; var _mutatorMap = {}; _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].get = function() {}, _define_enumerable_properties({}, _mutatorMap); diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement11.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement11.1.normal.js index 737eb693f257..bd7c9f6a0194 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement11.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement11.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement11.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = X[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement11.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement11.2.minified.js index c254373f5904..91526ed655bc 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement11.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement11.2.minified.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement11.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = X[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0){ diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement14.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement14.1.normal.js index b72598c60494..2b58f08eda20 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement14.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement14.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement14.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = X[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement14.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement14.2.minified.js index bc3d0e2424b3..1aa155d9a891 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement14.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement14.2.minified.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement14.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = X[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0){ diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement15.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement15.1.normal.js index 861ff9dbd4eb..0844c3926e7d 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement15.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement15.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement15.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = X[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement15.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement15.2.minified.js index 7fdff0e79db7..cce679f6a347 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement15.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement15.2.minified.js @@ -1,5 +1,5 @@ //// [parserES5ForOfStatement15.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = X[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0){ diff --git a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.1.normal.js index 95d61da47dfd..5bb86d79b71e 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5SymbolIndexer2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.2.minified.js index 7314536477e1..db2ae3d84a69 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2.2.minified.js @@ -1,2 +1,2 @@ //// [parserES5SymbolIndexer2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty6.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty6.1.normal.js index 73e377534f96..0b98c7ef8035 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty6.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5SymbolProperty6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var prop; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty6.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty6.2.minified.js index 2b17e1c4e972..3adc41ef2eb5 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty6.2.minified.js @@ -1,2 +1,2 @@ //// [parserES5SymbolProperty6.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty7.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty7.1.normal.js index 9d7469ab808c..e4a3ff3d3c8d 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty7.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty7.1.normal.js @@ -1,5 +1,5 @@ //// [parserES5SymbolProperty7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty7.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty7.2.minified.js index 404f93bd4f47..bccbad8dd2e1 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty7.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty7.2.minified.js @@ -1,2 +1,2 @@ //// [parserES5SymbolProperty7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.1.normal.js b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.1.normal.js index 0caff3e62c55..8577b5c795e9 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.1.normal.js @@ -1,6 +1,6 @@ //// [parserErrorRecovery_IncompleteMemberVariable1.ts] // Interface -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; // Module var Shapes; (function(Shapes) { diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.2.minified.js b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.2.minified.js index d26a8d2ba12c..e8ec292f8a1b 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1.2.minified.js @@ -1,6 +1,6 @@ //// [parserErrorRecovery_IncompleteMemberVariable1.ts] var Shapes; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(Shapes) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.1.normal.js b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.1.normal.js index a75be839653b..84fb2ab35cb0 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.1.normal.js @@ -1,5 +1,5 @@ //// [parserErrorRecovery_ParameterList6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.2.minified.js b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.2.minified.js index ef0ad8bef466..b41680cb770c 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6.2.minified.js @@ -1,2 +1,2 @@ //// [parserErrorRecovery_ParameterList6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericClass1.1.normal.js b/crates/swc/tests/tsc-references/parserGenericClass1.1.normal.js index e05fdde5ac9f..2da39838be63 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericClass1.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericClass1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericClass1.2.minified.js b/crates/swc/tests/tsc-references/parserGenericClass1.2.minified.js index d4359fbf5cce..c690e6dd2020 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericClass1.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericClass1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericClass2.1.normal.js b/crates/swc/tests/tsc-references/parserGenericClass2.1.normal.js index 1ce09c10f94a..3078d186883c 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericClass2.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericClass2.2.minified.js b/crates/swc/tests/tsc-references/parserGenericClass2.2.minified.js index 881737b94a75..52860b336f42 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericClass2.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericClass2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint1.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint1.1.normal.js index 5cf88b596bb7..a39749a364c5 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint1.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint1.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint1.2.minified.js index db3fab5dba98..f94fb1a96011 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint1.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint2.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint2.1.normal.js index 00a2d0561492..456a82479486 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint2.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint2.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint2.2.minified.js index b1d04d7d11f3..6ccfd5bc9412 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint2.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint3.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint3.1.normal.js index e0042b7527ed..5040bc2b7e5f 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint3.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint3.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint3.2.minified.js index 0f49a908c99f..d667c6cc6d94 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint3.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint4.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint4.1.normal.js index e086fca81eb5..38607969dc91 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint4.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint4.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint4.2.minified.js index de321067e810..ba13ee1a87dd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint4.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint4.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint5.1.normal.js index bbf6850e11fa..40daccd0875d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint5.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint5.2.minified.js index dded86573ebd..3c49087b8c3f 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint5.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint6.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint6.1.normal.js index c2229f34127a..10aa342c18a0 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint6.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint6.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint6.2.minified.js index 225d13927775..c5612a9403c9 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint6.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint6.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint7.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint7.1.normal.js index 7836b27529c9..7a1b9079c79b 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint7.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint7.1.normal.js @@ -1,5 +1,5 @@ //// [parserGenericConstraint7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint7.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint7.2.minified.js index 51fad726187a..960fb3b2f013 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint7.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint7.2.minified.js @@ -1,2 +1,2 @@ //// [parserGenericConstraint7.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.1.normal.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.1.normal.js index bfb0b9a41e54..983d34115f7d 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.1.normal.js @@ -1,7 +1,7 @@ //// [parserGenericsInTypeContexts1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(A1) { "use strict"; _inherits(C, A1); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.2.minified.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.2.minified.js index b424739d5706..916410a37099 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1.2.minified.js @@ -1,5 +1,5 @@ //// [parserGenericsInTypeContexts1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; A; diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.1.normal.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.1.normal.js index 1fed1a2d94c8..bc8a491aa162 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.1.normal.js @@ -1,7 +1,7 @@ //// [parserGenericsInTypeContexts2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(A1) { "use strict"; _inherits(C, A1); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.2.minified.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.2.minified.js index 156552762ec8..9e9ba8280280 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2.2.minified.js @@ -1,5 +1,5 @@ //// [parserGenericsInTypeContexts2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; A; diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.1.normal.js index aab34fa9308b..f77d46898026 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.1.normal.js @@ -1,5 +1,5 @@ //// [parserIndexMemberDeclaration1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.2.minified.js index 9ed8b3d657fc..aea48c976fc8 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1.2.minified.js @@ -1,2 +1,2 @@ //// [parserIndexMemberDeclaration1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.1.normal.js index 89a3994ad9cd..0f5b86ee7350 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.1.normal.js @@ -1,5 +1,5 @@ //// [parserIndexMemberDeclaration2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.2.minified.js index 361d6af55503..cf9341e6843a 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2.2.minified.js @@ -1,2 +1,2 @@ //// [parserIndexMemberDeclaration2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.1.normal.js index b19158589246..cb290620794e 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.1.normal.js @@ -1,5 +1,5 @@ //// [parserIndexMemberDeclaration3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.2.minified.js index ad187c7ca824..7b01c8ba6f37 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3.2.minified.js @@ -1,2 +1,2 @@ //// [parserIndexMemberDeclaration3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.1.normal.js index a41dcdf32c4d..e8630a779ed0 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.1.normal.js @@ -1,5 +1,5 @@ //// [parserIndexMemberDeclaration4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.2.minified.js index 55deb894ccea..a80f5089da07 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4.2.minified.js @@ -1,2 +1,2 @@ //// [parserIndexMemberDeclaration4.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.1.normal.js index 8a7fad9622fd..9b97c0d3e56c 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.1.normal.js @@ -1,5 +1,5 @@ //// [parserIndexMemberDeclaration6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.2.minified.js index 7fd85fbddac1..d2a8f87e2255 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6.2.minified.js @@ -1,2 +1,2 @@ //// [parserIndexMemberDeclaration6.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessor1.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessor1.1.normal.js index 2598bedbd109..7612d2fe2dc7 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessor1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessor1.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessor1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessor1.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessor1.2.minified.js index d33cc0983108..6720cb19645a 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessor1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessor1.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessor1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.1.normal.js index 25643552b19a..b22dafd1ef2b 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.2.minified.js index cad0e2824828..e38384437380 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.1.normal.js index 6627bbf7457d..eafba154ecd8 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.2.minified.js index 4822cc97ca4b..f98ecc496871 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.1.normal.js index 3b1dfc780a1f..1b64e8e36d9c 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.2.minified.js index e090965cd79d..85288983731c 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.1.normal.js index 28ec3adfe5af..b75f35f648ce 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.2.minified.js index ae18a491b388..06b9907d4989 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.1.normal.js index fcff86397a13..a2bf58bc5190 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.2.minified.js index 29b5dc6d14fa..7f81d6f08fe4 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.1.normal.js index 78bcca29b19f..6757bc826ba3 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.1.normal.js @@ -1,6 +1,6 @@ //// [parserMemberAccessorDeclaration6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.2.minified.js index 8e75c3c4854c..7246a348e986 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6.2.minified.js @@ -1,3 +1,3 @@ //// [parserMemberAccessorDeclaration6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.1.normal.js b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.1.normal.js index 135ae817c6f7..c249845eaa8d 100644 --- a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.1.normal.js @@ -1,5 +1,5 @@ //// [parserMemberFunctionDeclarationAmbiguities1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.2.minified.js b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.2.minified.js index 3e7e08950321..b1667df6d4e2 100644 --- a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1.2.minified.js @@ -1,2 +1,2 @@ //// [parserMemberFunctionDeclarationAmbiguities1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.1.normal.js index 38586321d9f0..e2120c2a0ccc 100644 --- a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.1.normal.js @@ -1,5 +1,5 @@ //// [parserMemberVariableDeclaration5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.2.minified.js index 44e02dff91ee..67a6bed5af5d 100644 --- a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5.2.minified.js @@ -1,2 +1,2 @@ //// [parserMemberVariableDeclaration5.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserRealSource1.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource1.1.normal.js index 368fb4c991ff..66a8ae90ad6a 100644 --- a/crates/swc/tests/tsc-references/parserRealSource1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource1.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript) { var timeFunction = function timeFunction(logger, funcDescription, func) { diff --git a/crates/swc/tests/tsc-references/parserRealSource1.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource1.2.minified.js index fb3ad2991278..1f1c20693b93 100644 --- a/crates/swc/tests/tsc-references/parserRealSource1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource1.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource1.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript) { !function(CompilerDiagnostics) { var debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null; diff --git a/crates/swc/tests/tsc-references/parserRealSource12.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource12.1.normal.js index 61eb62dd6267..a90e9701d835 100644 --- a/crates/swc/tests/tsc-references/parserRealSource12.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource12.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript) { var getAstWalkerFactory = function getAstWalkerFactory() { diff --git a/crates/swc/tests/tsc-references/parserRealSource12.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource12.2.minified.js index 6114a71a2e74..eb2fc674c238 100644 --- a/crates/swc/tests/tsc-references/parserRealSource12.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource12.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource12.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript) { var globalAstWalkerFactory, ChildrenWalkers, AstWalkOptions = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserRealSource14.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource14.1.normal.js index c44dbfa379f2..506b68c722ce 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource14.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript1) { var lastOf = function lastOf(items) { diff --git a/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js index 35c70b712df4..ba17a9943ba6 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource14.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript1) { var GetAstPathOptions, GetAstPathOptions1, lastOf = function(items) { return null === items || 0 === items.length ? null : items[items.length - 1]; diff --git a/crates/swc/tests/tsc-references/parserRealSource5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource5.1.normal.js index a2ca1fadc2f0..3f6c1a3dc5f1 100644 --- a/crates/swc/tests/tsc-references/parserRealSource5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource5.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript) { var prePrintAST = function prePrintAST(ast, parent, walker) { diff --git a/crates/swc/tests/tsc-references/parserRealSource5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource5.2.minified.js index e292593705c7..ed379bb75ac9 100644 --- a/crates/swc/tests/tsc-references/parserRealSource5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource5.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource5.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript) { var PrintContext = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserRealSource6.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource6.1.normal.js index cc3749323873..cbeb58477e48 100644 --- a/crates/swc/tests/tsc-references/parserRealSource6.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource6.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript1) { var preFindMemberScope = function preFindMemberScope(ast, parent, walker) { diff --git a/crates/swc/tests/tsc-references/parserRealSource6.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource6.2.minified.js index f89f30e95e0d..9c6eaf4c3635 100644 --- a/crates/swc/tests/tsc-references/parserRealSource6.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource6.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource6.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript1) { var preFindEnclosingScope = function(ast, parent, walker) { var context = walker.state, minChar = ast.minChar, limChar = ast.limChar; diff --git a/crates/swc/tests/tsc-references/parserRealSource8.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource8.1.normal.js index 20bdb428a81b..0634bfd83bc3 100644 --- a/crates/swc/tests/tsc-references/parserRealSource8.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource8.1.normal.js @@ -2,7 +2,7 @@ // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var TypeScript; (function(TypeScript1) { var pushAssignScope = function pushAssignScope(scope, context, type, classType, fnc) { diff --git a/crates/swc/tests/tsc-references/parserRealSource8.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource8.2.minified.js index c9eab5ef3502..d7de2e816c26 100644 --- a/crates/swc/tests/tsc-references/parserRealSource8.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource8.2.minified.js @@ -1,6 +1,6 @@ //// [parserRealSource8.ts] var TypeScript; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(TypeScript1) { var pushAssignScope = function(scope, context, type, classType, fnc) { var chain = new ScopeChain(null, context.scopeChain, scope); diff --git a/crates/swc/tests/tsc-references/parserSuperExpression1.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression1.1.normal.js index bdfcc18bfc9f..08fea883cd7d 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression1.1.normal.js @@ -1,7 +1,7 @@ //// [parserSuperExpression1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression1.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression1.2.minified.js index b456af50de04..a19169fe2592 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression1.2.minified.js @@ -1,8 +1,8 @@ //// [parserSuperExpression1.ts] var M1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; !function(M1) { M1.M2 || (M1.M2 = {}); }(M1 || (M1 = {})); diff --git a/crates/swc/tests/tsc-references/parserSuperExpression3.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression3.1.normal.js index 83594c88e729..29385abce360 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression3.1.normal.js @@ -1,5 +1,5 @@ //// [parserSuperExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression3.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression3.2.minified.js index 94959f81b77a..e27395acbddf 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression3.2.minified.js @@ -1,2 +1,2 @@ //// [parserSuperExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserSuperExpression4.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression4.1.normal.js index 048efc608535..ac551899e4e7 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression4.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression4.1.normal.js @@ -1,7 +1,7 @@ //// [parserSuperExpression4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _set } from "@swc/helpers/_/_set"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression4.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression4.2.minified.js index 37dfb5ee29fb..4d936f12b8ac 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression4.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression4.2.minified.js @@ -1,8 +1,8 @@ //// [parserSuperExpression4.ts] var M1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _set } from "@swc/helpers/_/_set"; !function(M1) { M1.M2 || (M1.M2 = {}); }(M1 || (M1 = {})); diff --git a/crates/swc/tests/tsc-references/parserUnicode3.1.normal.js b/crates/swc/tests/tsc-references/parserUnicode3.1.normal.js index 383da71b3119..086cdfe1e892 100644 --- a/crates/swc/tests/tsc-references/parserUnicode3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserUnicode3.1.normal.js @@ -1,5 +1,5 @@ //// [parserUnicode3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var 剩下 = function 剩下() { "use strict"; _class_call_check(this, 剩下); diff --git a/crates/swc/tests/tsc-references/parserUnicode3.2.minified.js b/crates/swc/tests/tsc-references/parserUnicode3.2.minified.js index 43273245bc87..2c77702612ad 100644 --- a/crates/swc/tests/tsc-references/parserUnicode3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserUnicode3.2.minified.js @@ -1,2 +1,2 @@ //// [parserUnicode3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/parserindenter.1.normal.js b/crates/swc/tests/tsc-references/parserindenter.1.normal.js index ebcc4f5a71ec..3cbc4f144282 100644 --- a/crates/swc/tests/tsc-references/parserindenter.1.normal.js +++ b/crates/swc/tests/tsc-references/parserindenter.1.normal.js @@ -14,7 +14,7 @@ // limitations under the License. // /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Formatting; (function(Formatting) { var Indenter = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/parserindenter.2.minified.js b/crates/swc/tests/tsc-references/parserindenter.2.minified.js index 6c560d6dc418..8b6803461c5c 100644 --- a/crates/swc/tests/tsc-references/parserindenter.2.minified.js +++ b/crates/swc/tests/tsc-references/parserindenter.2.minified.js @@ -1,6 +1,6 @@ //// [parserindenter.ts] var Formatting; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(Formatting) { var Indenter = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.1.normal.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.1.normal.js index 601965d8ed54..b05718530e48 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.1.normal.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.1.normal.js @@ -1,7 +1,7 @@ //// [partiallyAnnotatedFunctionInferenceError.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.2.minified.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.2.minified.js index 33725a700ecf..e6b6bffbb615 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.2.minified.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError.2.minified.js @@ -1,5 +1,5 @@ //// [partiallyAnnotatedFunctionInferenceError.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; testError(function(t1, t2, t3) {}), testError(function(t1, t2, t3) {}), testError(function(t1, t2, t3) {}); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.1.normal.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.1.normal.js index cb8cbd52d985..a4d5d9af0bc6 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.1.normal.js @@ -1,7 +1,7 @@ //// [partiallyAnnotatedFunctionInferenceWithTypeParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.2.minified.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.2.minified.js index c7ec79b5d861..f94db4139fb4 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter.2.minified.js @@ -1,7 +1,7 @@ //// [partiallyAnnotatedFunctionInferenceWithTypeParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; test(function(t1, t2) { t2.test2; }), test(function(t1, t2) { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.1.normal.js index b84e95b8322a..a9924ee9a639 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.1.normal.js @@ -1,6 +1,6 @@ //// [plusOperatorWithBooleanType.ts] // + operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.2.minified.js index 056069c7d6c7..e9dd553269e5 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType.2.minified.js @@ -1,5 +1,5 @@ //// [plusOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithNumberType.1.normal.js index 21b06b2efd1c..bafe933b3643 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [plusOperatorWithNumberType.ts] // + operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/plusOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithNumberType.2.minified.js index 044a3b54bc4a..6aab4e93f65b 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [plusOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithStringType.1.normal.js index 369e63875778..59a53afdce8c 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithStringType.1.normal.js @@ -1,6 +1,6 @@ //// [plusOperatorWithStringType.ts] // + operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/plusOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithStringType.2.minified.js index af624160b034..75a51c84af1d 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithStringType.2.minified.js @@ -1,5 +1,5 @@ //// [plusOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/preserveValueImports_errors.1.normal.js b/crates/swc/tests/tsc-references/preserveValueImports_errors.1.normal.js index 12d91782802c..743bd57baa1a 100644 --- a/crates/swc/tests/tsc-references/preserveValueImports_errors.1.normal.js +++ b/crates/swc/tests/tsc-references/preserveValueImports_errors.1.normal.js @@ -2,7 +2,7 @@ //// [a.ts] export { }; //// [b.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/preserveValueImports_errors.2.minified.js b/crates/swc/tests/tsc-references/preserveValueImports_errors.2.minified.js index 24a7ad8d4dbc..3d60aa6fd871 100644 --- a/crates/swc/tests/tsc-references/preserveValueImports_errors.2.minified.js +++ b/crates/swc/tests/tsc-references/preserveValueImports_errors.2.minified.js @@ -2,7 +2,7 @@ //// [a.ts] export { }; //// [b.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [c.ts] export { }; //// [c.fixed.ts] diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.1.normal.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.1.normal.js index 8c68e4000589..c26f17a72b40 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.1.normal.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.1.normal.js @@ -1,7 +1,7 @@ //// [privateClassPropertyAccessibleWithinClass.ts] // no errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.2.minified.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.2.minified.js index df98b5814157..d6b558097731 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.2.minified.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass.2.minified.js @@ -1,3 +1,3 @@ //// [privateClassPropertyAccessibleWithinClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.1.normal.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.1.normal.js index 5d6753faa976..4bffec5dd791 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.1.normal.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.1.normal.js @@ -1,7 +1,7 @@ //// [privateClassPropertyAccessibleWithinNestedClass.ts] // no errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.2.minified.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.2.minified.js index 53358a3aeabc..b26d2ba132b7 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.2.minified.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass.2.minified.js @@ -1,3 +1,3 @@ //// [privateClassPropertyAccessibleWithinNestedClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/privateNameAccessors.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessors.1.normal.js index ccf844eb755e..d88c70006d95 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors.1.normal.js @@ -1,8 +1,8 @@ //// [privateNameAccessors.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _read_only_error from "@swc/helpers/src/_read_only_error.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _read_only_error } from "@swc/helpers/_/_read_only_error"; var _prop = /*#__PURE__*/ new WeakMap(), _roProp = /*#__PURE__*/ new WeakMap(); class A1 { constructor(name){ diff --git a/crates/swc/tests/tsc-references/privateNameAccessors.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessors.2.minified.js index ed79a214167b..2d387fb91110 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameAccessors.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_read_only_error.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_read_only_error"; diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.1.normal.js index f719d0bd9ed4..ac0a131c4cc7 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameAccessorsCallExpression.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap(); class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.2.minified.js index 857229e7e206..e9b166333fcc 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameAccessorsCallExpression.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.1.normal.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.1.normal.js index 1d20980369e3..16de41c18462 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.1.normal.js @@ -1,11 +1,11 @@ //// [privateNameAndObjectRestSpread.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var _prop = /*#__PURE__*/ new WeakMap(); class C { method(other) { diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.2.minified.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.2.minified.js index 65ca71deb934..42ebae646444 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread.2.minified.js @@ -1,8 +1,8 @@ //// [privateNameAndObjectRestSpread.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import "@swc/helpers/src/_extends.mjs"; -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import "@swc/helpers/src/_object_spread.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; +import "@swc/helpers/_/_extends"; +import "@swc/helpers/_/_object_destructuring_empty"; +import "@swc/helpers/_/_object_spread"; diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).1.normal.js index cc9948c52680..d8932abad828 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [privateNameAndStaticInitializer.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(), _prop = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).2.minified.js index c87d00d2ba45..58a377069920 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer(target=es2015).2.minified.js @@ -1,6 +1,6 @@ //// [privateNameAndStaticInitializer.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = new WeakMap(), _prop = new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference.1.normal.js b/crates/swc/tests/tsc-references/privateNameCircularReference.1.normal.js index 3a2e9b049126..e20366f7213a 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameCircularReference.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference.2.minified.js b/crates/swc/tests/tsc-references/privateNameCircularReference.2.minified.js index e032b63f4e63..9461ece6de5f 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameCircularReference.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.1.normal.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.1.normal.js index 9480417bbd6f..a66fb6bc054a 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameClassExpressionLoop.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; const array = []; for(let i = 0; i < 10; ++i){ var _myField, _method, _accessor, _C; diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.2.minified.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.2.minified.js index 0ac5cb828ead..8c8011993fd7 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop.2.minified.js @@ -1,7 +1,7 @@ //// [privateNameClassExpressionLoop.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; let array = []; for(let i = 0; i < 10; ++i){ var _myField, _method, _accessor; diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).1.normal.js index 133fe56ce0d4..15e4767280d0 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName1.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _c = /*#__PURE__*/ new WeakMap(), _d = /*#__PURE__*/ new WeakMap(), _e = /*#__PURE__*/ new WeakMap(); class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).2.minified.js index 6a6877a627bd..2ee5996c0dc9 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1(target=es2015).2.minified.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName1.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _a = new WeakMap(), _b = new WeakMap(), _c = new WeakMap(), _d = new WeakMap(), _e = new WeakMap(); new class { test() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).1.normal.js index 34c788379348..e6b17ec05b1c 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName2.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; let getX; var _x = /*#__PURE__*/ new WeakMap(); let _tmp = (getX = (a)=>_class_private_field_get(a, _x), "_"); diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).2.minified.js index 3c49d19ac1bb..5307e68a1f46 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2(target=es2015).2.minified.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName2.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _x = new WeakMap(); console.log(_class_private_field_get(new class { _() {} diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).1.normal.js index e5217a6f4187..ba9255a4ccfb 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName3.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _name = /*#__PURE__*/ new WeakMap(); class Foo { getValue(x) { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).2.minified.js index ffc387a1fe8d..b1774742619a 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3(target=es2015).2.minified.js @@ -1,7 +1,7 @@ //// [privateNameComputedPropertyName3.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _name = new WeakMap(); console.log(new class { getValue(x) { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).1.normal.js index 112ed8dbd51c..5d7f9d137859 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [privateNameComputedPropertyName4.ts] // https://github.com/microsoft/TypeScript/issues/44113 -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class C1 { ["bar"]() {} } diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).2.minified.js index bf19ce75f0c7..e6a1bbff2af6 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4(target=es2015).2.minified.js @@ -1,4 +1,4 @@ //// [privateNameComputedPropertyName4.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property(class { }, "bar", "test"); diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature.1.normal.js index cc4a0a9feca8..9dd6cabda4e8 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameConstructorSignature.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _x = /*#__PURE__*/ new WeakMap(); class C { static test() { diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature.2.minified.js index 5a1ab28ab344..d2308665e199 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameConstructorSignature.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclaration.1.normal.js index 67f641caf17b..7d2d5ed80490 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameDeclaration.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); class A { quux() {} diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclaration.2.minified.js index c5476740577a..1360e50f206b 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameDeclaration.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging.1.normal.js index 5d0ce6223f7f..80ac5e12db19 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameDeclarationMerging.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; class D { } var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging.2.minified.js index 0d4383f07d57..dd33580ec951 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameDeclarationMerging.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).1.normal.js b/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).1.normal.js index bc16daac7d2a..22bf837baaa7 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).1.normal.js @@ -1,8 +1,8 @@ //// [privateNameES5Ban.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _field = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _acc = /*#__PURE__*/ new WeakMap(); var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).2.minified.js b/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).2.minified.js index 0e498471a96c..12f711897b5f 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [privateNameES5Ban.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers.1.normal.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers.1.normal.js index 50ff3798a5d7..92f3ddae7142 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers.1.normal.js @@ -1,9 +1,9 @@ //// [privateNameEmitHelpers.ts] //// [main.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakSet(), _c = /*#__PURE__*/ new WeakMap(); export class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers.2.minified.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers.2.minified.js index 943250dd5788..ef3bb83fe96f 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers.2.minified.js @@ -1,9 +1,9 @@ //// [privateNameEmitHelpers.ts] //// [main.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _a = new WeakMap(), _b = new WeakSet(), _c = new WeakMap(); export class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameField.1.normal.js b/crates/swc/tests/tsc-references/privateNameField.1.normal.js index afdc6d3a0603..d877b2963989 100644 --- a/crates/swc/tests/tsc-references/privateNameField.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameField.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameField.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _name = /*#__PURE__*/ new WeakMap(); class A { constructor(name){ diff --git a/crates/swc/tests/tsc-references/privateNameField.2.minified.js b/crates/swc/tests/tsc-references/privateNameField.2.minified.js index e7e770f09852..76410d52d083 100644 --- a/crates/swc/tests/tsc-references/privateNameField.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameField.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameField.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAccess.1.normal.js index 1e0120c5ac51..70a76829949b 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameFieldAccess.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _myField = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAccess.2.minified.js index 732a184d5fb5..a81511b9b6cf 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameFieldAccess.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment.1.normal.js index 20a140255e9c..687e6b2e020c 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameFieldAssignment.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _field = /*#__PURE__*/ new WeakMap(); class A { static getInstance() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment.2.minified.js index 4ed175f40d08..4134aef505d9 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameFieldAssignment.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression.1.normal.js index dc8eac77709b..7c272bb63a77 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameFieldCallExpression.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap(); class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression.2.minified.js index 1b5331c29b48..3aff5bfd048a 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameFieldCallExpression.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression.1.normal.js index 9d0eef8bb38c..fc9cdb76a5af 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameFieldClassExpression.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap(); class B { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression.2.minified.js index b02ed0ac7402..b7f73eaecea1 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameFieldClassExpression.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).1.normal.js index ae226d591790..ec36669158c0 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [privateNameFieldDestructuredBinding.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_field_destructure } from "@swc/helpers/_/_class_private_field_destructure"; var _field = /*#__PURE__*/ new WeakMap(); class A { testObject() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).2.minified.js index 3f72896d52cf..1f059bf1645e 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldDestructuredBinding(target=es2015).2.minified.js @@ -1,4 +1,4 @@ //// [privateNameFieldDestructuredBinding.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_field_destructure.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_field_destructure"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer.1.normal.js index 6397495a450e..5f7270895923 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameFieldInitializer.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _field = /*#__PURE__*/ new WeakMap(), _uninitialized = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer.2.minified.js index 7781349fa68f..bedd9ae6f47d 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameFieldInitializer.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.1.normal.js index cd29c5171e6b..c22c20156cba 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.1.normal.js @@ -1,8 +1,8 @@ //// [privateNameFieldUnaryMutation.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_field_update from "@swc/helpers/src/_class_private_field_update.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_field_update } from "@swc/helpers/_/_class_private_field_update"; var _test = /*#__PURE__*/ new WeakMap(); class C { test() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.2.minified.js index 9bf9c5352020..f9c840d5291e 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameFieldUnaryMutation.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_field_update.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_field_update"; diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.1.normal.js index 783897474154..334394663f6e 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameInLhsReceiverExpression.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _y = /*#__PURE__*/ new WeakMap(); class Test { static something(obj) { diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.2.minified.js index cc0642be3265..c3fe23f40dcb 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameInLhsReceiverExpression.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper.1.normal.js b/crates/swc/tests/tsc-references/privateNameLateSuper.1.normal.js index 5a0231695df2..be850943c140 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameLateSuper.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; class B { } var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper.2.minified.js b/crates/swc/tests/tsc-references/privateNameLateSuper.2.minified.js index 1b297420120e..134b057ddc99 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper.2.minified.js @@ -1,2 +1,2 @@ //// [privateNameLateSuper.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; +import "@swc/helpers/_/_class_private_field_init"; diff --git a/crates/swc/tests/tsc-references/privateNameMethod.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethod.1.normal.js index fe6bad089a59..0e3a4517ac54 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethod.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameMethod.ts] -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _method = /*#__PURE__*/ new WeakSet(); class A1 { constructor(name){ diff --git a/crates/swc/tests/tsc-references/privateNameMethod.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethod.2.minified.js index b1c27075e0e7..4ec1cacefdd0 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethod.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameMethod.ts] -import "@swc/helpers/src/_class_private_method_get.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_private_method_get"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment.1.normal.js index d1c5e1813c4f..c3915fa2144f 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment.1.normal.js @@ -1,9 +1,9 @@ //// [privateNameMethodAssignment.ts] -import _class_private_field_update from "@swc/helpers/src/_class_private_field_update.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _read_only_error from "@swc/helpers/src/_read_only_error.mjs"; -import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; +import { _ as _class_private_field_update } from "@swc/helpers/_/_class_private_field_update"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _read_only_error } from "@swc/helpers/_/_read_only_error"; +import { _ as _class_private_field_destructure } from "@swc/helpers/_/_class_private_field_destructure"; var _method = /*#__PURE__*/ new WeakSet(); class A3 { constructor(a, b){ diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment.2.minified.js index 7981f1766bbc..8d0d67669769 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment.2.minified.js @@ -1,6 +1,6 @@ //// [privateNameMethodAssignment.ts] -import "@swc/helpers/src/_class_private_field_update.mjs"; -import "@swc/helpers/src/_class_private_method_get.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; -import "@swc/helpers/src/_read_only_error.mjs"; -import "@swc/helpers/src/_class_private_field_destructure.mjs"; +import "@swc/helpers/_/_class_private_field_update"; +import "@swc/helpers/_/_class_private_method_get"; +import "@swc/helpers/_/_class_private_method_init"; +import "@swc/helpers/_/_read_only_error"; +import "@swc/helpers/_/_class_private_field_destructure"; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAsync.1.normal.js index dd46c2ec8e19..913212028947 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameMethodAsync.ts] -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _bar, _baz, _qux, _class; const C = (_bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), _qux = /*#__PURE__*/ new WeakSet(), _class = class { async foo() { diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAsync.2.minified.js index 8c56298ca44a..28c0690bd3d8 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync.2.minified.js @@ -1,7 +1,7 @@ //// [privateNameMethodAsync.ts] var _bar, _baz, _qux; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; let C = (_bar = new WeakSet(), _baz = new WeakSet(), _qux = new WeakSet(), class { async foo() { let b = await _class_private_method_get(this, _bar, bar).call(this); diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression.1.normal.js index 28238644cc89..caa017d289a3 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameMethodCallExpression.ts] -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _method = /*#__PURE__*/ new WeakSet(), _method2 = /*#__PURE__*/ new WeakSet(); class AA { test() { diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression.2.minified.js index f93d90e9870b..8f20803827d8 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameMethodCallExpression.ts] -import "@swc/helpers/src/_class_private_method_get.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_private_method_get"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.1.normal.js index 9926b20bb794..4c79a799f9f1 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameMethodInStaticFieldInit.ts] -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _ref, _method = /*#__PURE__*/ new WeakSet(); class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.2.minified.js index 253dfb8070c4..c88fd5d21811 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit.2.minified.js @@ -1,6 +1,6 @@ //// [privateNameMethodInStaticFieldInit.ts] -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _ref, _method = new WeakSet(); class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.1.normal.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.1.normal.js index f46cc37a65c4..0af961d7695c 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameNestedClassNameConflict.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _foo = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.2.minified.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.2.minified.js index a657144b4e5f..87e2e579ef6e 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict.2.minified.js @@ -1,2 +1,2 @@ //// [privateNameNestedClassNameConflict.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; +import "@swc/helpers/_/_class_private_field_init"; diff --git a/crates/swc/tests/tsc-references/privateNameReadonly.1.normal.js b/crates/swc/tests/tsc-references/privateNameReadonly.1.normal.js index fe0e31874c75..59bd16ec6a13 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameReadonly.ts] -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _read_only_error from "@swc/helpers/src/_read_only_error.mjs"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _read_only_error } from "@swc/helpers/_/_read_only_error"; var _bar, _class; const C = (_bar = /*#__PURE__*/ new WeakSet(), _class = class { foo() { diff --git a/crates/swc/tests/tsc-references/privateNameReadonly.2.minified.js b/crates/swc/tests/tsc-references/privateNameReadonly.2.minified.js index c785fbc02f3f..6efdf0b8bddb 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly.2.minified.js @@ -1,7 +1,7 @@ //// [privateNameReadonly.ts] var _bar; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; -import _read_only_error from "@swc/helpers/src/_read_only_error.mjs"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; +import { _ as _read_only_error } from "@swc/helpers/_/_read_only_error"; let C = (_bar = new WeakSet(), class { foo() { console.log("should log this then throw"), _read_only_error("#bar"); diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.1.normal.js index 4bc1564836aa..d8b2138a4282 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameSetterExprReturnValue.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(); class C { bar() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.2.minified.js index eff5a50c519d..45e709bdd0ca 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue.2.minified.js @@ -1,6 +1,6 @@ //// [privateNameSetterExprReturnValue.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = new WeakMap(); function set_foo(a) {} new class { diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter.1.normal.js index 0256bb2e1b3d..4251171a65c0 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameSetterNoGetter.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _write_only_error from "@swc/helpers/src/_write_only_error.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _write_only_error } from "@swc/helpers/_/_write_only_error"; var _x, _class; const C = (_x = /*#__PURE__*/ new WeakMap(), _class = class { m() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter.2.minified.js index e792162bda9b..def7c93cf59d 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter.2.minified.js @@ -1,8 +1,8 @@ //// [privateNameSetterNoGetter.ts] var _x; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _write_only_error from "@swc/helpers/src/_write_only_error.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _write_only_error } from "@swc/helpers/_/_write_only_error"; let C = (_x = new WeakMap(), class { m() { _class_private_field_set(this, _x, _write_only_error("#x") + 2); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors.1.normal.js index 1b55971f56bb..dd97cdee8bad 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameStaticAccessors.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; class A1 { constructor(name){ _class_static_private_field_spec_set(A1, A1, _prop, ""); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors.2.minified.js index 37eaef57e78e..e7fcf826d9fb 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameStaticAccessors.ts] -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; +import "@swc/helpers/_/_class_static_private_field_spec_set"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.1.normal.js index c3d6c503a2ca..dc5c36db369d 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameStaticAccessorsCallExpression.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; class A { static test() { _class_static_private_field_spec_get(this, A, _fieldFunc).call(A); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.2.minified.js index 92197cae4d26..6b42ab520844 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression.2.minified.js @@ -1,6 +1,6 @@ //// [privateNameStaticAccessorsCallExpression.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; class A { static test() { _class_static_private_field_spec_get(this, A, _fieldFunc).call(A); diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.1.normal.js index 50bbf0995d30..161ac89835d3 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameStaticEmitHelpers.ts] //// [main.ts] -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; export class S { } var _c = { diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.2.minified.js index 211d3fffb7e8..5d0e69846b17 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers.2.minified.js @@ -1,7 +1,7 @@ //// [privateNameStaticEmitHelpers.ts] //// [main.ts] -import "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import "@swc/helpers/src/_class_static_private_method_get.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_set"; +import "@swc/helpers/_/_class_static_private_method_get"; export class S { } //// [tslib.d.ts] diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.1.normal.js index 02f512d4eb20..bb2cb763a4a6 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticFieldAccess.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class A { constructor(){ console.log(_class_static_private_field_spec_get(A, A, _myField)); //Ok diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.2.minified.js index aa1e2a1657ab..c1600f53be2d 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess.2.minified.js @@ -1,2 +1,2 @@ //// [privateNameStaticFieldAccess.ts] -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.1.normal.js index 203abb8ab832..7454d8ad2cbf 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.1.normal.js @@ -1,6 +1,6 @@ //// [privateNameStaticFieldAssignment.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; class A { static getClass() { return A; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.2.minified.js index de40523d2fa7..b58f51c3cde4 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment.2.minified.js @@ -1,3 +1,3 @@ //// [privateNameStaticFieldAssignment.ts] -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; +import "@swc/helpers/_/_class_static_private_field_spec_set"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.1.normal.js index 8a8fc9e061cb..11b16b455782 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticFieldCallExpression.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class A { test() { var _class_static_private_field_spec_get1; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.2.minified.js index 77d87956e0d3..46bbc6840b60 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression.2.minified.js @@ -1,2 +1,2 @@ //// [privateNameStaticFieldCallExpression.ts] -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.1.normal.js index 125b50525075..bf001eb5c625 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticFieldClassExpression.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; var _class, _Foo; class B { m() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.2.minified.js index 02648982b765..a07dd5bdc20c 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameStaticFieldClassExpression.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; class B { m() { console.log(_class_static_private_field_spec_get(B, B, _foo).test), _class_static_private_field_spec_get(B, B, _foo).test = 10, new (_class_static_private_field_spec_get(B, B, _foo))().field; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).1.normal.js index 3c1049489a69..9241309ea66d 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticFieldDestructuredBinding.ts] -import _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; +import { _ as _class_static_private_field_destructure } from "@swc/helpers/_/_class_static_private_field_destructure"; class A { testObject() { return { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).2.minified.js index d12c6d29d1d4..5e47076a894e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding(target=es2015).2.minified.js @@ -1,2 +1,2 @@ //// [privateNameStaticFieldDestructuredBinding.ts] -import "@swc/helpers/src/_class_static_private_field_destructure.mjs"; +import "@swc/helpers/_/_class_static_private_field_destructure"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.1.normal.js index ce693967de37..c4f1a109c153 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.1.normal.js @@ -1,7 +1,7 @@ //// [privateNameStaticFieldUnaryMutation.ts] -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import _class_static_private_field_update from "@swc/helpers/src/_class_static_private_field_update.mjs"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; +import { _ as _class_static_private_field_update } from "@swc/helpers/_/_class_static_private_field_update"; class C { test() { _class_static_private_field_update(this.getClass(), C, _test).value++; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.2.minified.js index a7b21b19287c..9f0e7c9ee8ec 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation.2.minified.js @@ -1,4 +1,4 @@ //// [privateNameStaticFieldUnaryMutation.ts] -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; -import "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import "@swc/helpers/src/_class_static_private_field_update.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; +import "@swc/helpers/_/_class_static_private_field_spec_set"; +import "@swc/helpers/_/_class_static_private_field_update"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethod.1.normal.js index ca809ca415a4..7a98d74c886b 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethod.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class A1 { constructor(){ _class_static_private_method_get(A1, A1, method).call(A1, ""); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethod.2.minified.js index 25fe6b166ed5..cd94ca456daa 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod.2.minified.js @@ -1,2 +1,2 @@ //// [privateNameStaticMethod.ts] -import "@swc/helpers/src/_class_static_private_method_get.mjs"; +import "@swc/helpers/_/_class_static_private_method_get"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.1.normal.js index 96f26d1e01b4..87fa0afef987 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.1.normal.js @@ -1,8 +1,8 @@ //// [privateNameStaticMethodAssignment.ts] -import _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import _class_static_private_field_update from "@swc/helpers/src/_class_static_private_field_update.mjs"; -import _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_field_spec_set } from "@swc/helpers/_/_class_static_private_field_spec_set"; +import { _ as _class_static_private_field_update } from "@swc/helpers/_/_class_static_private_field_update"; +import { _ as _class_static_private_field_destructure } from "@swc/helpers/_/_class_static_private_field_destructure"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class A3 { constructor(a, b){ _class_static_private_field_spec_set(A3, A3, _method, ()=>{} // Error, not writable diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.2.minified.js index c2edc7b9e47b..289bd5660f99 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethodAssignment.ts] -import "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; -import "@swc/helpers/src/_class_static_private_field_update.mjs"; -import "@swc/helpers/src/_class_static_private_field_destructure.mjs"; -import "@swc/helpers/src/_class_static_private_method_get.mjs"; +import "@swc/helpers/_/_class_static_private_field_spec_set"; +import "@swc/helpers/_/_class_static_private_field_update"; +import "@swc/helpers/_/_class_static_private_field_destructure"; +import "@swc/helpers/_/_class_static_private_method_get"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.1.normal.js index ba5f717e1fc6..a48198250a2a 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethodCallExpression.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class AA { test() { _class_static_private_method_get(AA, AA, method).call(AA); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.2.minified.js index cb276904c058..fdfb2ff37095 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethodCallExpression.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class AA { test() { _class_static_private_method_get(AA, AA, method).call(AA); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.1.normal.js index ca5257e73ea2..3eed20f1e0e4 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.1.normal.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethodInStaticFieldInit.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class C { } (()=>{ diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.2.minified.js index 5f458698e130..5c6d893db166 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit.2.minified.js @@ -1,5 +1,5 @@ //// [privateNameStaticMethodInStaticFieldInit.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class C { } C.s = _class_static_private_method_get(C, C, function() { diff --git a/crates/swc/tests/tsc-references/privateNameUnused.1.normal.js b/crates/swc/tests/tsc-references/privateNameUnused.1.normal.js index 110f54607648..f3fd4d5c35d5 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameUnused.1.normal.js @@ -1,9 +1,9 @@ //// [privateNameUnused.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _used = /*#__PURE__*/ new WeakMap(), _unused = /*#__PURE__*/ new WeakMap(); export class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameUnused.2.minified.js b/crates/swc/tests/tsc-references/privateNameUnused.2.minified.js index b26518a82c03..0e0f4e6cc380 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameUnused.2.minified.js @@ -1,9 +1,9 @@ //// [privateNameUnused.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _used = new WeakMap(), _unused = new WeakMap(); export class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).1.normal.js b/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).1.normal.js index 05947de3336c..771b3eec658b 100644 --- a/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).1.normal.js @@ -1,7 +1,7 @@ //// [privateNameWhenNotUseDefineForClassFieldsInEsNext.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _prop = /*#__PURE__*/ new WeakMap(), _ref; class TestWithStatics { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).2.minified.js b/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).2.minified.js index 45981bd41372..69dc2b02f451 100644 --- a/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).2.minified.js @@ -1,7 +1,7 @@ //// [privateNameWhenNotUseDefineForClassFieldsInEsNext.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _prop = new WeakMap(); class TestWithStatics { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndFields.1.normal.js index 44e071b51a2d..58d5d75b2abe 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields.1.normal.js @@ -1,6 +1,6 @@ //// [privateNamesAndFields.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _foo = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndFields.2.minified.js index a20c0b34a7b2..e2658622c7ba 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields.2.minified.js @@ -1,3 +1,3 @@ //// [privateNamesAndFields.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof.1.normal.js index d923b57a542a..f3dd880574a7 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof.1.normal.js @@ -1,7 +1,7 @@ //// [privateNamesAndkeyof.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _fooField = /*#__PURE__*/ new WeakMap(), _fooMethod = /*#__PURE__*/ new WeakSet(), _fooProp = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof.2.minified.js index 3bb21420ab7e..21732144a760 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof.2.minified.js @@ -1,4 +1,4 @@ //// [privateNamesAndkeyof.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.1.normal.js index 8c168e730451..6503116d3045 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.1.normal.js @@ -1,8 +1,8 @@ //// [privateNamesConstructorChain-1.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; var _foo = /*#__PURE__*/ new WeakMap(); class Parent { accessChildProps() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.2.minified.js index 374a506a2323..a05d0d430c94 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1.2.minified.js @@ -1,5 +1,5 @@ //// [privateNamesConstructorChain-1.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_static_private_field_spec_get"; diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.1.normal.js index b92a8dd1195c..4a528ba33388 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.1.normal.js @@ -1,8 +1,8 @@ //// [privateNamesConstructorChain-2.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; var _foo = /*#__PURE__*/ new WeakMap(); class Parent { accessChildProps() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.2.minified.js index 96dbd161a0a2..20add284b7eb 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2.2.minified.js @@ -1,8 +1,8 @@ //// [privateNamesConstructorChain-2.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_static_private_field_spec_get } from "@swc/helpers/_/_class_static_private_field_spec_get"; var _foo = new WeakMap(); class Parent { accessChildProps() { diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.1.normal.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.1.normal.js index 7e12da454bb4..51c1a6c9bd73 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.1.normal.js @@ -1,7 +1,7 @@ //// [privateNamesIncompatibleModifiersJs.js] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var /** * @public */ _a = /*#__PURE__*/ new WeakMap(), /** diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.2.minified.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.2.minified.js index 07a781082660..fcba1e38c6dd 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs.2.minified.js @@ -1,4 +1,4 @@ //// [privateNamesIncompatibleModifiersJs.js] -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-1.1.normal.js index 2c5d5ad19b54..cf9fed65082d 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1.1.normal.js @@ -1,5 +1,5 @@ //// [privateNamesUnique-1.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _foo = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-1.2.minified.js index a97c07fe14b1..9061e7974861 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1.2.minified.js @@ -1,5 +1,5 @@ //// [privateNamesUnique-1.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _foo1 = new WeakMap(); new class { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-2.1.normal.js index 1edc16630986..5fe1b6a33632 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2.1.normal.js @@ -1,6 +1,6 @@ //// [a.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _x = /*#__PURE__*/ new WeakMap(); export class Foo { copy(other) { @@ -14,7 +14,7 @@ export class Foo { } } //// [b.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _x = /*#__PURE__*/ new WeakMap(); export class Foo { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-2.2.minified.js index 0273c37e2e27..b8dbabdf5e49 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2.2.minified.js @@ -1,6 +1,6 @@ //// [a.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _x = new WeakMap(); export class Foo { copy(other) { @@ -14,7 +14,7 @@ export class Foo { } } //// [b.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _x = new WeakMap(); export class Foo { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-4.1.normal.js index 803a03381679..648549fcce03 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4.1.normal.js @@ -1,5 +1,5 @@ //// [privateNamesUnique-4.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; class A1 { } var _something = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-4.2.minified.js index 1122c205ba4b..e600e270f4a2 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4.2.minified.js @@ -1,3 +1,3 @@ //// [privateNamesUnique-4.ts] -import "@swc/helpers/src/_class_private_field_init.mjs"; +import "@swc/helpers/_/_class_private_field_init"; a; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-5.1.normal.js index ef76b7069689..85000afdc760 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5.1.normal.js @@ -1,6 +1,6 @@ //// [privateNamesUnique-5.ts] // same as privateNamesUnique-1, but with an interface -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _foo = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-5.2.minified.js index 0f9bd8793652..69352dc83d5c 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5.2.minified.js @@ -1,5 +1,5 @@ //// [privateNamesUnique-5.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; var _foo1 = new WeakMap(); new class { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.1.normal.js index f7175d8bfb74..24a8abb34fd3 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.1.normal.js @@ -1,9 +1,9 @@ //// [privateNamesUseBeforeDef.ts] -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _class_private_method_get from "@swc/helpers/src/_class_private_method_get.mjs"; -import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _class_private_method_get } from "@swc/helpers/_/_class_private_method_get"; +import { _ as _class_private_method_init } from "@swc/helpers/_/_class_private_method_init"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.2.minified.js index 176e815cb23b..f4f5aedbca5b 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef.2.minified.js @@ -1,6 +1,6 @@ //// [privateNamesUseBeforeDef.ts] -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; -import "@swc/helpers/src/_class_private_method_get.mjs"; -import "@swc/helpers/src/_class_private_method_init.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; +import "@swc/helpers/_/_class_private_method_get"; +import "@swc/helpers/_/_class_private_method_init"; diff --git a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.1.normal.js b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.1.normal.js index ef34bd7ada45..cbef8455060c 100644 --- a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.1.normal.js +++ b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.1.normal.js @@ -1,7 +1,7 @@ //// [privateProtectedMembersAreNotAccessibleDestructuring.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var K = /*#__PURE__*/ function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.2.minified.js b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.2.minified.js index e84bd6052695..35215081e54a 100644 --- a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.2.minified.js +++ b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring.2.minified.js @@ -1,7 +1,7 @@ //// [privateProtectedMembersAreNotAccessibleDestructuring.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var k = new (function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.1.normal.js b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.1.normal.js index bbffec8ca5f4..2d3c144eddec 100644 --- a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.1.normal.js @@ -1,7 +1,7 @@ //// [privateStaticMemberAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.2.minified.js b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.2.minified.js index 725e93941800..b75500b5beb3 100644 --- a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility.2.minified.js @@ -1,7 +1,7 @@ //// [privateStaticMemberAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing.1.normal.js index ad3f933322bb..6c26305db961 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing.1.normal.js @@ -1,5 +1,5 @@ //// [privateStaticNameShadowing.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class X { constructor(){ _class_static_private_method_get(X, X, m).call(X); diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing.2.minified.js index af1c6fc70756..c52710c8d38a 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing.2.minified.js @@ -1,5 +1,5 @@ //// [privateStaticNameShadowing.ts] -import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import { _ as _class_static_private_method_get } from "@swc/helpers/_/_class_static_private_method_get"; class X { constructor(){ _class_static_private_method_get(X, X, m).call(X); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.1.normal.js index a4f1c1248de6..06e8d0c8c2fa 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.1.normal.js @@ -1,6 +1,6 @@ //// [privateStaticNotAccessibleInClodule.ts] // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.2.minified.js index 4817ebc969e5..9b64c3c80e46 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule.2.minified.js @@ -1,5 +1,5 @@ //// [privateStaticNotAccessibleInClodule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.1.normal.js index 07d5426cb9e3..8310233efe87 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.1.normal.js @@ -1,8 +1,8 @@ //// [privateStaticNotAccessibleInClodule2.ts] // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.2.minified.js index 455ff876a23c..3992cfe7a843 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2.2.minified.js @@ -1,7 +1,7 @@ //// [privateStaticNotAccessibleInClodule2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var D = function(C) { "use strict"; _inherits(D, C); diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.1.normal.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.1.normal.js index f87567d1d0f5..4bb5b855faf5 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.1.normal.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.1.normal.js @@ -1,10 +1,10 @@ //// [privateWriteOnlyAccessorRead.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _write_only_error from "@swc/helpers/src/_write_only_error.mjs"; -import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _write_only_error } from "@swc/helpers/_/_write_only_error"; +import { _ as _class_private_field_destructure } from "@swc/helpers/_/_class_private_field_destructure"; var _value = /*#__PURE__*/ new WeakMap(), _valueRest = /*#__PURE__*/ new WeakMap(), _valueOne = /*#__PURE__*/ new WeakMap(), _valueCompound = /*#__PURE__*/ new WeakMap(); class Test { m() { diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.2.minified.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.2.minified.js index 62142f03dd77..f56e579b1e87 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.2.minified.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead.2.minified.js @@ -1,10 +1,10 @@ //// [privateWriteOnlyAccessorRead.ts] -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _write_only_error from "@swc/helpers/src/_write_only_error.mjs"; -import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _write_only_error } from "@swc/helpers/_/_write_only_error"; +import { _ as _class_private_field_destructure } from "@swc/helpers/_/_class_private_field_destructure"; var _value = new WeakMap(), _valueRest = new WeakMap(), _valueOne = new WeakMap(), _valueCompound = new WeakMap(); function set_value(v) {} function set_valueRest(v) {} diff --git a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.1.normal.js b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.1.normal.js index 7f8f07245093..cb0066e3a1f0 100644 --- a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.1.normal.js @@ -4,7 +4,7 @@ * @template V * @param {string} ik * @param {V} iv - */ import _define_property from "@swc/helpers/src/_define_property.mjs"; + */ import { _ as _define_property } from "@swc/helpers/_/_define_property"; function Multimap(ik, iv) { /** @type {{ [s: string]: V }} */ this._map = {}; // without type annotation diff --git a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.2.minified.js b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.2.minified.js index 93037ea0de0b..2bc48b8b8d74 100644 --- a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions.2.minified.js @@ -1,5 +1,5 @@ //// [propertiesOfGenericConstructorFunctions.js] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function Multimap(ik, iv) { this._map = {}, this._map2 = _define_property({}, ik, iv); } diff --git a/crates/swc/tests/tsc-references/propertyAccess.1.normal.js b/crates/swc/tests/tsc-references/propertyAccess.1.normal.js index 651d5ef1ac1c..9ae4d7bc8e19 100644 --- a/crates/swc/tests/tsc-references/propertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccess.1.normal.js @@ -1,7 +1,7 @@ //// [propertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/propertyAccess.2.minified.js b/crates/swc/tests/tsc-references/propertyAccess.2.minified.js index 79a912ebb5d0..b57a840eaef7 100644 --- a/crates/swc/tests/tsc-references/propertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccess.2.minified.js @@ -1,7 +1,7 @@ //// [propertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(Compass) { Compass[Compass.North = 0] = "North", Compass[Compass.South = 1] = "South", Compass[Compass.East = 2] = "East", Compass[Compass.West = 3] = "West"; }(Compass || (Compass = {})); diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.1.normal.js index 85d9a72a3b30..bc4563f68aab 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.1.normal.js @@ -1,7 +1,7 @@ //// [propertyAccessOnTypeParameterWithConstraints.ts] // generic types should behave as if they have properties of their constraint type // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.2.minified.js index 4901dbfcbb34..a28e4c97eb0e 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints.2.minified.js @@ -1,6 +1,6 @@ //// [propertyAccessOnTypeParameterWithConstraints.ts] var i, a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.1.normal.js index e4df299c51d6..8e3ac7ef2c00 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.1.normal.js @@ -1,8 +1,8 @@ //// [propertyAccessOnTypeParameterWithConstraints2.ts] // generic types should behave as if they have properties of their constraint type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.2.minified.js index 0791e91efe48..aadac7f95b4e 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2.2.minified.js @@ -1,7 +1,7 @@ //// [propertyAccessOnTypeParameterWithConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i, a, B = function(A) { "use strict"; _inherits(B, A); diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.1.normal.js index a3a5f92fad97..df519257a56e 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.1.normal.js @@ -1,8 +1,8 @@ //// [propertyAccessOnTypeParameterWithConstraints3.ts] // generic types should behave as if they have properties of their constraint type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.2.minified.js index 85bb662ec342..89f6ceb98873 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3.2.minified.js @@ -1,7 +1,7 @@ //// [propertyAccessOnTypeParameterWithConstraints3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i, a, B = function(A) { "use strict"; _inherits(B, A); diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.1.normal.js index 7d2428932f82..39b5d3a10791 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.1.normal.js @@ -1,5 +1,5 @@ //// [propertyAccessOnTypeParameterWithConstraints4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.2.minified.js index d14b78ac7d5b..bbb916741485 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4.2.minified.js @@ -1,5 +1,5 @@ //// [propertyAccessOnTypeParameterWithConstraints4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.1.normal.js index 58e11edc9eb1..58a6269cc7c4 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.1.normal.js @@ -1,7 +1,7 @@ //// [propertyAccessOnTypeParameterWithConstraints5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.2.minified.js index 4e3e93ccf9d1..b548b83182a2 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5.2.minified.js @@ -1,7 +1,7 @@ //// [propertyAccessOnTypeParameterWithConstraints5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i, a, B = function(A) { "use strict"; _inherits(B, A); diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.1.normal.js index f6540803f83c..2b7194c6ba1c 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.1.normal.js @@ -1,5 +1,5 @@ //// [propertyAccessOnTypeParameterWithoutConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.2.minified.js index 98a69422059e..cec683b96857 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints.2.minified.js @@ -1,6 +1,6 @@ //// [propertyAccessOnTypeParameterWithoutConstraints.ts] var i, a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.1.normal.js b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.1.normal.js index 1ebd7022a75b..96f78d702249 100644 --- a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.1.normal.js @@ -1,6 +1,6 @@ //// [propertyAndAccessorWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.2.minified.js b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.2.minified.js index d1ae4670fa69..a10348d6ed63 100644 --- a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName.2.minified.js @@ -1,3 +1,3 @@ //// [propertyAndAccessorWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.1.normal.js b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.1.normal.js index 258d27b01e64..0a64a59ff4ea 100644 --- a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.1.normal.js @@ -1,5 +1,5 @@ //// [propertyAndFunctionWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.2.minified.js b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.2.minified.js index 3a49b8f084a2..8ed0132ace24 100644 --- a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName.2.minified.js @@ -1,2 +1,2 @@ //// [propertyAndFunctionWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.1.normal.js b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.1.normal.js index 01fef0484bf8..d1ec84e3bec8 100644 --- a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.1.normal.js @@ -1,5 +1,5 @@ //// [propertyNameWithoutTypeAnnotation.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.2.minified.js b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.2.minified.js index 48b5bf95dbfa..ce9ff3d822dc 100644 --- a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation.2.minified.js @@ -1,6 +1,6 @@ //// [propertyNameWithoutTypeAnnotation.ts] var a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamedPrototype.1.normal.js b/crates/swc/tests/tsc-references/propertyNamedPrototype.1.normal.js index 208bab99ca84..ca071ec14da5 100644 --- a/crates/swc/tests/tsc-references/propertyNamedPrototype.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNamedPrototype.1.normal.js @@ -1,5 +1,5 @@ //// [propertyNamedPrototype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamedPrototype.2.minified.js b/crates/swc/tests/tsc-references/propertyNamedPrototype.2.minified.js index ba4df56e6c7d..b67451e42c35 100644 --- a/crates/swc/tests/tsc-references/propertyNamedPrototype.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNamedPrototype.2.minified.js @@ -1,2 +1,2 @@ //// [propertyNamedPrototype.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.1.normal.js b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.1.normal.js index 5f60a9e27dd9..b5bb241e4fca 100644 --- a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.1.normal.js @@ -1,5 +1,5 @@ //// [propertyNamesOfReservedWords.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.2.minified.js b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.2.minified.js index 8984729776e2..77c02547ab8b 100644 --- a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords.2.minified.js @@ -1,6 +1,6 @@ //// [propertyNamesOfReservedWords.ts] var c, i, a, E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.abstract, c.as, i.abstract, i.as, a.abstract, a.as, function(E) { E[E.abstract = 0] = "abstract", E[E.as = 1] = "as", E[E.boolean = 2] = "boolean", E[E.break = 3] = "break", E[E.byte = 4] = "byte", E[E.case = 5] = "case", E[E.catch = 6] = "catch", E[E.char = 7] = "char", E[E.class = 8] = "class", E[E.continue = 9] = "continue", E[E.const = 10] = "const", E[E.debugger = 11] = "debugger", E[E.default = 12] = "default", E[E.delete = 13] = "delete", E[E.do = 14] = "do", E[E.double = 15] = "double", E[E.else = 16] = "else", E[E.enum = 17] = "enum", E[E.export = 18] = "export", E[E.extends = 19] = "extends", E[E.false = 20] = "false", E[E.final = 21] = "final", E[E.finally = 22] = "finally", E[E.float = 23] = "float", E[E.for = 24] = "for", E[E.function = 25] = "function", E[E.goto = 26] = "goto", E[E.if = 27] = "if", E[E.implements = 28] = "implements", E[E.import = 29] = "import", E[E.in = 30] = "in", E[E.instanceof = 31] = "instanceof", E[E.int = 32] = "int", E[E.interface = 33] = "interface", E[E.is = 34] = "is", E[E.long = 35] = "long", E[E.namespace = 36] = "namespace", E[E.native = 37] = "native", E[E.new = 38] = "new", E[E.null = 39] = "null", E[E.package = 40] = "package", E[E.private = 41] = "private", E[E.protected = 42] = "protected", E[E.public = 43] = "public", E[E.return = 44] = "return", E[E.short = 45] = "short", E[E.static = 46] = "static", E[E.super = 47] = "super", E[E.switch = 48] = "switch", E[E.synchronized = 49] = "synchronized", E[E.this = 50] = "this", E[E.throw = 51] = "throw", E[E.throws = 52] = "throws", E[E.transient = 53] = "transient", E[E.true = 54] = "true", E[E.try = 55] = "try", E[E.typeof = 56] = "typeof", E[E.use = 57] = "use", E[E.var = 58] = "var", E[E.void = 59] = "void", E[E.volatile = 60] = "volatile", E[E.while = 61] = "while", E[E.with = 62] = "with"; }(E || (E = {})), E.abstract, E.as; diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors.1.normal.js index f64ae1209836..402898b04f60 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors.1.normal.js @@ -1,5 +1,5 @@ //// [propertyOverridesAccessors.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; class A { get p() { return 'oh no'; diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors.2.minified.js index 4c2d1bb4d70f..fc698891af7d 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors.2.minified.js @@ -1,2 +1,2 @@ //// [propertyOverridesAccessors.ts] -import "@swc/helpers/src/_define_property.mjs"; +import "@swc/helpers/_/_define_property"; diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors4.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors4.1.normal.js index 787edef864d5..13a20fb3d541 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors4.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors4.1.normal.js @@ -1,9 +1,9 @@ //// [propertyOverridesAccessors4.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Lion = /*#__PURE__*/ function(Animal1) { "use strict"; _inherits(Lion, Animal1); diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors4.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors4.2.minified.js index 4a713bd24675..c0a628a01719 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors4.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors4.2.minified.js @@ -1,7 +1,7 @@ //// [propertyOverridesAccessors4.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Animal; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.1.normal.js index 6e30be8d86e4..f09b3df9d141 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.1.normal.js @@ -1,7 +1,7 @@ //// [protectedClassPropertyAccessibleWithinClass.ts] // no errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.2.minified.js index 8dc9a305bd61..35c42d0675b4 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass.2.minified.js @@ -1,3 +1,3 @@ //// [protectedClassPropertyAccessibleWithinClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.1.normal.js index eac8abcc2345..e3aa8f728744 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.1.normal.js @@ -1,7 +1,7 @@ //// [protectedClassPropertyAccessibleWithinNestedClass.ts] // no errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.2.minified.js index c59b42798eea..0b7a61245658 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass.2.minified.js @@ -1,3 +1,3 @@ //// [protectedClassPropertyAccessibleWithinNestedClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.1.normal.js index 5bdb6c77160d..f1f8a40ceb5f 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.1.normal.js @@ -1,8 +1,8 @@ //// [protectedClassPropertyAccessibleWithinNestedSubclass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.2.minified.js index 2992fd817796..92a3b915e5bc 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass.2.minified.js @@ -1,5 +1,5 @@ //// [protectedClassPropertyAccessibleWithinNestedSubclass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.1.normal.js index 162af472b60b..f5b52a81d8a2 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.1.normal.js @@ -1,7 +1,7 @@ //// [protectedClassPropertyAccessibleWithinNestedSubclass1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.2.minified.js index 6720928b1523..9ff37cc005d5 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1.2.minified.js @@ -1,6 +1,6 @@ //// [protectedClassPropertyAccessibleWithinNestedSubclass1.ts] var b, d1, d2, d3, d4; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; b.x, d1.x, d2.x, d3.x, d4.x; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.1.normal.js index 1f7e01284856..97c1af9b5db1 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.1.normal.js @@ -1,9 +1,9 @@ //// [protectedClassPropertyAccessibleWithinSubclass.ts] // no errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.2.minified.js index 520411d12b27..4a8b5007c257 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass.2.minified.js @@ -1,5 +1,5 @@ //// [protectedClassPropertyAccessibleWithinSubclass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.1.normal.js index cfce62096013..03b6ade238b4 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.1.normal.js @@ -1,7 +1,7 @@ //// [protectedClassPropertyAccessibleWithinSubclass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.2.minified.js index 8641d353e16d..6b56cd7d7e1a 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2.2.minified.js @@ -1,6 +1,6 @@ //// [protectedClassPropertyAccessibleWithinSubclass2.ts] var b, d1, d2, d3, d4; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; b.x, d1.x, d2.x, d3.x, d4.x; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.1.normal.js index b99545c041da..6d172beb6d6a 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.1.normal.js @@ -1,9 +1,9 @@ //// [protectedClassPropertyAccessibleWithinSubclass3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.2.minified.js index 61cf9a1717bc..ea11868426ec 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3.2.minified.js @@ -1,6 +1,6 @@ //// [protectedClassPropertyAccessibleWithinSubclass3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.1.normal.js b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.1.normal.js index 23668ea6dd1a..6e2a3d06fe06 100644 --- a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.1.normal.js @@ -1,9 +1,9 @@ //// [protectedInstanceMemberAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.2.minified.js b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.2.minified.js index e272b8e70283..654d42c08c3b 100644 --- a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility.2.minified.js @@ -1,6 +1,6 @@ //// [protectedInstanceMemberAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.1.normal.js index 158d167c9d3c..a07bcbad38bb 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.1.normal.js @@ -1,7 +1,7 @@ //// [protectedStaticClassPropertyAccessibleWithinSubclass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.2.minified.js index da2040b06b4e..9df811b130b2 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass.2.minified.js @@ -1,7 +1,7 @@ //// [protectedStaticClassPropertyAccessibleWithinSubclass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.1.normal.js index d791c24bfd71..352ea4726316 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.1.normal.js @@ -1,9 +1,9 @@ //// [protectedStaticClassPropertyAccessibleWithinSubclass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.2.minified.js index 27a2604fc52a..fb4c2e96a61d 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2.2.minified.js @@ -1,6 +1,6 @@ //// [protectedStaticClassPropertyAccessibleWithinSubclass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.1.normal.js index 340d3b37c039..9b700a4b6ae6 100644 --- a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.1.normal.js @@ -1,6 +1,6 @@ //// [protectedStaticNotAccessibleInClodule.ts] // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.2.minified.js index 908b46797903..3056b8c167f4 100644 --- a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule.2.minified.js @@ -1,5 +1,5 @@ //// [protectedStaticNotAccessibleInClodule.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/quotedConstructors.1.normal.js b/crates/swc/tests/tsc-references/quotedConstructors.1.normal.js index 5cc209c82712..85210bf4ae90 100644 --- a/crates/swc/tests/tsc-references/quotedConstructors.1.normal.js +++ b/crates/swc/tests/tsc-references/quotedConstructors.1.normal.js @@ -1,5 +1,5 @@ //// [quotedConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/quotedConstructors.2.minified.js b/crates/swc/tests/tsc-references/quotedConstructors.2.minified.js index 2976c98c4af8..c40f5a60119a 100644 --- a/crates/swc/tests/tsc-references/quotedConstructors.2.minified.js +++ b/crates/swc/tests/tsc-references/quotedConstructors.2.minified.js @@ -1,5 +1,5 @@ //// [quotedConstructors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function _class() { "use strict"; _class_call_check(this, _class), console.log(this); diff --git a/crates/swc/tests/tsc-references/reExportDefaultExport.1.normal.js b/crates/swc/tests/tsc-references/reExportDefaultExport.1.normal.js index 8f992cf30560..d888ebc974a1 100644 --- a/crates/swc/tests/tsc-references/reExportDefaultExport.1.normal.js +++ b/crates/swc/tests/tsc-references/reExportDefaultExport.1.normal.js @@ -25,7 +25,7 @@ function f() {} Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _m1 = /*#__PURE__*/ _interop_require_wildcard(require("./m1")); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _m1 = /*#__PURE__*/ _interop_require_wildcard._(require("./m1")); (0, _m1.f)(); (0, _m1.default)(); diff --git a/crates/swc/tests/tsc-references/reExportDefaultExport.2.minified.js b/crates/swc/tests/tsc-references/reExportDefaultExport.2.minified.js index 5d9d0b73ff51..8ad32cabe3b8 100644 --- a/crates/swc/tests/tsc-references/reExportDefaultExport.2.minified.js +++ b/crates/swc/tests/tsc-references/reExportDefaultExport.2.minified.js @@ -23,5 +23,5 @@ Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", { value: !0 }); -var _m1 = (0, require("@swc/helpers/lib/_interop_require_wildcard.js").default)(require("./m1")); +var _m1 = require("@swc/helpers/_/_interop_require_wildcard")._(require("./m1")); (0, _m1.f)(), (0, _m1.default)(); diff --git a/crates/swc/tests/tsc-references/readonlyConstructorAssignment.1.normal.js b/crates/swc/tests/tsc-references/readonlyConstructorAssignment.1.normal.js index 5a36072ef935..2d7a026c6c7e 100644 --- a/crates/swc/tests/tsc-references/readonlyConstructorAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/readonlyConstructorAssignment.1.normal.js @@ -1,8 +1,8 @@ //// [readonlyConstructorAssignment.ts] // Tests that readonly parameter properties behave like regular readonly properties -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A(x) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/readonlyConstructorAssignment.2.minified.js b/crates/swc/tests/tsc-references/readonlyConstructorAssignment.2.minified.js index 23763028fecc..ec547f3153bc 100644 --- a/crates/swc/tests/tsc-references/readonlyConstructorAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/readonlyConstructorAssignment.2.minified.js @@ -1,4 +1,4 @@ //// [readonlyConstructorAssignment.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/readonlyRestParameters.1.normal.js b/crates/swc/tests/tsc-references/readonlyRestParameters.1.normal.js index 2adff055e781..027a884cbf43 100644 --- a/crates/swc/tests/tsc-references/readonlyRestParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/readonlyRestParameters.1.normal.js @@ -1,5 +1,5 @@ //// [readonlyRestParameters.ts] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function f0(a, b) { f0(a, b); f1(a, b); diff --git a/crates/swc/tests/tsc-references/readonlyRestParameters.2.minified.js b/crates/swc/tests/tsc-references/readonlyRestParameters.2.minified.js index ee291e69520b..896fe78c7a6f 100644 --- a/crates/swc/tests/tsc-references/readonlyRestParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/readonlyRestParameters.2.minified.js @@ -1,2 +1,2 @@ //// [readonlyRestParameters.ts] -import "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.1.normal.js index ba8f48ca12d2..cf5e08236d84 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.1.normal.js @@ -1,5 +1,5 @@ //// [recursiveTypeInGenericConstraint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var G = function G() { "use strict"; _class_call_check(this, G); diff --git a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.2.minified.js index 8f90568522dc..f46762e4a717 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint.2.minified.js @@ -1,5 +1,5 @@ //// [recursiveTypeInGenericConstraint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/recursiveTypeReferences1.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypeReferences1.1.normal.js index 9795639cf6cf..11319a9605f4 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeReferences1.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypeReferences1.1.normal.js @@ -1,6 +1,6 @@ //// [recursiveTypeReferences1.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var a0 = 1; var a1 = [ 1, diff --git a/crates/swc/tests/tsc-references/recursiveTypeReferences1.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypeReferences1.2.minified.js index bc6c2693d7b0..c62f7d18c82f 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeReferences1.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypeReferences1.2.minified.js @@ -1,6 +1,6 @@ //// [recursiveTypeReferences1.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; -import "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; +import "@swc/helpers/_/_to_consumable_array"; flat([ 1, [ diff --git a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.1.normal.js index 51a10ffaec17..9af09261ede6 100644 --- a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.1.normal.js @@ -1,5 +1,5 @@ //// [recursiveTypesUsedAsFunctionParameters.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.2.minified.js index a397be9a5123..1710e19464c8 100644 --- a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters.2.minified.js @@ -1,2 +1,2 @@ //// [recursiveTypesUsedAsFunctionParameters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/reexportClassDefinition.1.normal.js b/crates/swc/tests/tsc-references/reexportClassDefinition.1.normal.js index c627560c00f9..7d43c0e4d82a 100644 --- a/crates/swc/tests/tsc-references/reexportClassDefinition.1.normal.js +++ b/crates/swc/tests/tsc-references/reexportClassDefinition.1.normal.js @@ -1,9 +1,9 @@ //// [foo1.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var x = function x() { "use strict"; - _class_call_check(this, x); + _class_call_check._(this, x); }; module.exports = x; //// [foo2.ts] @@ -17,16 +17,16 @@ module.exports = { Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _create_super = require("@swc/helpers/_/_create_super"); var foo2 = require("./foo2"); var x = /*#__PURE__*/ function(_foo2_x) { "use strict"; - _inherits(x, _foo2_x); - var _super = _create_super(x); + _inherits._(x, _foo2_x); + var _super = _create_super._(x); function x() { - _class_call_check(this, x); + _class_call_check._(this, x); return _super.apply(this, arguments); } return x; diff --git a/crates/swc/tests/tsc-references/reexportClassDefinition.2.minified.js b/crates/swc/tests/tsc-references/reexportClassDefinition.2.minified.js index e6087b96588a..85e300369846 100644 --- a/crates/swc/tests/tsc-references/reexportClassDefinition.2.minified.js +++ b/crates/swc/tests/tsc-references/reexportClassDefinition.2.minified.js @@ -1,9 +1,9 @@ //// [foo1.ts] "use strict"; -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); module.exports = function x() { "use strict"; - _class_call_check(this, x); + _class_call_check._(this, x); }; //// [foo2.ts] "use strict"; @@ -15,4 +15,4 @@ module.exports = { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_class_call_check.js").default, require("@swc/helpers/lib/_inherits.js").default, require("@swc/helpers/lib/_create_super.js").default, require("./foo2").x; +}), require("@swc/helpers/_/_class_call_check"), require("@swc/helpers/_/_inherits"), require("@swc/helpers/_/_create_super"), require("./foo2").x; diff --git a/crates/swc/tests/tsc-references/renamed.1.normal.js b/crates/swc/tests/tsc-references/renamed.1.normal.js index 7716eddd4a2e..d8346c90a3b7 100644 --- a/crates/swc/tests/tsc-references/renamed.1.normal.js +++ b/crates/swc/tests/tsc-references/renamed.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/renamed.2.minified.js b/crates/swc/tests/tsc-references/renamed.2.minified.js index 456ce00705d1..508f788bfcd1 100644 --- a/crates/swc/tests/tsc-references/renamed.2.minified.js +++ b/crates/swc/tests/tsc-references/renamed.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [/b.ts] export { }; //// [/c.ts] diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.1.normal.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.1.normal.js index 552897ef1c76..f0cc40ab5b74 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.1.normal.js @@ -1,6 +1,6 @@ //// [restElementWithAssignmentPattern3.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; var a, b; var tuple = [ "", diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.2.minified.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.2.minified.js index b90164ce3ed9..43ae23120d39 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3.2.minified.js @@ -1,7 +1,7 @@ //// [restElementWithAssignmentPattern3.ts] var ref1; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; (ref1 = _sliced_to_array(_to_array([ "", 1 diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.1.normal.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.1.normal.js index edb8e71a88d9..c08b0d9abd7f 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.1.normal.js @@ -1,5 +1,5 @@ //// [restElementWithAssignmentPattern4.ts] -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; var a, b; var tuple = [ "", diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.2.minified.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.2.minified.js index 5f3d56418c2b..81184905fa9f 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4.2.minified.js @@ -1,6 +1,6 @@ //// [restElementWithAssignmentPattern4.ts] var ref1; -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; (ref1 = _to_array([ "", 1 diff --git a/crates/swc/tests/tsc-references/restElementWithNullInitializer.1.normal.js b/crates/swc/tests/tsc-references/restElementWithNullInitializer.1.normal.js index eb19c6ccc1a1..2fa3aceefdcd 100644 --- a/crates/swc/tests/tsc-references/restElementWithNullInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithNullInitializer.1.normal.js @@ -1,5 +1,5 @@ //// [restElementWithNullInitializer.ts] -import _to_array from "@swc/helpers/src/_to_array.mjs"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; function foo1() { var _ref = _to_array(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null), r = _ref.slice(0); } diff --git a/crates/swc/tests/tsc-references/restElementWithNullInitializer.2.minified.js b/crates/swc/tests/tsc-references/restElementWithNullInitializer.2.minified.js index 6aa87d518346..e4d5882e9dd3 100644 --- a/crates/swc/tests/tsc-references/restElementWithNullInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithNullInitializer.2.minified.js @@ -1,2 +1,2 @@ //// [restElementWithNullInitializer.ts] -import "@swc/helpers/src/_to_array.mjs"; +import "@swc/helpers/_/_to_array"; diff --git a/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.1.normal.js b/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.1.normal.js index ba8aafcf4e91..2b3495806177 100644 --- a/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.1.normal.js +++ b/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.1.normal.js @@ -1,6 +1,6 @@ //// [restParameterInDownlevelGenerator.ts] // https://github.com/Microsoft/TypeScript/issues/30653 -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function mergeStringLists() { var _len, strings, _key, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, str; var _arguments = arguments; diff --git a/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.2.minified.js b/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.2.minified.js index 716fffd06b6e..d1d07e89bda4 100644 --- a/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.2.minified.js +++ b/crates/swc/tests/tsc-references/restParameterInDownlevelGenerator.2.minified.js @@ -1,2 +1,2 @@ //// [restParameterInDownlevelGenerator.ts] -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_ts_generator"; diff --git a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.1.normal.js b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.1.normal.js index a803e570bae7..ad742a6b6a3f 100644 --- a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.1.normal.js @@ -1,6 +1,6 @@ //// [restTuplesFromContextualTypes.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; (function(a, b, c) {}).apply(this, _to_consumable_array(t1)); (function() { for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.2.minified.js b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.2.minified.js index dea92d6fb135..da587478a7a4 100644 --- a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes.2.minified.js @@ -1,6 +1,6 @@ //// [restTuplesFromContextualTypes.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; (function(a, b, c) {}).apply(this, _to_consumable_array(t1)), (function() { for(var _len = arguments.length, x = Array(_len), _key = 0; _key < _len; _key++)x[_key] = arguments[_key]; }).apply(this, _to_consumable_array(t1)), (function(a) { diff --git a/crates/swc/tests/tsc-references/returnStatements.1.normal.js b/crates/swc/tests/tsc-references/returnStatements.1.normal.js index ebff6687a2b1..94d98cfd83d0 100644 --- a/crates/swc/tests/tsc-references/returnStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/returnStatements.1.normal.js @@ -1,8 +1,8 @@ //// [returnStatements.ts] // all the following should be valid -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function fn1() { return 1; } diff --git a/crates/swc/tests/tsc-references/returnStatements.2.minified.js b/crates/swc/tests/tsc-references/returnStatements.2.minified.js index 0fd98c7d9e1f..b7d8587c4daa 100644 --- a/crates/swc/tests/tsc-references/returnStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/returnStatements.2.minified.js @@ -1,4 +1,4 @@ //// [returnStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/returnTagTypeGuard.1.normal.js b/crates/swc/tests/tsc-references/returnTagTypeGuard.1.normal.js index 5455a7ae28be..a30a41850685 100644 --- a/crates/swc/tests/tsc-references/returnTagTypeGuard.1.normal.js +++ b/crates/swc/tests/tsc-references/returnTagTypeGuard.1.normal.js @@ -1,5 +1,5 @@ //// [bug25127.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Entry = /*#__PURE__*/ function() { "use strict"; function Entry() { diff --git a/crates/swc/tests/tsc-references/returnTagTypeGuard.2.minified.js b/crates/swc/tests/tsc-references/returnTagTypeGuard.2.minified.js index b320a2c67bb7..b20ca85948f4 100644 --- a/crates/swc/tests/tsc-references/returnTagTypeGuard.2.minified.js +++ b/crates/swc/tests/tsc-references/returnTagTypeGuard.2.minified.js @@ -1,2 +1,2 @@ //// [bug25127.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/scannerClass2.1.normal.js b/crates/swc/tests/tsc-references/scannerClass2.1.normal.js index 92f07d069537..cc7fd702236e 100644 --- a/crates/swc/tests/tsc-references/scannerClass2.1.normal.js +++ b/crates/swc/tests/tsc-references/scannerClass2.1.normal.js @@ -1,5 +1,5 @@ //// [scannerClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter); diff --git a/crates/swc/tests/tsc-references/scannerClass2.2.minified.js b/crates/swc/tests/tsc-references/scannerClass2.2.minified.js index 39390f414bc4..2bd681ee159f 100644 --- a/crates/swc/tests/tsc-references/scannerClass2.2.minified.js +++ b/crates/swc/tests/tsc-references/scannerClass2.2.minified.js @@ -1,5 +1,5 @@ //// [scannerClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter), this.logger = logger, this._information = this.logger.information(); diff --git a/crates/swc/tests/tsc-references/scannertest1.1.normal.js b/crates/swc/tests/tsc-references/scannertest1.1.normal.js index 3782cde859e3..29db31b9c3ba 100644 --- a/crates/swc/tests/tsc-references/scannertest1.1.normal.js +++ b/crates/swc/tests/tsc-references/scannertest1.1.normal.js @@ -1,6 +1,6 @@ //// [scannertest1.ts] /// -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var CharacterInfo = /*#__PURE__*/ function() { "use strict"; function CharacterInfo() { diff --git a/crates/swc/tests/tsc-references/scannertest1.2.minified.js b/crates/swc/tests/tsc-references/scannertest1.2.minified.js index 9b51523b0b73..47cc6910bc99 100644 --- a/crates/swc/tests/tsc-references/scannertest1.2.minified.js +++ b/crates/swc/tests/tsc-references/scannertest1.2.minified.js @@ -1,2 +1,2 @@ //// [scannertest1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.1.normal.js b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.1.normal.js index a496069a4307..f8c9e573fa21 100644 --- a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.1.normal.js +++ b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.1.normal.js @@ -1,6 +1,6 @@ //// [scopeResolutionIdentifiers.ts] // EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var s; var M1; (function(M1) { diff --git a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.2.minified.js b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.2.minified.js index 00baa6122a43..8316e301c381 100644 --- a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.2.minified.js +++ b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers.2.minified.js @@ -1,6 +1,6 @@ //// [scopeResolutionIdentifiers.ts] var M1, M2, M3; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(M1) { var s; M1.s = s; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.1.normal.js b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.1.normal.js index c7330f7ae21b..e7160a9cb36c 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.1.normal.js @@ -1,5 +1,5 @@ //// [specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.2.minified.js b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.2.minified.js index 5c073d2cf4a3..f637a3008012 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.2.minified.js @@ -1,2 +1,2 @@ //// [specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.1.normal.js b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.1.normal.js index 672afaa8a33e..42136e3f7dff 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.1.normal.js @@ -1,7 +1,7 @@ //// [specializedSignatureIsSubtypeOfNonSpecializedSignature.ts] // Specialized signatures must be a subtype of a non-specialized signature // All the below should not be errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.2.minified.js b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.2.minified.js index bbff20546b8f..c83ad7ff23b3 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature.2.minified.js @@ -1,2 +1,2 @@ //// [specializedSignatureIsSubtypeOfNonSpecializedSignature.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/spellingUncheckedJS.1.normal.js b/crates/swc/tests/tsc-references/spellingUncheckedJS.1.normal.js index c7c31316845e..5976604de3f7 100644 --- a/crates/swc/tests/tsc-references/spellingUncheckedJS.1.normal.js +++ b/crates/swc/tests/tsc-references/spellingUncheckedJS.1.normal.js @@ -1,9 +1,9 @@ //// [spellingUncheckedJS.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var inModule = 1; inmodule.toFixed(); function f() { diff --git a/crates/swc/tests/tsc-references/spellingUncheckedJS.2.minified.js b/crates/swc/tests/tsc-references/spellingUncheckedJS.2.minified.js index 23a81ccd001f..d9b7baf71722 100644 --- a/crates/swc/tests/tsc-references/spellingUncheckedJS.2.minified.js +++ b/crates/swc/tests/tsc-references/spellingUncheckedJS.2.minified.js @@ -1,9 +1,9 @@ //// [spellingUncheckedJS.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var inModule = 1; inmodule.toFixed(); var object = { diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.1.normal.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.1.normal.js index d1d9a8442e72..e482bd81e100 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.1.normal.js @@ -1,5 +1,5 @@ //// [spreadContextualTypedBindingPattern.ts] // #18308 -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; // [ts] Initializer provides no value for this binding element and the binding element has no default value. var _$_object_spread = _object_spread({}, bob, alice), naam = _$_object_spread.naam, age = _$_object_spread.age; diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.2.minified.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.2.minified.js index 99691b00686f..100dc259f79c 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern.2.minified.js @@ -1,4 +1,4 @@ //// [spreadContextualTypedBindingPattern.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var _$_object_spread = _object_spread({}, bob, alice); _$_object_spread.naam, _$_object_spread.age; diff --git a/crates/swc/tests/tsc-references/spreadDuplicate.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicate.1.normal.js index 5eab29b2d21b..89d2d82d5b82 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate.1.normal.js @@ -1,6 +1,6 @@ //// [spreadDuplicate.ts] // Repro from #44438 -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicate.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicate.2.minified.js index 5dace2248845..a55b300db274 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate.2.minified.js @@ -1,5 +1,5 @@ //// [spreadDuplicate.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicateExact.1.normal.js index 0e330f1b2066..05c88eb3ead7 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact.1.normal.js @@ -1,6 +1,6 @@ //// [spreadDuplicateExact.ts] // Repro from #44438 -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicateExact.2.minified.js index db20285a3c04..c794521c7d48 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact.2.minified.js @@ -1,5 +1,5 @@ //// [spreadDuplicateExact.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty.1.normal.js b/crates/swc/tests/tsc-references/spreadExcessProperty.1.normal.js index 83efd14387a1..bcdb6d5029ac 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty.1.normal.js @@ -1,5 +1,5 @@ //// [spreadExcessProperty.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var extra1 = { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty.2.minified.js b/crates/swc/tests/tsc-references/spreadExcessProperty.2.minified.js index 46646b41ccea..8ca235634856 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty.2.minified.js @@ -1,5 +1,5 @@ //// [spreadExcessProperty.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({}, { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive.1.normal.js b/crates/swc/tests/tsc-references/spreadNonPrimitive.1.normal.js index 06cba4e4b222..ddb7c0da8124 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive.1.normal.js @@ -1,6 +1,6 @@ //// [spreadNonPrimitive.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var x = _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive.2.minified.js b/crates/swc/tests/tsc-references/spreadNonPrimitive.2.minified.js index 38235fac6138..160790516bec 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive.2.minified.js @@ -1,6 +1,6 @@ //// [spreadNonPrimitive.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy.1.normal.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy.1.normal.js index 0121e43f7b14..d8f9f8949b0e 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy.1.normal.js @@ -1,6 +1,6 @@ //// [spreadObjectOrFalsy.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function f1(a) { return _object_spread({}, a); // Error } diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy.2.minified.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy.2.minified.js index 227248ae4a27..0dac7ff8013d 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy.2.minified.js @@ -1,3 +1,3 @@ //// [spreadObjectOrFalsy.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_object_spread.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_object_spread"; diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty.1.normal.js index b1878920b9ef..532b9f294fe0 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty.1.normal.js @@ -1,6 +1,6 @@ //// [spreadOverwritesProperty.ts] // without strict null checks, none of these should be an error -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var unused1 = _object_spread({ b: 1 }, ab); diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty.2.minified.js index 3d14346c8e1f..9af8c61341b5 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty.2.minified.js @@ -1,5 +1,5 @@ //// [spreadOverwritesProperty.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.1.normal.js index 77408a91bd49..3cce4f0f7d63 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.1.normal.js @@ -1,6 +1,6 @@ //// [spreadOverwritesPropertyStrict.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var unused1 = _object_spread({ b: 1 }, ab) // error diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.2.minified.js index bac1f07507d3..acedbebbbf3d 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict.2.minified.js @@ -1,6 +1,6 @@ //// [spreadOverwritesPropertyStrict.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable.1.normal.js b/crates/swc/tests/tsc-references/spreadTypeVariable.1.normal.js index 9cd356b165ce..d0bf64738d88 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable.1.normal.js @@ -1,5 +1,5 @@ //// [spreadTypeVariable.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function f1(arg) { return _object_spread({}, arg); } diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable.2.minified.js b/crates/swc/tests/tsc-references/spreadTypeVariable.2.minified.js index 47852d66f84e..8c92d5a7ea27 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable.2.minified.js @@ -1,2 +1,2 @@ //// [spreadTypeVariable.ts] -import "@swc/helpers/src/_object_spread.mjs"; +import "@swc/helpers/_/_object_spread"; diff --git a/crates/swc/tests/tsc-references/spreadUnion.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion.1.normal.js index dd6304da7613..c3a1a189eb0b 100644 --- a/crates/swc/tests/tsc-references/spreadUnion.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion.1.normal.js @@ -1,6 +1,6 @@ //// [spreadUnion.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var union; var o3; var o3 = _object_spread({}, union); diff --git a/crates/swc/tests/tsc-references/spreadUnion.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion.2.minified.js index 744183d23568..e4746ef9a39e 100644 --- a/crates/swc/tests/tsc-references/spreadUnion.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion.2.minified.js @@ -1,7 +1,7 @@ //// [spreadUnion.ts] var union; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread({}, union), _object_spread_props(_object_spread({}, union), { a: !1 }), _object_spread({}, union, union); diff --git a/crates/swc/tests/tsc-references/spreadUnion2.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion2.1.normal.js index 0db6adfbc58b..07d3a333c090 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion2.1.normal.js @@ -1,5 +1,5 @@ //// [spreadUnion2.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var o1; var o1 = _object_spread({}, undefinedUnion); var o2; diff --git a/crates/swc/tests/tsc-references/spreadUnion2.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion2.2.minified.js index a69fd9647051..497012d587a0 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion2.2.minified.js @@ -1,3 +1,3 @@ //// [spreadUnion2.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({}, undefinedUnion), _object_spread({}, nullUnion), _object_spread({}, undefinedUnion, nullUnion), _object_spread({}, nullUnion, undefinedUnion), _object_spread({}, undefinedUnion, undefinedUnion), _object_spread({}, nullUnion, nullUnion); diff --git a/crates/swc/tests/tsc-references/spreadUnion3.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion3.1.normal.js index fb6815ab81fa..0a7edefd6754 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion3.1.normal.js @@ -1,5 +1,5 @@ //// [spreadUnion3.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function f(x) { return _object_spread({ y: 123 diff --git a/crates/swc/tests/tsc-references/spreadUnion3.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion3.2.minified.js index 681813a020c0..d91c91854139 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion3.2.minified.js @@ -1,5 +1,5 @@ //// [spreadUnion3.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; function g(t) { _object_spread({}, t).a; } diff --git a/crates/swc/tests/tsc-references/spreadUnion4.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion4.1.normal.js index 1b14eb5dfed2..62ea5eb8a2ac 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion4.1.normal.js @@ -1,3 +1,3 @@ //// [spreadUnion4.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; var c = _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/spreadUnion4.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion4.2.minified.js index 6d9a9ce9eef5..5865e661e39b 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion4.2.minified.js @@ -1,3 +1,3 @@ //// [spreadUnion4.ts] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.1.normal.js b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.1.normal.js index b2e4054fe40e..4e5300fc943b 100644 --- a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.1.normal.js @@ -1,5 +1,5 @@ //// [staticAndNonStaticPropertiesSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.2.minified.js b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.2.minified.js index c8d794612f24..69803e710a57 100644 --- a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName.2.minified.js @@ -1,2 +1,2 @@ //// [staticAndNonStaticPropertiesSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticFactory1.1.normal.js b/crates/swc/tests/tsc-references/staticFactory1.1.normal.js index 4dadba0b690a..cbd4ef2bf7e1 100644 --- a/crates/swc/tests/tsc-references/staticFactory1.1.normal.js +++ b/crates/swc/tests/tsc-references/staticFactory1.1.normal.js @@ -1,7 +1,7 @@ //// [staticFactory1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/staticFactory1.2.minified.js b/crates/swc/tests/tsc-references/staticFactory1.2.minified.js index a28fe14e1a3d..8378e1b5092a 100644 --- a/crates/swc/tests/tsc-references/staticFactory1.2.minified.js +++ b/crates/swc/tests/tsc-references/staticFactory1.2.minified.js @@ -1,7 +1,7 @@ //// [staticFactory1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function(Base) { "use strict"; _inherits(Derived, Base); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature1.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature1.1.normal.js index 5e758ce0318d..6f8bffa2fe36 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature1.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature1.1.normal.js @@ -1,5 +1,5 @@ //// [staticIndexSignature1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature1.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature1.2.minified.js index 789ac7a85aab..fae16a08a4c5 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature1.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature1.2.minified.js @@ -1,5 +1,5 @@ //// [staticIndexSignature1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature2.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature2.1.normal.js index c6f125e6fd98..4a5c296ba3a2 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature2.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature2.1.normal.js @@ -1,5 +1,5 @@ //// [staticIndexSignature2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature2.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature2.2.minified.js index 19c10694e3a6..010a2f50b774 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature2.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature2.2.minified.js @@ -1,5 +1,5 @@ //// [staticIndexSignature2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature3.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature3.1.normal.js index c93c0bdbbb47..6f56f113ed50 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature3.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature3.1.normal.js @@ -1,7 +1,7 @@ //// [staticIndexSignature3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature3.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature3.2.minified.js index 988b6156b703..2f2a06a94ef0 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature3.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature3.2.minified.js @@ -1,7 +1,7 @@ //// [staticIndexSignature3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature6.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature6.1.normal.js index 06ff60bcbbbf..2bf46b3404c9 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature6.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature6.1.normal.js @@ -1,5 +1,5 @@ //// [staticIndexSignature6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { return /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/staticIndexSignature6.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature6.2.minified.js index 584396e61258..6aacb1c34116 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature6.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature6.2.minified.js @@ -1,5 +1,5 @@ //// [staticIndexSignature6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/staticIndexSignature7.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature7.1.normal.js index 69ed290532e5..8880d300bf2c 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature7.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature7.1.normal.js @@ -1,5 +1,5 @@ //// [staticIndexSignature7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var X = function X() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature7.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature7.2.minified.js index 3a4f1fb66f40..99672d5a36af 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature7.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature7.2.minified.js @@ -1,2 +1,2 @@ //// [staticIndexSignature7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticIndexers.1.normal.js b/crates/swc/tests/tsc-references/staticIndexers.1.normal.js index 5e087899e492..15b767591a9c 100644 --- a/crates/swc/tests/tsc-references/staticIndexers.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexers.1.normal.js @@ -1,6 +1,6 @@ //// [staticIndexers.ts] // static indexers not allowed -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexers.2.minified.js b/crates/swc/tests/tsc-references/staticIndexers.2.minified.js index f3b2f7b20cc8..e14b8fc3de2f 100644 --- a/crates/swc/tests/tsc-references/staticIndexers.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexers.2.minified.js @@ -1,2 +1,2 @@ //// [staticIndexers.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.1.normal.js b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.1.normal.js index ff4a547136ea..6e98870c065a 100644 --- a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.1.normal.js @@ -1,5 +1,5 @@ //// [staticMemberAssignsToConstructorFunctionMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.2.minified.js b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.2.minified.js index 7b67cdd89429..91ecdfa811cd 100644 --- a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers.2.minified.js @@ -1,2 +1,2 @@ //// [staticMemberAssignsToConstructorFunctionMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticMemberInitialization.1.normal.js b/crates/swc/tests/tsc-references/staticMemberInitialization.1.normal.js index 1d1867a4baaf..6077a121bd1a 100644 --- a/crates/swc/tests/tsc-references/staticMemberInitialization.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMemberInitialization.1.normal.js @@ -1,5 +1,5 @@ //// [staticMemberInitialization.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticMemberInitialization.2.minified.js b/crates/swc/tests/tsc-references/staticMemberInitialization.2.minified.js index 578499fea7dd..b7b4baef5ac3 100644 --- a/crates/swc/tests/tsc-references/staticMemberInitialization.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMemberInitialization.2.minified.js @@ -1,5 +1,5 @@ //// [staticMemberInitialization.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.1.normal.js b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.1.normal.js index 1628ffe0f4f3..acf9dfcd1864 100644 --- a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.1.normal.js @@ -1,6 +1,6 @@ //// [staticMembersUsingClassTypeParameter.ts] // BUG 745747 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.2.minified.js b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.2.minified.js index 345e4da2c20c..72f5ef8ada45 100644 --- a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter.2.minified.js @@ -1,2 +1,2 @@ //// [staticMembersUsingClassTypeParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.1.normal.js b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.1.normal.js index 240bf1f280aa..cd143fafe144 100644 --- a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.1.normal.js +++ b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.1.normal.js @@ -1,5 +1,5 @@ //// [staticPropertyAndFunctionWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.2.minified.js b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.2.minified.js index d8a92d8cf726..d8d06e8af2f1 100644 --- a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.2.minified.js +++ b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName.2.minified.js @@ -1,2 +1,2 @@ //// [staticPropertyAndFunctionWithSameName.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/staticPropertyNotInClassType.1.normal.js b/crates/swc/tests/tsc-references/staticPropertyNotInClassType.1.normal.js index 43af7e7684b9..c65de83b49f1 100644 --- a/crates/swc/tests/tsc-references/staticPropertyNotInClassType.1.normal.js +++ b/crates/swc/tests/tsc-references/staticPropertyNotInClassType.1.normal.js @@ -1,6 +1,6 @@ //// [staticPropertyNotInClassType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/staticPropertyNotInClassType.2.minified.js b/crates/swc/tests/tsc-references/staticPropertyNotInClassType.2.minified.js index 7657bae72441..9e0ca980e013 100644 --- a/crates/swc/tests/tsc-references/staticPropertyNotInClassType.2.minified.js +++ b/crates/swc/tests/tsc-references/staticPropertyNotInClassType.2.minified.js @@ -1,7 +1,7 @@ //// [staticPropertyNotInClassType.ts] var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; !function(NonGeneric) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/strictBindCallApply1.1.normal.js b/crates/swc/tests/tsc-references/strictBindCallApply1.1.normal.js index 3c0bc74f4583..5ede85e5ef60 100644 --- a/crates/swc/tests/tsc-references/strictBindCallApply1.1.normal.js +++ b/crates/swc/tests/tsc-references/strictBindCallApply1.1.normal.js @@ -1,5 +1,5 @@ //// [strictBindCallApply1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var f00 = foo.bind(undefined); var f01 = foo.bind(undefined, 10); var f02 = foo.bind(undefined, 10, "hello"); diff --git a/crates/swc/tests/tsc-references/strictBindCallApply1.2.minified.js b/crates/swc/tests/tsc-references/strictBindCallApply1.2.minified.js index 4220d8750068..79d3562578cb 100644 --- a/crates/swc/tests/tsc-references/strictBindCallApply1.2.minified.js +++ b/crates/swc/tests/tsc-references/strictBindCallApply1.2.minified.js @@ -1,5 +1,5 @@ //// [strictBindCallApply1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; foo.bind(void 0), foo.bind(void 0, 10), foo.bind(void 0, 10, "hello"), foo.bind(void 0, 10, 20), overloaded.bind(void 0), generic.bind(void 0), foo.call(void 0, 10, "hello"), foo.call(void 0, 10), foo.call(void 0, 10, 20), foo.call(void 0, 10, "hello", 30), foo.apply(void 0, [ 10, "hello" diff --git a/crates/swc/tests/tsc-references/strictPropertyInitialization.1.normal.js b/crates/swc/tests/tsc-references/strictPropertyInitialization.1.normal.js index 49024e0c83ce..fdd4db080873 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization.1.normal.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization.1.normal.js @@ -1,8 +1,8 @@ //// [strictPropertyInitialization.ts] // Properties with non-undefined types require initialization -import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; -import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; -import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; +import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get"; +import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init"; +import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set"; var _f = /*#__PURE__*/ new WeakMap(), _g = /*#__PURE__*/ new WeakMap(), _h = /*#__PURE__*/ new WeakMap(), _i = /*#__PURE__*/ new WeakMap(); class C1 { constructor(){ diff --git a/crates/swc/tests/tsc-references/strictPropertyInitialization.2.minified.js b/crates/swc/tests/tsc-references/strictPropertyInitialization.2.minified.js index 69ce0a444032..d45fc1573094 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization.2.minified.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization.2.minified.js @@ -1,8 +1,8 @@ //// [strictPropertyInitialization.ts] var E; -import "@swc/helpers/src/_class_private_field_get.mjs"; -import "@swc/helpers/src/_class_private_field_init.mjs"; -import "@swc/helpers/src/_class_private_field_set.mjs"; +import "@swc/helpers/_/_class_private_field_get"; +import "@swc/helpers/_/_class_private_field_init"; +import "@swc/helpers/_/_class_private_field_set"; Symbol(), function(E) { E.A = "A", E.B = "B"; }(E || (E = {})), E.A; diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.1.normal.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.1.normal.js index b0a2f38f5e01..1b8dd5d38b2f 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.1.normal.js @@ -1,7 +1,7 @@ //// [stringIndexerConstrainsPropertyDeclarations.ts] // String indexer types constrain the types of named properties in their containing type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.2.minified.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.2.minified.js index 1f7615af01ec..fb0c77c1d55c 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations.2.minified.js @@ -1,3 +1,3 @@ //// [stringIndexerConstrainsPropertyDeclarations.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.1.normal.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.1.normal.js index d7aa55eb309a..3845a5ee0f85 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.1.normal.js @@ -1,8 +1,8 @@ //// [stringIndexerConstrainsPropertyDeclarations2.ts] // String indexer providing a constraint of a user defined type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.2.minified.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.2.minified.js index 6e968a6eda32..90cd09262281 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2.2.minified.js @@ -1,4 +1,4 @@ //// [stringIndexerConstrainsPropertyDeclarations2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/stringIndexingResults.1.normal.js b/crates/swc/tests/tsc-references/stringIndexingResults.1.normal.js index e1204c98da3f..bf0a675634df 100644 --- a/crates/swc/tests/tsc-references/stringIndexingResults.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexingResults.1.normal.js @@ -1,5 +1,5 @@ //// [stringIndexingResults.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/stringIndexingResults.2.minified.js b/crates/swc/tests/tsc-references/stringIndexingResults.2.minified.js index a66bc9b01ed7..c206b42d58ac 100644 --- a/crates/swc/tests/tsc-references/stringIndexingResults.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexingResults.2.minified.js @@ -1,5 +1,5 @@ //// [stringIndexingResults.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; c.y, c.a, c[1], i.y, i.a, i[1], a.y, a.a, a[1]; var c, i, a, b = { y: "" diff --git a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.1.normal.js index 596b3b520a1e..7e94ae65cec1 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.1.normal.js @@ -1,7 +1,7 @@ //// [stringLiteralTypeIsSubtypeOfString.ts] // string literal types are subtypes of string, any // ok -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(x) {} function f2(x) {} function f3(x) {} diff --git a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.2.minified.js index 34e4439be2fc..fd94ed047a58 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString.2.minified.js @@ -1,6 +1,6 @@ //// [stringLiteralTypeIsSubtypeOfString.ts] var E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.1.normal.js index 8e466ae8b19e..ecd808934274 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.1.normal.js @@ -1,6 +1,6 @@ //// [stringLiteralTypesInImplementationSignatures.ts] // String literal types are only valid in overload signatures -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x) {} var f = function foo(x) {}; var f2 = function(x, y) {}; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.2.minified.js index 25a2a968148e..d4956944907d 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures.2.minified.js @@ -1,2 +1,2 @@ //// [stringLiteralTypesInImplementationSignatures.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.1.normal.js index 09dea8dafd37..0d4fa712fab5 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.1.normal.js @@ -1,7 +1,7 @@ //// [stringLiteralTypesInImplementationSignatures2.ts] // String literal types are only valid in overload signatures -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.2.minified.js index a4ac22a5aabf..307bd21fdea2 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2.2.minified.js @@ -1,6 +1,6 @@ //// [stringLiteralTypesInImplementationSignatures2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; _define_property({ foo: function(x) {} }, "foo", function(x) {}); diff --git a/crates/swc/tests/tsc-references/stringNamedPropertyAccess.1.normal.js b/crates/swc/tests/tsc-references/stringNamedPropertyAccess.1.normal.js index 182993e2a1e5..d24ecfafb7d2 100644 --- a/crates/swc/tests/tsc-references/stringNamedPropertyAccess.1.normal.js +++ b/crates/swc/tests/tsc-references/stringNamedPropertyAccess.1.normal.js @@ -1,5 +1,5 @@ //// [stringNamedPropertyAccess.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/stringNamedPropertyAccess.2.minified.js b/crates/swc/tests/tsc-references/stringNamedPropertyAccess.2.minified.js index 6598e594a16d..941f32caa9e7 100644 --- a/crates/swc/tests/tsc-references/stringNamedPropertyAccess.2.minified.js +++ b/crates/swc/tests/tsc-references/stringNamedPropertyAccess.2.minified.js @@ -1,4 +1,4 @@ //// [stringNamedPropertyAccess.ts] var i, a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (void 0)["a b"], i["a b"], a["a b"]; diff --git a/crates/swc/tests/tsc-references/subtypesOfAny.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfAny.1.normal.js index d2692119ee3e..699463936b7f 100644 --- a/crates/swc/tests/tsc-references/subtypesOfAny.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfAny.1.normal.js @@ -1,6 +1,6 @@ //// [subtypesOfAny.ts] // every type is a subtype of any, no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypesOfAny.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfAny.2.minified.js index a177118f1b30..e10aa3e99f22 100644 --- a/crates/swc/tests/tsc-references/subtypesOfAny.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfAny.2.minified.js @@ -1,5 +1,5 @@ //// [subtypesOfAny.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameter.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameter.1.normal.js index 06f56853c86c..49e16d9063cf 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameter.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameter.1.normal.js @@ -1,8 +1,8 @@ //// [subtypesOfTypeParameter.ts] // checking whether other types are subtypes of type parameters -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C3 = function C3() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameter.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameter.2.minified.js index e0116a189ae1..882433e1a8eb 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameter.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameter.2.minified.js @@ -1,7 +1,7 @@ //// [subtypesOfTypeParameter.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.1.normal.js index c6bb86e2af63..5c4a7c4d5789 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.1.normal.js @@ -1,8 +1,8 @@ //// [subtypesOfTypeParameterWithConstraints.ts] // checking whether other types are subtypes of type parameters with constraints -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C3 = function C3() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.2.minified.js index 3a3a697ba20f..c0b5dc8ac4f5 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints.2.minified.js @@ -1,4 +1,4 @@ //// [subtypesOfTypeParameterWithConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.1.normal.js index 23d9186378ad..b6004c804af7 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.1.normal.js @@ -1,6 +1,6 @@ //// [subtypesOfTypeParameterWithConstraints2.ts] // checking whether other types are subtypes of type parameters with constraints -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f1(x, y) { var r = true ? x : y; var r = true ? y : x; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.2.minified.js index 693670ca1013..7cbedb70d243 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2.2.minified.js @@ -1,5 +1,5 @@ //// [subtypesOfTypeParameterWithConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.1.normal.js index 7ec6087eaf4f..9d2f9b1662c3 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypesOfTypeParameterWithConstraints4.ts] // checking whether other types are subtypes of type parameters with constraints -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.2.minified.js index 310660e935a4..a2fec4d81824 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4.2.minified.js @@ -1,4 +1,4 @@ //// [subtypesOfTypeParameterWithConstraints4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.1.normal.js index bfbdaed4b9c7..83a59045fcb4 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.1.normal.js @@ -1,8 +1,8 @@ //// [subtypesOfTypeParameterWithRecursiveConstraints.ts] // checking whether other types are subtypes of type parameters with constraints -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.2.minified.js index b90341652ce0..397aadf788db 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints.2.minified.js @@ -1,6 +1,6 @@ //// [subtypesOfTypeParameterWithRecursiveConstraints.ts] var M1, M2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; M1 || (M1 = {}), M2 || (M2 = {}); diff --git a/crates/swc/tests/tsc-references/subtypesOfUnion.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfUnion.1.normal.js index cada4828a0f6..095efa7444e9 100644 --- a/crates/swc/tests/tsc-references/subtypesOfUnion.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfUnion.1.normal.js @@ -1,5 +1,5 @@ //// [subtypesOfUnion.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var E; (function(E) { E[E["e1"] = 0] = "e1"; diff --git a/crates/swc/tests/tsc-references/subtypesOfUnion.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfUnion.2.minified.js index f5802977089a..66297263926a 100644 --- a/crates/swc/tests/tsc-references/subtypesOfUnion.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfUnion.2.minified.js @@ -1,5 +1,5 @@ //// [subtypesOfUnion.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(E) { E[E.e1 = 0] = "e1", E[E.e2 = 1] = "e2"; diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.1.normal.js index c59486a81537..46df5963414e 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithCallSignatures2.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.2.minified.js index 0b31a0236e93..fe4963fb842e 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2.2.minified.js @@ -1,7 +1,7 @@ //// [subtypingWithCallSignatures2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; foo1(function(x) { return [ x diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.1.normal.js index 881ceed4b868..eb7206b6325e 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.1.normal.js @@ -1,9 +1,9 @@ //// [subtypingWithCallSignatures3.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases, so function calls will all result in 'any' -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.2.minified.js index dc9161282fc5..0f3db3952e81 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3.2.minified.js @@ -1,8 +1,8 @@ //// [subtypingWithCallSignatures3.ts] var Errors, WithGenericSignaturesInBaseType; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Errors || (Errors = {}), foo2(function(x) { return null; }), foo7(function(x) { diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.1.normal.js index 72388205c2f9..907b70250711 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithCallSignatures4.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.2.minified.js index 7e59ae745b42..4e8fe8078576 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4.2.minified.js @@ -1,7 +1,7 @@ //// [subtypingWithCallSignatures4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; foo1(function(x) { return null; }), foo2(function(x) { diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.1.normal.js index 7cf341642939..a9be3b6dd66d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithConstructSignatures2.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.2.minified.js index be4972eceaaf..f7264dd6a614 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithConstructSignatures2.ts] var r1arg1, r2arg1, r3arg1, r4arg1, r5arg1, r6arg1, r7arg1, r8arg1, r9arg1, r10arg1, r11arg1, r12arg1, r13arg1, r14arg1, r15arg1, r16arg1, r17arg1, r18arg1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; foo1(r1arg1), foo2(r2arg1), foo3(r3arg1), foo4(r4arg1), foo5(r5arg1), foo6(r6arg1), foo7(r7arg1), foo8(r8arg1), foo9(r9arg1), foo10(r10arg1), foo11(r11arg1), foo12(r12arg1), foo13(r13arg1), foo14(r14arg1), foo15(r15arg1), foo16(r16arg1), foo17(r17arg1), foo18(r18arg1); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.1.normal.js index 46d61dc76ee6..d4017402a1f9 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.1.normal.js @@ -1,9 +1,9 @@ //// [subtypingWithConstructSignatures3.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases, so function calls will all result in 'any' -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Errors; (function(Errors) { var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.2.minified.js index f48b16544ead..9a9d71469e23 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3.2.minified.js @@ -1,8 +1,8 @@ //// [subtypingWithConstructSignatures3.ts] var Errors, WithGenericSignaturesInBaseType; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function(Errors) { var r1arg1, r2arg1, r3arg1, r4arg1, r5arg1, r6arg1, r7arg1, r7arg3, r8arg, r9arg; foo2(r1arg1), foo7(r2arg1), foo8(r3arg1), foo10(r4arg1), foo11(r5arg1), foo12(r6arg1), foo15(r7arg1), foo15(r7arg3), foo16(r8arg), foo17(r9arg); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.1.normal.js index cd3aee6db1e0..fb0a5420439f 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithConstructSignatures4.ts] // checking subtype relations for function types as it relates to contextual signature instantiation -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.2.minified.js index ad29a955db46..4010157ad027 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithConstructSignatures4.ts] var r1arg, r2arg, r3arg, r4arg, r5arg, r6arg, r11arg, r15arg, r16arg, r17arg, r18arg; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; foo1(r1arg), foo2(r2arg), foo3(r3arg), foo4(r4arg), foo5(r5arg), foo6(r6arg), foo11(r11arg), foo15(r15arg), foo16(r16arg), foo17(r17arg), foo18(r18arg); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.1.normal.js index 6979f700c2f7..5ff7431903eb 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.1.normal.js @@ -1,9 +1,9 @@ //// [subtypingWithConstructSignatures5.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithConstructSignatures2 just with an extra level of indirection in the inheritance chain -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.2.minified.js index 296a2f945a02..75e3a3de5d3c 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithConstructSignatures5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.1.normal.js index dddb1b226ee1..79ae525ced81 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.1.normal.js @@ -2,9 +2,9 @@ // checking subtype relations for function types as it relates to contextual signature instantiation // same as subtypingWithConstructSignatures4 but using class type parameters instead of generic signatures // all are errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.2.minified.js index df7ea17eaccf..33035a342ce1 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithConstructSignatures6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.1.normal.js index 2ae4722b0f1d..094cf7896359 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithNumericIndexer.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.2.minified.js index 7c9c3cf168bc..d88394226933 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithNumericIndexer.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.1.normal.js index ae2d2a1caffe..0342fd2273c8 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithNumericIndexer3.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.2.minified.js index 74238c0d95db..90b2041fc47c 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithNumericIndexer3.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.1.normal.js index caabfc54a0f0..921e50c52c85 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithNumericIndexer4.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.2.minified.js index 05abfdc584e6..9a8a7aa20e22 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithNumericIndexer4.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.1.normal.js index c85daa26423b..377cdd67e1aa 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.1.normal.js @@ -1,6 +1,6 @@ //// [subtypingWithNumericIndexer5.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.2.minified.js index 7e9f4302079a..8869fac315c3 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithNumericIndexer5.ts] var Generics; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers.1.normal.js index 0deeae305d8a..ee7d98337752 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers.1.normal.js @@ -1,7 +1,7 @@ //// [subtypingWithObjectMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers.2.minified.js index 854c2a826fde..042f5f22af7b 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithObjectMembers.ts] var TwoLevels; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; TwoLevels || (TwoLevels = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.1.normal.js index 08f4517ee345..82b4d5725089 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithObjectMembers4.ts] // subtyping when property names do not match -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.2.minified.js index fe319a949cfb..b0cc319d6d2f 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithObjectMembers4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.1.normal.js index 13cbcc14cd2d..007ffa90b2e6 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.1.normal.js @@ -1,5 +1,5 @@ //// [subtypingWithObjectMembers5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; // N and M have the same name, same accessibility, same optionality, and N is a subtype of M // foo properties are valid, bar properties cause errors in the derived class declarations var NotOptional; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.2.minified.js index eb6cbf901608..ac36468e9ad1 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithObjectMembers5.ts] var NotOptional, Optional; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; NotOptional || (NotOptional = {}), Optional || (Optional = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.1.normal.js index c8f830dc9e90..5ec3e1551693 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithObjectMembersAccessibility.ts] // Derived member is private, base member is not causes errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.2.minified.js index e21da7ff8a19..daee235cf4a0 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility.2.minified.js @@ -1,4 +1,4 @@ //// [subtypingWithObjectMembersAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.1.normal.js index 1c187e07124e..831b812c8da5 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithObjectMembersAccessibility2.ts] // Derived member is private, base member is not causes errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.2.minified.js index 002402dbd641..7d6a1d4e2221 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithObjectMembersAccessibility2.ts] var ExplicitPublic, ImplicitPublic; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; ExplicitPublic || (ExplicitPublic = {}), ImplicitPublic || (ImplicitPublic = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer.1.normal.js index 805112edc47e..91ba40a73512 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithStringIndexer.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer.2.minified.js index 1ed4e4414f05..d85e256b1f8a 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithStringIndexer.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.1.normal.js index 96d73b8d41d8..7935e87785a7 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithStringIndexer3.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.2.minified.js index 9b60ef780a8a..e553063ec44f 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithStringIndexer3.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.1.normal.js index abe968053fcd..f0ba6ca0757a 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.1.normal.js @@ -1,8 +1,8 @@ //// [subtypingWithStringIndexer4.ts] // Derived type indexer must be subtype of base type indexer -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.2.minified.js index cfd4705250ac..a7dee9ac8c87 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4.2.minified.js @@ -1,6 +1,6 @@ //// [subtypingWithStringIndexer4.ts] var Generics; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Generics || (Generics = {}); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.1.normal.js index 92be87d6a13d..bf0046ea1b61 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.1.normal.js @@ -1,7 +1,7 @@ //// [superCallBeforeThisAccessing1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.2.minified.js index 196f3143b7ca..98405c035ea1 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1.2.minified.js @@ -1,4 +1,4 @@ //// [superCallBeforeThisAccessing1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.1.normal.js index 126b0692b102..cb409ba04bf7 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.1.normal.js @@ -1,7 +1,7 @@ //// [superCallBeforeThisAccessing2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.2.minified.js index 38db33406349..ce3f5756328f 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2.2.minified.js @@ -1,4 +1,4 @@ //// [superCallBeforeThisAccessing2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.1.normal.js index 7b700bdd2651..a478bf64ca9d 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.1.normal.js @@ -1,8 +1,8 @@ //// [superCallBeforeThisAccessing5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var D = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(D, _superClass); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.2.minified.js index d56fecf15d43..3ed1dd49cc38 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5.2.minified.js @@ -1,5 +1,5 @@ //// [superCallBeforeThisAccessing5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.1.normal.js index a3f128aa6392..d0f84d47f1c0 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.1.normal.js @@ -1,8 +1,8 @@ //// [superCallBeforeThisAccessing8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.2.minified.js index 2ca8603c0070..16b0c00195e9 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8.2.minified.js @@ -1,5 +1,5 @@ //// [superCallBeforeThisAccessing8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _possible_constructor_return from "@swc/helpers/src/_possible_constructor_return.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _possible_constructor_return } from "@swc/helpers/_/_possible_constructor_return"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.1.normal.js b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.1.normal.js index 88cd001ae31c..6fec3764c5e5 100644 --- a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.1.normal.js @@ -1,5 +1,5 @@ //// [superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.2.minified.js b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.2.minified.js index 5e68153033f1..3c090328d0df 100644 --- a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.2.minified.js @@ -1,2 +1,2 @@ //// [superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.1.normal.js b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.1.normal.js index 9323cddac277..e14aa65c80c9 100644 --- a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.1.normal.js @@ -1,5 +1,5 @@ //// [superCallInConstructorWithNoBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.2.minified.js b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.2.minified.js index 80e153153af9..9163030faa4e 100644 --- a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType.2.minified.js @@ -1,2 +1,2 @@ //// [superCallInConstructorWithNoBaseType.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.1.normal.js index bf8fe0179585..0b065cc2549c 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.1.normal.js @@ -1,7 +1,7 @@ //// [superCallParameterContextualTyping1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A(map) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.2.minified.js index 0f24d437152a..86ee4c53fb44 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1.2.minified.js @@ -1,4 +1,4 @@ //// [superCallParameterContextualTyping1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.1.normal.js index a69d19b44d21..46eff5e5b8e8 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.1.normal.js @@ -1,7 +1,7 @@ //// [superCallParameterContextualTyping2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A(map) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.2.minified.js index b37294a2b763..c3c90011d59c 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2.2.minified.js @@ -1,4 +1,4 @@ //// [superCallParameterContextualTyping2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.1.normal.js index fe97576362f5..5593edf1b815 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.1.normal.js @@ -1,10 +1,10 @@ //// [superCallParameterContextualTyping3.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var CBase = /*#__PURE__*/ function() { "use strict"; function CBase(param) { diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.2.minified.js index aab4d8a5dcf3..5da331127626 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3.2.minified.js @@ -1,7 +1,7 @@ //// [superCallParameterContextualTyping3.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superCalls.1.normal.js b/crates/swc/tests/tsc-references/superCalls.1.normal.js index 1cd80a9c85ae..c6694b38316c 100644 --- a/crates/swc/tests/tsc-references/superCalls.1.normal.js +++ b/crates/swc/tests/tsc-references/superCalls.1.normal.js @@ -1,7 +1,7 @@ //// [superCalls.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base(n) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCalls.2.minified.js b/crates/swc/tests/tsc-references/superCalls.2.minified.js index b1d6de67c690..531ce1b62f19 100644 --- a/crates/swc/tests/tsc-references/superCalls.2.minified.js +++ b/crates/swc/tests/tsc-references/superCalls.2.minified.js @@ -1,4 +1,4 @@ //// [superCalls.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).1.normal.js index 5a62307b0c7c..99259d427d56 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).1.normal.js @@ -7,8 +7,8 @@ export var Baz; export default class { } //// [locals.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -123,8 +123,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect = null; // collision (es2015-es2021 only) class C extends B { } @@ -133,8 +133,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; // collision (es2015-es2021 only) @@ -145,8 +145,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; // collision (es2015-es2021 only) @@ -157,8 +157,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect = null; // collision (es2015-es2021 only) class C extends B { } @@ -167,8 +167,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; // collision (es2015-es2021 only) @@ -179,8 +179,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; // collision (es2015-es2021 only) @@ -191,8 +191,8 @@ class C extends B { })(); export { }; //// [classDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class Reflect { } // collision (es2015-es2021 only) class C extends B { @@ -202,8 +202,8 @@ class C extends B { })(); export { }; //// [classDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class Reflect { } // collision (es2015-es2021 only) class C extends B { @@ -213,8 +213,8 @@ class C extends B { })(); export { }; //// [funcDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; function Reflect() {} // collision (es2015-es2021 only) class C extends B { } @@ -223,8 +223,8 @@ class C extends B { })(); export { }; //// [funcDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; function Reflect() {} // collision (es2015-es2021 only) class C extends B { } @@ -233,8 +233,8 @@ class C extends B { })(); export { }; //// [valueNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -242,8 +242,8 @@ class C extends B { })(); export { }; //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -251,8 +251,8 @@ class C extends B { })(); export { }; //// [enumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -263,8 +263,8 @@ class C extends B { })(); export { }; //// [enumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -275,8 +275,8 @@ class C extends B { })(); export { }; //// [constEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -287,8 +287,8 @@ class C extends B { })(); export { }; //// [constEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -299,8 +299,8 @@ class C extends B { })(); export { }; //// [namespaceImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -308,8 +308,8 @@ class C extends B { })(); export { }; //// [namespaceImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -317,8 +317,8 @@ class C extends B { })(); export { }; //// [namedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -326,8 +326,8 @@ class C extends B { })(); export { }; //// [namedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -335,8 +335,8 @@ class C extends B { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -344,8 +344,8 @@ class C extends B { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -353,8 +353,8 @@ class C extends B { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -362,8 +362,8 @@ class C extends B { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -371,8 +371,8 @@ class C extends B { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -380,8 +380,8 @@ class C extends B { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -389,8 +389,8 @@ class C extends B { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -398,8 +398,8 @@ class C extends B { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -407,8 +407,8 @@ class C extends B { })(); export { }; //// [defaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -416,8 +416,8 @@ class C extends B { })(); export { }; //// [defaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -425,8 +425,8 @@ class C extends B { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -434,8 +434,8 @@ class C extends B { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -443,8 +443,8 @@ class C extends B { })(); export { }; //// [typeInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -452,8 +452,8 @@ class C extends B { })(); export { }; //// [typeInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -461,8 +461,8 @@ class C extends B { })(); export { }; //// [interfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -470,8 +470,8 @@ class C extends B { })(); export { }; //// [interfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -479,8 +479,8 @@ class C extends B { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -488,8 +488,8 @@ class C extends B { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -497,8 +497,8 @@ class C extends B { })(); export { }; //// [classExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (class Reflect { }); // no collision class C extends B { @@ -508,8 +508,8 @@ class C extends B { })(); export { }; //// [classExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (class Reflect { }); // no collision class C extends B { @@ -519,8 +519,8 @@ class C extends B { })(); export { }; //// [inContainingClassExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var _Reflect; _Reflect = class Reflect { }, (()=>{ @@ -532,8 +532,8 @@ _Reflect = class Reflect { })(), _Reflect; export { }; //// [inContainingClassExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var _Reflect; _Reflect = class Reflect { }, (()=>{ @@ -545,8 +545,8 @@ _Reflect = class Reflect { })(), _Reflect; export { }; //// [funcExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() {}); // no collision class C extends B { } @@ -555,8 +555,8 @@ class C extends B { })(); export { }; //// [funcExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() {}); // no collision class C extends B { } @@ -565,8 +565,8 @@ class C extends B { })(); export { }; //// [inContainingFuncExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() { class C extends B { } @@ -576,8 +576,8 @@ import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; }); export { }; //// [inContainingFuncExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() { class C extends B { } diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).2.minified.js index 372e8b7610e6..6afa43eade80 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2015).2.minified.js @@ -7,8 +7,8 @@ Baz || (Baz = {}); export default class { } //// [locals.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = [ @@ -57,14 +57,14 @@ C._ = [ Reflect || (Reflect = {}), _get(_get_prototype_of(C), "w", C).call(C); })(), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; @@ -72,8 +72,8 @@ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; @@ -81,14 +81,14 @@ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; @@ -96,8 +96,8 @@ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; @@ -105,248 +105,248 @@ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticField.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticBlock.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticField.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticBlock.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingClassExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (()=>{ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); })(); //// [inContainingClassExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (()=>{ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); })(); //// [funcExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingFuncExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; //// [inContainingFuncExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).1.normal.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).1.normal.js index 5a62307b0c7c..99259d427d56 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).1.normal.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).1.normal.js @@ -7,8 +7,8 @@ export var Baz; export default class { } //// [locals.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -123,8 +123,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect = null; // collision (es2015-es2021 only) class C extends B { } @@ -133,8 +133,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; // collision (es2015-es2021 only) @@ -145,8 +145,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticField3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; // collision (es2015-es2021 only) @@ -157,8 +157,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect = null; // collision (es2015-es2021 only) class C extends B { } @@ -167,8 +167,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; // collision (es2015-es2021 only) @@ -179,8 +179,8 @@ class C extends B { })(); export { }; //// [varInContainingScopeStaticBlock3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; // collision (es2015-es2021 only) @@ -191,8 +191,8 @@ class C extends B { })(); export { }; //// [classDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class Reflect { } // collision (es2015-es2021 only) class C extends B { @@ -202,8 +202,8 @@ class C extends B { })(); export { }; //// [classDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class Reflect { } // collision (es2015-es2021 only) class C extends B { @@ -213,8 +213,8 @@ class C extends B { })(); export { }; //// [funcDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; function Reflect() {} // collision (es2015-es2021 only) class C extends B { } @@ -223,8 +223,8 @@ class C extends B { })(); export { }; //// [funcDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; function Reflect() {} // collision (es2015-es2021 only) class C extends B { } @@ -233,8 +233,8 @@ class C extends B { })(); export { }; //// [valueNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -242,8 +242,8 @@ class C extends B { })(); export { }; //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -251,8 +251,8 @@ class C extends B { })(); export { }; //// [enumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -263,8 +263,8 @@ class C extends B { })(); export { }; //// [enumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -275,8 +275,8 @@ class C extends B { })(); export { }; //// [constEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -287,8 +287,8 @@ class C extends B { })(); export { }; //// [constEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -299,8 +299,8 @@ class C extends B { })(); export { }; //// [namespaceImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -308,8 +308,8 @@ class C extends B { })(); export { }; //// [namespaceImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -317,8 +317,8 @@ class C extends B { })(); export { }; //// [namedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -326,8 +326,8 @@ class C extends B { })(); export { }; //// [namedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -335,8 +335,8 @@ class C extends B { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -344,8 +344,8 @@ class C extends B { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -353,8 +353,8 @@ class C extends B { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -362,8 +362,8 @@ class C extends B { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -371,8 +371,8 @@ class C extends B { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -380,8 +380,8 @@ class C extends B { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -389,8 +389,8 @@ class C extends B { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -398,8 +398,8 @@ class C extends B { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -407,8 +407,8 @@ class C extends B { })(); export { }; //// [defaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -416,8 +416,8 @@ class C extends B { })(); export { }; //// [defaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -425,8 +425,8 @@ class C extends B { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -434,8 +434,8 @@ class C extends B { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -443,8 +443,8 @@ class C extends B { })(); export { }; //// [typeInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -452,8 +452,8 @@ class C extends B { })(); export { }; //// [typeInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -461,8 +461,8 @@ class C extends B { })(); export { }; //// [interfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -470,8 +470,8 @@ class C extends B { })(); export { }; //// [interfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -479,8 +479,8 @@ class C extends B { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -488,8 +488,8 @@ class C extends B { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } (()=>{ @@ -497,8 +497,8 @@ class C extends B { })(); export { }; //// [classExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (class Reflect { }); // no collision class C extends B { @@ -508,8 +508,8 @@ class C extends B { })(); export { }; //// [classExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (class Reflect { }); // no collision class C extends B { @@ -519,8 +519,8 @@ class C extends B { })(); export { }; //// [inContainingClassExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var _Reflect; _Reflect = class Reflect { }, (()=>{ @@ -532,8 +532,8 @@ _Reflect = class Reflect { })(), _Reflect; export { }; //// [inContainingClassExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var _Reflect; _Reflect = class Reflect { }, (()=>{ @@ -545,8 +545,8 @@ _Reflect = class Reflect { })(), _Reflect; export { }; //// [funcExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() {}); // no collision class C extends B { } @@ -555,8 +555,8 @@ class C extends B { })(); export { }; //// [funcExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() {}); // no collision class C extends B { } @@ -565,8 +565,8 @@ class C extends B { })(); export { }; //// [inContainingFuncExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() { class C extends B { } @@ -576,8 +576,8 @@ import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; }); export { }; //// [inContainingFuncExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (function Reflect() { class C extends B { } diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).2.minified.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).2.minified.js index 372e8b7610e6..6afa43eade80 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).2.minified.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es2021).2.minified.js @@ -7,8 +7,8 @@ Baz || (Baz = {}); export default class { } //// [locals.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = [ @@ -57,14 +57,14 @@ C._ = [ Reflect || (Reflect = {}), _get(_get_prototype_of(C), "w", C).call(C); })(), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; @@ -72,8 +72,8 @@ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; @@ -81,14 +81,14 @@ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock1.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock2.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var { Reflect } = { Reflect: null }; @@ -96,8 +96,8 @@ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; var [Reflect] = [ null ]; @@ -105,248 +105,248 @@ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticField.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticBlock.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticField.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticBlock.ts] var Reflect; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; Reflect || (Reflect = {}); class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingClassExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (()=>{ class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); })(); //// [inContainingClassExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; (()=>{ class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); })(); //// [funcExprInContainingScopeStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcExprInContainingScopeStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C extends B { } _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingFuncExprStaticField.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; //// [inContainingFuncExprStaticBlock.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).1.normal.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).1.normal.js index 9782e90a204b..4ec85f8e7dc8 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).1.normal.js @@ -1,6 +1,6 @@ //// [superInStaticMembers1.ts] //// [external.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Reflect = function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -13,11 +13,11 @@ var _default = function _default() { }; export { _default as default }; //// [locals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -147,11 +147,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticField1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = null; // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -168,11 +168,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticField2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = { Reflect: null }.Reflect; // collision (es2015-es2021 only) @@ -191,11 +191,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticField3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = null; // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -212,11 +212,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticBlock1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = null; // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -233,11 +233,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticBlock2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = { Reflect: null }.Reflect; // collision (es2015-es2021 only) @@ -256,11 +256,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [varInContainingScopeStaticBlock3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = null; // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -277,11 +277,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [classDeclInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -302,11 +302,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [classDeclInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect = function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -327,11 +327,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [funcDeclInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Reflect() {} // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -348,11 +348,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [funcDeclInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function Reflect() {} // collision (es2015-es2021 only) var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -369,11 +369,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [valueNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -389,11 +389,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -409,11 +409,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [enumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -432,11 +432,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [enumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -455,11 +455,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [constEnumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -478,11 +478,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [constEnumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Reflect// collision (es2015-es2021 only) ; (function(Reflect) {})(Reflect || (Reflect = {})); @@ -501,11 +501,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namespaceImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -521,11 +521,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namespaceImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -541,11 +541,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -561,11 +561,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -581,11 +581,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -601,11 +601,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -621,11 +621,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -641,11 +641,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -661,11 +661,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -681,11 +681,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -701,11 +701,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -721,11 +721,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -741,11 +741,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [defaultImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -761,11 +761,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [defaultImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -781,11 +781,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -801,11 +801,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -821,11 +821,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -841,11 +841,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [typeInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -861,11 +861,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [interfaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -881,11 +881,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [interfaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -901,11 +901,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -921,11 +921,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); @@ -941,11 +941,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [classExprInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -965,11 +965,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [classExprInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -989,11 +989,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [inContainingClassExprStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _Reflect; _Reflect = function Reflect() { "use strict"; @@ -1015,11 +1015,11 @@ _Reflect = function Reflect() { }(), _Reflect; export { }; //// [inContainingClassExprStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _Reflect; _Reflect = function Reflect() { "use strict"; @@ -1041,11 +1041,11 @@ _Reflect = function Reflect() { }(), _Reflect; export { }; //// [funcExprInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() {}); // no collision var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -1062,11 +1062,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [funcExprInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() {}); // no collision var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -1083,11 +1083,11 @@ var C = /*#__PURE__*/ function(B1) { })(); export { }; //// [inContainingFuncExprStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() { var C = /*#__PURE__*/ function(B1) { "use strict"; @@ -1105,11 +1105,11 @@ import _create_super from "@swc/helpers/src/_create_super.mjs"; }); export { }; //// [inContainingFuncExprStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (function Reflect() { var C = /*#__PURE__*/ function(B1) { "use strict"; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).2.minified.js b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).2.minified.js index f13c7b12f330..c33b741eb777 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1(target=es5).2.minified.js @@ -1,6 +1,6 @@ //// [superInStaticMembers1.ts] //// [external.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Reflect = function Reflect() { "use strict"; _class_call_check(this, Reflect); @@ -13,11 +13,11 @@ var _default = function _default() { }; export { _default as default }; //// [locals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -50,11 +50,11 @@ var C = function(B1) { Reflect || (Reflect = {}), _get(_get_prototype_of(C), "w", C).call(C); }(), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C), _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -66,11 +66,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -82,11 +82,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticField3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -98,11 +98,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -114,11 +114,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -130,11 +130,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [varInContainingScopeStaticBlock3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -146,11 +146,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -162,11 +162,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classDeclInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -178,11 +178,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -194,11 +194,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcDeclInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -210,11 +210,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -226,11 +226,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [valueNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -242,11 +242,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Reflect || (Reflect = {}); var Reflect, C = function(B1) { "use strict"; @@ -259,11 +259,11 @@ var Reflect, C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [enumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Reflect || (Reflect = {}); var Reflect, C = function(B1) { "use strict"; @@ -276,11 +276,11 @@ var Reflect, C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Reflect || (Reflect = {}); var Reflect, C = function(B1) { "use strict"; @@ -293,11 +293,11 @@ var Reflect, C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [constEnumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Reflect || (Reflect = {}); var Reflect, C = function(B1) { "use strict"; @@ -310,11 +310,11 @@ var Reflect, C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -326,11 +326,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namespaceImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -342,11 +342,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -358,11 +358,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -374,11 +374,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -390,11 +390,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfInterfaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -406,11 +406,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -422,11 +422,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfUninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -438,11 +438,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -454,11 +454,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [namedImportOfConstEnumInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -470,11 +470,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -486,11 +486,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyNamedImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -502,11 +502,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -518,11 +518,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [defaultImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -534,11 +534,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -550,11 +550,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeOnlyDefaultImportInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -566,11 +566,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -582,11 +582,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [typeInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -598,11 +598,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -614,11 +614,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [interfaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -630,11 +630,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -646,11 +646,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [uninstantiatedNamespaceInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -662,11 +662,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -678,11 +678,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [classExprInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -694,11 +694,11 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingClassExprStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function() { var C = function(B1) { "use strict"; @@ -712,11 +712,11 @@ import _create_super from "@swc/helpers/src/_create_super.mjs"; C._ = _get(_get_prototype_of(C), "w", C).call(C); }(); //// [inContainingClassExprStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; !function() { var C = function(B1) { "use strict"; @@ -730,11 +730,11 @@ import _create_super from "@swc/helpers/src/_create_super.mjs"; _get(_get_prototype_of(C), "w", C).call(C); }(); //// [funcExprInContainingScopeStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -746,11 +746,11 @@ var C = function(B1) { }(B); C._ = _get(_get_prototype_of(C), "w", C).call(C); //// [funcExprInContainingScopeStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); @@ -762,14 +762,14 @@ var C = function(B1) { }(B); _get(_get_prototype_of(C), "w", C).call(C); //// [inContainingFuncExprStaticField.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; //// [inContainingFuncExprStaticBlock.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superMethodCall.1.normal.js b/crates/swc/tests/tsc-references/superMethodCall.1.normal.js index 12b42d6985ec..4c28e54c7469 100644 --- a/crates/swc/tests/tsc-references/superMethodCall.1.normal.js +++ b/crates/swc/tests/tsc-references/superMethodCall.1.normal.js @@ -1,5 +1,5 @@ //// [superMethodCall.ts] -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; class Base { method() {} } diff --git a/crates/swc/tests/tsc-references/superMethodCall.2.minified.js b/crates/swc/tests/tsc-references/superMethodCall.2.minified.js index 45fd9d064cbf..c1aa31e72649 100644 --- a/crates/swc/tests/tsc-references/superMethodCall.2.minified.js +++ b/crates/swc/tests/tsc-references/superMethodCall.2.minified.js @@ -1,2 +1,2 @@ //// [superMethodCall.ts] -import "@swc/helpers/src/_async_to_generator.mjs"; +import "@swc/helpers/_/_async_to_generator"; diff --git a/crates/swc/tests/tsc-references/superPropertyAccessNoError.1.normal.js b/crates/swc/tests/tsc-references/superPropertyAccessNoError.1.normal.js index c6ed5d8db914..9c06ef9123bc 100644 --- a/crates/swc/tests/tsc-references/superPropertyAccessNoError.1.normal.js +++ b/crates/swc/tests/tsc-references/superPropertyAccessNoError.1.normal.js @@ -5,13 +5,13 @@ //super.publicInstanceMemberFunction in lambda in member function //super.publicStaticMemberFunction in static member function of derived class //super.publicStaticMemberFunction in static member accessor(get and set) of derived class -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var SomeBaseClass = /*#__PURE__*/ function() { "use strict"; function SomeBaseClass() { diff --git a/crates/swc/tests/tsc-references/superPropertyAccessNoError.2.minified.js b/crates/swc/tests/tsc-references/superPropertyAccessNoError.2.minified.js index b7ab69c3f146..8d8dc036262d 100644 --- a/crates/swc/tests/tsc-references/superPropertyAccessNoError.2.minified.js +++ b/crates/swc/tests/tsc-references/superPropertyAccessNoError.2.minified.js @@ -1,11 +1,11 @@ //// [superPropertyAccessNoError.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; new (function(SomeBaseClass) { "use strict"; _inherits(SomeDerivedClass, SomeBaseClass); diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.1.normal.js index 01e86e5e0ced..f65b9d68ec0a 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.1.normal.js @@ -1,9 +1,9 @@ //// [superSymbolIndexedAccess5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var symbol; var Foo = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.2.minified.js index afa8a9c76a2e..1775ed6345d1 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5.2.minified.js @@ -1,6 +1,6 @@ //// [superSymbolIndexedAccess5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.1.normal.js index 46215b059878..f83846f767e1 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.1.normal.js @@ -1,9 +1,9 @@ //// [superSymbolIndexedAccess6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var symbol; var Foo = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.2.minified.js index 237084814c00..8a3394890e67 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6.2.minified.js @@ -1,6 +1,6 @@ //// [superSymbolIndexedAccess6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/switchStatements.1.normal.js b/crates/swc/tests/tsc-references/switchStatements.1.normal.js index 5067e31e45ac..18c47e9d3719 100644 --- a/crates/swc/tests/tsc-references/switchStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/switchStatements.1.normal.js @@ -1,8 +1,8 @@ //// [switchStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var M; (function(M) { var fn = function fn(x) { diff --git a/crates/swc/tests/tsc-references/switchStatements.2.minified.js b/crates/swc/tests/tsc-references/switchStatements.2.minified.js index df1d4bd43910..2c776c092e77 100644 --- a/crates/swc/tests/tsc-references/switchStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/switchStatements.2.minified.js @@ -1,8 +1,8 @@ //// [switchStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; (M || (M = {})).fn = function(x) { return ""; }, void 0 === x || _type_of(x), void 0 === M || _type_of(M), M.fn(1); diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.1.normal.js index 7a0f374cf83c..cfc2b193b4b9 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.2.minified.js index 6810ad15fa0e..bbcd105e2c3e 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.1.normal.js index d055101540e2..d791c0aa7d77 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.1.normal.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsTypeArgumentInference.ts] // Generic tag with one parameter -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.2.minified.js index 0ea59c59e680..f0b633c22214 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsTypeArgumentInference.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.1.normal.js index a9f63a1087ca..99ff38506e7c 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithIncompatibleTypedTags.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.2.minified.js index fd690bbda91e..590c2d4e2353 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsWithIncompatibleTypedTags.ts] var f; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.1.normal.js index dae68424f776..db1b8820d444 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithManyCallAndMemberExpressions.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.2.minified.js index bc82d929d56c..5da50797cded 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsWithManyCallAndMemberExpressions.ts] var f; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.1.normal.js index b46c2880cb61..fd98564e7b53 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithOverloadResolution1.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.2.minified.js index 2bf3a9892c3e..fccc55e535df 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithOverloadResolution1.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.1.normal.js index 706cfbb8635b..264ff2c557bd 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithOverloadResolution2.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.2.minified.js index aa0bf633af49..39adc9e896b1 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithOverloadResolution2.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.1.normal.js index 39b7e8d9befc..71e83a9cbed0 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.1.normal.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsWithOverloadResolution3.ts] // Ambiguous call picks the first overload in declaration order -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.2.minified.js index fd7615010108..96260feeb957 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithOverloadResolution3.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.1.normal.js index 3233cf9b0788..c1d9bf261066 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTagNamedDeclare.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.2.minified.js index 197f124c31a7..4da4d6f54bce 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTagNamedDeclare.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.1.normal.js index 28fde9e65ff7..dbc9628e7e5e 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTagsTypedAsAny.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.2.minified.js index 6b63330e03da..38f8745b2076 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsWithTagsTypedAsAny.ts] var f; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.1.normal.js index 10bf94745f2a..c0e0c04ff6e3 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.2.minified.js index 7351a2ffc789..73b993d4f399 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.2.minified.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.1.normal.js index 74d016f158be..fba7475b3cbd 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateStringsWithTypedTags.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.2.minified.js index 864af2f69ae9..fe1fb8e4b921 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateStringsWithTypedTags.ts] var f; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.1.normal.js index e0faec5f7aee..480003f1c05a 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateUntypedTagCall01.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.2.minified.js index c6913c17611a..953d7a755c79 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateUntypedTagCall01.ts] var tag; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.1.normal.js index 094c0ebf136c..a78bb1819354 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.1.normal.js @@ -1,6 +1,6 @@ //// [taggedTemplateWithConstructableTag01.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.2.minified.js index 95a0855b03f8..b3bcd8bd2696 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateWithConstructableTag01.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.1.normal.js index e4230946ad4d..764c0a4ff41b 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.1.normal.js @@ -1,5 +1,5 @@ //// [taggedTemplateWithConstructableTag02.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.2.minified.js index 0b50dba24c58..3771fa8cdd3d 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02.2.minified.js @@ -1,6 +1,6 @@ //// [taggedTemplateWithConstructableTag02.ts] var tag; -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.1.normal.js b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.1.normal.js index 3cd5989fcdc9..957a24e24a98 100644 --- a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.1.normal.js +++ b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.1.normal.js @@ -1,5 +1,5 @@ //// [templateLiteralTypesPatterns.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; // ok var a = "/bin"; // not ok diff --git a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.2.minified.js b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.2.minified.js index 14272313abc1..d46d383978b0 100644 --- a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.2.minified.js +++ b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns.2.minified.js @@ -1,5 +1,5 @@ //// [templateLiteralTypesPatterns.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; bools("true"), bools("false"), bools("other"), nullishes("null"), nullishes("undefined"), nullishes("0"), nullishes("false"), nullishes("NaN"), nullishes(""), nullishes("other"), numbers("1"), numbers("-1"), numbers("0"), numbers("0b1"), numbers("0x1"), numbers("0o1"), numbers("1e21"), numbers("1E21"), numbers("1e-21"), numbers("1E-21"), numbers("1.1"), numbers("-1.1"), numbers("-1.1e-10"), numbers("-1.1E-10"), numbers("1.1e-10"), numbers("?"), numbers("NaN"), numbers("Infinity"), numbers("+Infinity"), numbers("-Infinity"), numbers("1_000"), numbers("a10"), numbers("10a"), numbers("- 1"), numbers("-/**/1"), bigints("1"), bigints("-1"), bigints("0"), bigints("0b1"), bigints("0x1"), bigints("0o1"), bigints("1e21"), bigints("1E21"), bigints("1e-21"), bigints("1E-21"), bigints("1.0"), bigints("1.1"), bigints("-1.1"), bigints("-1.1e-10"), bigints("-1.1E-10"), bigints("1.1e-10"), bigints("?"), bigints("NaN"), bigints("Infinity"), bigints("+Infinity"), bigints("-Infinity"), bigints("1_000"), bigints("- 1"), bigints("-/**/1"), bigints("a10n"), bigints("10an"), bigints("1n"), bigints("-1n"), bigints("0n"), bigints("0b1n"), bigints("0x1n"), bigints("0o1n"), bigints("1e21n"), bigints("1E21n"), bigints("1e-21n"), bigints("1E-21n"), bigints("1.1n"), bigints("-1.1n"), bigints("-1.1e-10n"), bigints("-1.1E-10n"), bigints("1.1e-10n"), num = str, anyish = "bno", str = anyish = str = num, num = anyish = num, anyish = "aok"; export var AA = function AA() { "use strict"; diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOf.1.normal.js b/crates/swc/tests/tsc-references/templateStringInInstanceOf.1.normal.js index 518dc4839446..3f3ad354c1e3 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOf.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOf.1.normal.js @@ -1,3 +1,3 @@ //// [templateStringInInstanceOf.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var x = _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOf.2.minified.js b/crates/swc/tests/tsc-references/templateStringInInstanceOf.2.minified.js index b91d8780d380..ebd6e7ded43b 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOf.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOf.2.minified.js @@ -1,3 +1,3 @@ //// [templateStringInInstanceOf.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.1.normal.js index f69d0b1d8046..889be8607a45 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.1.normal.js @@ -1,5 +1,5 @@ //// [templateStringInTaggedTemplate.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.2.minified.js index 262f7f964e6a..02ad672269e5 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate.2.minified.js @@ -1,5 +1,5 @@ //// [templateStringInTaggedTemplate.ts] -import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import { _ as _tagged_template_literal } from "@swc/helpers/_/_tagged_template_literal"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOf.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTypeOf.1.normal.js index 38fa9d79e694..857cdd31d553 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOf.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOf.1.normal.js @@ -1,3 +1,3 @@ //// [templateStringInTypeOf.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var x = _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOf.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTypeOf.2.minified.js index 441990517f54..2e21ed1c6f91 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOf.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOf.2.minified.js @@ -1,3 +1,3 @@ //// [templateStringInTypeOf.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.1.normal.js index b03aca556806..2efbfb8e81fc 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.1.normal.js @@ -1,3 +1,3 @@ //// [templateStringWithEmbeddedInstanceOf.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var x = "abc".concat(_instanceof("hello", String), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.2.minified.js index 15b082976371..8e0d6c45a6f3 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf.2.minified.js @@ -1,3 +1,3 @@ //// [templateStringWithEmbeddedInstanceOf.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof("hello", String); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.1.normal.js index 99e576b5b3dc..97ef745249b3 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.1.normal.js @@ -1,3 +1,3 @@ //// [templateStringWithEmbeddedTypeOfOperator.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var x = "abc".concat(_type_of("hi"), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.2.minified.js index 91c2ad261d05..828444f13423 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator.2.minified.js @@ -1,3 +1,3 @@ //// [templateStringWithEmbeddedTypeOfOperator.ts] -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; _type_of("hi"); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).1.normal.js index b3df98e4d699..b528b2aa90b5 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).1.normal.js @@ -1,11 +1,11 @@ //// [thisAndSuperInStaticMembers1.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _update from "@swc/helpers/src/_update.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _update } from "@swc/helpers/_/_update"; class C extends B { constructor(...args){ super(...args); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).2.minified.js index f6a5a06ccba2..0de88944a0f6 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1(target=es2015).2.minified.js @@ -1,12 +1,12 @@ //// [thisAndSuperInStaticMembers1.ts] var _tmp; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _update from "@swc/helpers/src/_update.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _update } from "@swc/helpers/_/_update"; class C extends B { constructor(...args){ super(...args), _define_property(this, "x", 1), _define_property(this, "y", this.x), _define_property(this, "z", super.f()); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).1.normal.js index ddc3482eabe0..05661646db13 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).1.normal.js @@ -1,10 +1,10 @@ //// [thisAndSuperInStaticMembers2.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _update from "@swc/helpers/src/_update.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _update } from "@swc/helpers/_/_update"; class C extends B { constructor(...args){ super(...args); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).2.minified.js index 7a44d70d08f3..18022202bee4 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2(target=es2015).2.minified.js @@ -1,10 +1,10 @@ //// [thisAndSuperInStaticMembers2.ts] -import _extends from "@swc/helpers/src/_extends.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _set from "@swc/helpers/src/_set.mjs"; -import _update from "@swc/helpers/src/_update.mjs"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _set } from "@swc/helpers/_/_set"; +import { _ as _update } from "@swc/helpers/_/_update"; class C extends B { constructor(...args){ super(...args), this.x = 1, this.y = this.x, this.z = super.f(); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.1.normal.js index 85edb90800be..111673d8464d 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.1.normal.js @@ -1,11 +1,11 @@ //// [thisAndSuperInStaticMembers3.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.2.minified.js index fba51e983e0b..db9fedae2509 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3.2.minified.js @@ -1,11 +1,11 @@ //// [thisAndSuperInStaticMembers3.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.1.normal.js index 57d948753f34..9560d2feee63 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.1.normal.js @@ -1,10 +1,10 @@ //// [thisAndSuperInStaticMembers4.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(B1) { "use strict"; _inherits(C, B1); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.2.minified.js index e177b5e31f97..590b18fc210e 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4.2.minified.js @@ -1,10 +1,10 @@ //// [thisAndSuperInStaticMembers4.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function(B1) { "use strict"; _inherits(C, B1); diff --git a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.1.normal.js b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.1.normal.js index bb76d6dfee68..e7888db13d02 100644 --- a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.1.normal.js +++ b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.1.normal.js @@ -1,5 +1,5 @@ //// [thisInInstanceMemberInitializer.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.2.minified.js b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.2.minified.js index 194f2c72ec41..0aa376eab1ff 100644 --- a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.2.minified.js +++ b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer.2.minified.js @@ -1,2 +1,2 @@ //// [thisInInstanceMemberInitializer.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/thisInObjectLiterals.1.normal.js b/crates/swc/tests/tsc-references/thisInObjectLiterals.1.normal.js index b46ddf15cddd..9ae31d63c37a 100644 --- a/crates/swc/tests/tsc-references/thisInObjectLiterals.1.normal.js +++ b/crates/swc/tests/tsc-references/thisInObjectLiterals.1.normal.js @@ -1,5 +1,5 @@ //// [thisInObjectLiterals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var MyClass = /*#__PURE__*/ function() { "use strict"; function MyClass() { diff --git a/crates/swc/tests/tsc-references/thisInObjectLiterals.2.minified.js b/crates/swc/tests/tsc-references/thisInObjectLiterals.2.minified.js index af6538856376..9ce3f4d27e71 100644 --- a/crates/swc/tests/tsc-references/thisInObjectLiterals.2.minified.js +++ b/crates/swc/tests/tsc-references/thisInObjectLiterals.2.minified.js @@ -1,2 +1,2 @@ //// [thisInObjectLiterals.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.1.normal.js b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.1.normal.js index efc773caf2d5..27208a3ae444 100644 --- a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.1.normal.js +++ b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.1.normal.js @@ -1,5 +1,5 @@ //// [thisPropertyAssignmentCircular.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.2.minified.js b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.2.minified.js index 2f05337e70bb..d13282567f93 100644 --- a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.2.minified.js +++ b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular.2.minified.js @@ -1,5 +1,5 @@ //// [thisPropertyAssignmentCircular.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/thisTypeAccessibility.1.normal.js b/crates/swc/tests/tsc-references/thisTypeAccessibility.1.normal.js index a4f0584a8e3e..4442a97b50c7 100644 --- a/crates/swc/tests/tsc-references/thisTypeAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeAccessibility.1.normal.js @@ -1,5 +1,5 @@ //// [thisTypeAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/tsc-references/thisTypeAccessibility.2.minified.js b/crates/swc/tests/tsc-references/thisTypeAccessibility.2.minified.js index 04b8049f344d..1f193213ec03 100644 --- a/crates/swc/tests/tsc-references/thisTypeAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeAccessibility.2.minified.js @@ -1,5 +1,5 @@ //// [thisTypeAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass), this.p = 123, this.pp = 123, this.ppp = 123; diff --git a/crates/swc/tests/tsc-references/thisTypeAndConstraints.1.normal.js b/crates/swc/tests/tsc-references/thisTypeAndConstraints.1.normal.js index 4a306de325e2..416fe6833b65 100644 --- a/crates/swc/tests/tsc-references/thisTypeAndConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeAndConstraints.1.normal.js @@ -1,5 +1,5 @@ //// [thisTypeAndConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/thisTypeAndConstraints.2.minified.js b/crates/swc/tests/tsc-references/thisTypeAndConstraints.2.minified.js index 6c02ee0f048a..96fd7b24333b 100644 --- a/crates/swc/tests/tsc-references/thisTypeAndConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeAndConstraints.2.minified.js @@ -1,2 +1,2 @@ //// [thisTypeAndConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/thisTypeErrors.1.normal.js b/crates/swc/tests/tsc-references/thisTypeErrors.1.normal.js index a0702a9fc9b2..df3c2c4ae305 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors.1.normal.js @@ -1,5 +1,5 @@ //// [thisTypeErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x1; var x2; var x3; diff --git a/crates/swc/tests/tsc-references/thisTypeErrors.2.minified.js b/crates/swc/tests/tsc-references/thisTypeErrors.2.minified.js index 9c5c19d0a693..369b83a700f6 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors.2.minified.js @@ -1,6 +1,6 @@ //// [thisTypeErrors.ts] var N1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { "use strict"; function C2() { diff --git a/crates/swc/tests/tsc-references/thisTypeErrors2.1.normal.js b/crates/swc/tests/tsc-references/thisTypeErrors2.1.normal.js index d4de53b2ee36..f0941114a4d5 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors2.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors2.1.normal.js @@ -1,5 +1,5 @@ //// [thisTypeErrors2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Base = function Base(a) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/thisTypeErrors2.2.minified.js b/crates/swc/tests/tsc-references/thisTypeErrors2.2.minified.js index 24ebaf8ad001..0e9e4930d6fd 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors2.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors2.2.minified.js @@ -1,2 +1,2 @@ //// [thisTypeErrors2.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/thisTypeInAccessors.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInAccessors.1.normal.js index 77e421e28705..b9896e3c6fcd 100644 --- a/crates/swc/tests/tsc-references/thisTypeInAccessors.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInAccessors.1.normal.js @@ -1,6 +1,6 @@ //// [thisTypeInAccessors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var explicit = { n: 12, get x () { diff --git a/crates/swc/tests/tsc-references/thisTypeInAccessors.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInAccessors.2.minified.js index 943b424e6dc4..57f20defc8f7 100644 --- a/crates/swc/tests/tsc-references/thisTypeInAccessors.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInAccessors.2.minified.js @@ -1,3 +1,3 @@ //// [thisTypeInAccessors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/thisTypeInClasses.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInClasses.1.normal.js index c430272be94a..5a85c758e8b7 100644 --- a/crates/swc/tests/tsc-references/thisTypeInClasses.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInClasses.1.normal.js @@ -1,5 +1,5 @@ //// [thisTypeInClasses.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C1 = /*#__PURE__*/ function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/thisTypeInClasses.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInClasses.2.minified.js index a41080460838..470b0e663c01 100644 --- a/crates/swc/tests/tsc-references/thisTypeInClasses.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInClasses.2.minified.js @@ -1,2 +1,2 @@ //// [thisTypeInClasses.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInFunctions.1.normal.js index 6ea61ad0a792..2b45c1a0e14b 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions.1.normal.js @@ -1,8 +1,8 @@ //// [thisTypeInFunctions.ts] // body checking -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _this = this; var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInFunctions.2.minified.js index 3e0051599338..9b2205bef9d7 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions.2.minified.js @@ -1,7 +1,7 @@ //// [thisTypeInFunctions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var explicitCFunction, explicitPropertyFunction, _this = this, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions3.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInFunctions3.1.normal.js index 453eff5e31b0..9e66a3858057 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions3.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions3.1.normal.js @@ -1,7 +1,7 @@ //// [thisTypeInFunctions3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Test = /*#__PURE__*/ function(Base1) { "use strict"; _inherits(Test, Base1); diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions3.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInFunctions3.2.minified.js index ad716b47ddb3..24fe20f23c74 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions3.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions3.2.minified.js @@ -1,5 +1,5 @@ //// [thisTypeInFunctions3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; Base; diff --git a/crates/swc/tests/tsc-references/throwInEnclosingStatements.1.normal.js b/crates/swc/tests/tsc-references/throwInEnclosingStatements.1.normal.js index a81bacdeb12f..4869a2f8b52c 100644 --- a/crates/swc/tests/tsc-references/throwInEnclosingStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/throwInEnclosingStatements.1.normal.js @@ -1,5 +1,5 @@ //// [throwInEnclosingStatements.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function fn(x) { throw x; } diff --git a/crates/swc/tests/tsc-references/throwInEnclosingStatements.2.minified.js b/crates/swc/tests/tsc-references/throwInEnclosingStatements.2.minified.js index b5215e14cdbc..09f52b1fb5a4 100644 --- a/crates/swc/tests/tsc-references/throwInEnclosingStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/throwInEnclosingStatements.2.minified.js @@ -1,4 +1,4 @@ //// [throwInEnclosingStatements.ts] var y; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; throw y; diff --git a/crates/swc/tests/tsc-references/throwStatements.1.normal.js b/crates/swc/tests/tsc-references/throwStatements.1.normal.js index 203d9e0f1857..dc4aa5e75316 100644 --- a/crates/swc/tests/tsc-references/throwStatements.1.normal.js +++ b/crates/swc/tests/tsc-references/throwStatements.1.normal.js @@ -1,7 +1,7 @@ //// [throwStatements.ts] // all legal -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/throwStatements.2.minified.js b/crates/swc/tests/tsc-references/throwStatements.2.minified.js index 6971018ff94b..844658558283 100644 --- a/crates/swc/tests/tsc-references/throwStatements.2.minified.js +++ b/crates/swc/tests/tsc-references/throwStatements.2.minified.js @@ -1,7 +1,7 @@ //// [throwStatements.ts] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; throw !function(M) { M.A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsNoCheckForTypescript.1.normal.js b/crates/swc/tests/tsc-references/tsNoCheckForTypescript.1.normal.js index f4746632f665..b7de3a45aed5 100644 --- a/crates/swc/tests/tsc-references/tsNoCheckForTypescript.1.normal.js +++ b/crates/swc/tests/tsc-references/tsNoCheckForTypescript.1.normal.js @@ -1,6 +1,6 @@ //// [file.ts] // @ts-nocheck -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var a = 1 + {}; // This is an error, ofc, `Operator '+' cannot be applied to types '1' and '{}'`, which will be suppressed by the `nocheck` comment export var Bet = function Bet() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsNoCheckForTypescript.2.minified.js b/crates/swc/tests/tsc-references/tsNoCheckForTypescript.2.minified.js index bda4335c8c8f..11876f87bbcc 100644 --- a/crates/swc/tests/tsc-references/tsNoCheckForTypescript.2.minified.js +++ b/crates/swc/tests/tsc-references/tsNoCheckForTypescript.2.minified.js @@ -1,5 +1,5 @@ //// [file.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var a = 1 + {}; export var Bet = function Bet() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution10.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution10.1.normal.js index 265b3293466a..8408687a2501 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution10.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution10.1.normal.js @@ -14,7 +14,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -26,11 +26,10 @@ define([ return MyComponent; } }); - _class_call_check = _class_call_check.default; var MyComponent = /*#__PURE__*/ function() { "use strict"; function MyComponent() { - _class_call_check(this, MyComponent); + _class_call_check._(this, MyComponent); } var _proto = MyComponent.prototype; _proto.render = function render() {}; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution10.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution10.2.minified.js index 476cf294cd5a..323506c1359b 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution10.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution10.2.minified.js @@ -10,7 +10,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -20,11 +20,11 @@ define([ get: function() { return MyComponent; } - }), _class_call_check = _class_call_check.default; + }); var MyComponent = function() { "use strict"; function MyComponent() { - _class_call_check(this, MyComponent); + _class_call_check._(this, MyComponent); } return MyComponent.prototype.render = function() {}, MyComponent; }(); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution11.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution11.1.normal.js index 15232b4c081d..d01ac98269e1 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution11.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution11.1.normal.js @@ -14,17 +14,16 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _class_call_check = _class_call_check.default; var MyComponent = /*#__PURE__*/ function() { "use strict"; function MyComponent() { - _class_call_check(this, MyComponent); + _class_call_check._(this, MyComponent); } var _proto = MyComponent.prototype; _proto.render = function render() {}; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution11.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution11.2.minified.js index e56bf813bcfb..df6a415e7c1a 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution11.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution11.2.minified.js @@ -10,10 +10,10 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _class_call_check = _class_call_check.default; + }); }); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3.1.normal.js index 3e7faafc424b..d1f818502de1 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; // OK var obj1 = { x: "foo" diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3.2.minified.js index 68e9542f10b5..2eed239fc3d3 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3.2.minified.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread_props(_object_spread({}, { x: 32, y: 32 diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution9.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution9.1.normal.js index f2b59370e51c..061283ec85fa 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution9.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution9.1.normal.js @@ -14,7 +14,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -26,11 +26,10 @@ define([ return MyComponent; } }); - _class_call_check = _class_call_check.default; var MyComponent = /*#__PURE__*/ function() { "use strict"; function MyComponent() { - _class_call_check(this, MyComponent); + _class_call_check._(this, MyComponent); } var _proto = MyComponent.prototype; _proto.render = function render() {}; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution9.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution9.2.minified.js index f926eb100bbb..b86a42078032 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution9.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution9.2.minified.js @@ -10,7 +10,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -20,11 +20,11 @@ define([ get: function() { return MyComponent; } - }), _class_call_check = _class_call_check.default; + }); var MyComponent = function() { "use strict"; function MyComponent() { - _class_call_check(this, MyComponent); + _class_call_check._(this, MyComponent); } return MyComponent.prototype.render = function() {}, MyComponent; }(); diff --git a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.1.normal.js b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.1.normal.js index 9b3b55826bec..ae22208ec2ac 100644 --- a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.1.normal.js @@ -1,7 +1,7 @@ //// [tsxCorrectlyParseLessThanComparison1.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var ShortDetails = /*#__PURE__*/ function(_React_Component) { "use strict"; _inherits(ShortDetails, _React_Component); diff --git a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.2.minified.js b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.2.minified.js index a856cc11f5be..6a5946a59b1c 100644 --- a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1.2.minified.js @@ -1,7 +1,7 @@ //// [tsxCorrectlyParseLessThanComparison1.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var ShortDetails = function(_React_Component) { "use strict"; _inherits(ShortDetails, _React_Component); diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName5.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName5.1.normal.js index 2213d6d8b560..f329387606a8 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName5.1.normal.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName5.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName5.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName5.2.minified.js index 942a703659b7..6ca585f96371 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName5.2.minified.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName5.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName7.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName7.1.normal.js index 689a0133399c..cd10e27d5d2d 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName7.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName7.1.normal.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName7.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName7.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName7.2.minified.js index 9f548ca2b234..d782ec7a5dfa 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName7.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName7.2.minified.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName7.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName8.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName8.1.normal.js index ff8c688bbb4b..0ce5716cdc90 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName8.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName8.1.normal.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName8.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName8.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName8.2.minified.js index e7e1db40fd84..5e656ebc4547 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName8.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName8.2.minified.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName8.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName9.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName9.1.normal.js index 2234af34e743..c91fd3d40d71 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName9.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName9.1.normal.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName9.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = /*#__PURE__*/ function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName9.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName9.2.minified.js index 3e803431a513..11a70d28a981 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName9.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName9.2.minified.js @@ -1,9 +1,9 @@ //// [tsxDynamicTagName9.tsx] //// [react.d.ts] //// [app.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import * as React from "react"; export var Text = function(_React_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxElementResolution.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution.1.normal.js index e67c7c7b2e00..769ebaceb9ba 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution.1.normal.js @@ -1,5 +1,5 @@ //// [tsxElementResolution.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var foundFirst = function foundFirst() { "use strict"; _class_call_check(this, foundFirst); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution.2.minified.js index 0655bb62d689..f2705597ccf5 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution.2.minified.js @@ -1,6 +1,6 @@ //// [tsxElementResolution.tsx] var Dotted; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (Dotted || (Dotted = {})).Name = function Name() { "use strict"; _class_call_check(this, Name); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution19.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution19.1.normal.js index 76cf45ce89ee..c290afc781c8 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution19.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution19.1.normal.js @@ -14,7 +14,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -26,10 +26,9 @@ define([ return MyClass; } }); - _class_call_check = _class_call_check.default; var MyClass = function MyClass() { "use strict"; - _class_call_check(this, MyClass); + _class_call_check._(this, MyClass); }; }); //// [file2.tsx] @@ -37,7 +36,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "react", "./file1" ], function(require, exports, _interop_require_wildcard, _react, _file1) { @@ -45,7 +44,6 @@ define([ Object.defineProperty(exports, "__esModule", { value: true }); - _interop_require_wildcard = _interop_require_wildcard.default; - _react = /*#__PURE__*/ _interop_require_wildcard(_react); + _react = /*#__PURE__*/ _interop_require_wildcard._(_react); /*#__PURE__*/ _react.createElement(_file1.MyClass, null); }); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution19.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution19.2.minified.js index 23f9263a1b29..6322491bb440 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution19.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution19.2.minified.js @@ -10,7 +10,7 @@ define([ define([ "require", "exports", - "@swc/helpers/src/_class_call_check.mjs" + "@swc/helpers/_/_class_call_check" ], function(require, exports, _class_call_check) { "use strict"; Object.defineProperty(exports, "__esModule", { @@ -20,22 +20,22 @@ define([ get: function() { return MyClass; } - }), _class_call_check = _class_call_check.default; + }); var MyClass = function MyClass() { "use strict"; - _class_call_check(this, MyClass); + _class_call_check._(this, MyClass); }; }); //// [file2.tsx] define([ "require", "exports", - "@swc/helpers/src/_interop_require_wildcard.mjs", + "@swc/helpers/_/_interop_require_wildcard", "react", "./file1" ], function(require, exports, _interop_require_wildcard, _react, _file1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _react = (_interop_require_wildcard = _interop_require_wildcard.default)(_react), _file1.MyClass; + }), _react = _interop_require_wildcard._(_react), _file1.MyClass; }); diff --git a/crates/swc/tests/tsc-references/tsxEmit1.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit1.1.normal.js index 192ad111c9fd..38591ed8e790 100644 --- a/crates/swc/tests/tsc-references/tsxEmit1.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit1.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var p; var selfClosed1 = /*#__PURE__*/ React.createElement("div", null); var selfClosed2 = /*#__PURE__*/ React.createElement("div", { diff --git a/crates/swc/tests/tsc-references/tsxEmit1.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit1.2.minified.js index 3c9a5156b291..10eb5118dcb0 100644 --- a/crates/swc/tests/tsc-references/tsxEmit1.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit1.2.minified.js @@ -1,3 +1,3 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/tsxEmit2.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit2.1.normal.js index e154b7758ae1..65b5743cad71 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit2.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", p1, p2); var spreads2 = /*#__PURE__*/ React.createElement("div", p1, p2); diff --git a/crates/swc/tests/tsc-references/tsxEmit2.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit2.2.minified.js index 5c674536b233..48eed89ed72c 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit2.2.minified.js @@ -1,7 +1,7 @@ //// [file.tsx] var p1, p2, p3; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread({ x: p3 }, p1), _object_spread_props(_object_spread({}, p1), { diff --git a/crates/swc/tests/tsc-references/tsxEmit3.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit3.1.normal.js index e2f5037a62d8..bc65d2df71a0 100644 --- a/crates/swc/tests/tsc-references/tsxEmit3.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit3.1.normal.js @@ -1,5 +1,5 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var Foo1 = function Foo1() { diff --git a/crates/swc/tests/tsc-references/tsxEmit3.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit3.2.minified.js index c55243b302ef..c77425cbedbb 100644 --- a/crates/swc/tests/tsc-references/tsxEmit3.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit3.2.minified.js @@ -1,6 +1,6 @@ //// [file.tsx] var M; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; !function(M) { M.Foo = function Foo1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.1.normal.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.1.normal.js index 0e239c95e058..67e5ccb9fd7a 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.1.normal.js @@ -13,18 +13,18 @@ Object.defineProperty(exports, "App", { return App; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; -var _react = /*#__PURE__*/ _interop_require_wildcard(require("react")); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _create_super = require("@swc/helpers/_/_create_super"); +var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); var _button = require("./button"); var App = /*#__PURE__*/ function(_React_Component) { "use strict"; - _inherits(App, _React_Component); - var _super = _create_super(App); + _inherits._(App, _React_Component); + var _super = _create_super._(App); function App() { - _class_call_check(this, App); + _class_call_check._(this, App); return _super.apply(this, arguments); } var _proto = App.prototype; @@ -44,17 +44,17 @@ Object.defineProperty(exports, "Button", { return Button; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; -var _inherits = require("@swc/helpers/lib/_inherits.js").default; -var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -var _create_super = require("@swc/helpers/lib/_create_super.js").default; -var _react = /*#__PURE__*/ _interop_require_wildcard(require("react")); +var _class_call_check = require("@swc/helpers/_/_class_call_check"); +var _inherits = require("@swc/helpers/_/_inherits"); +var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +var _create_super = require("@swc/helpers/_/_create_super"); +var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); var Button = /*#__PURE__*/ function(_React_Component) { "use strict"; - _inherits(Button, _React_Component); - var _super = _create_super(Button); + _inherits._(Button, _React_Component); + var _super = _create_super._(Button); function Button() { - _class_call_check(this, Button); + _class_call_check._(this, Button); return _super.apply(this, arguments); } var _proto = Button.prototype; diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.2.minified.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.2.minified.js index 5f1f8fb172d9..996c419203cf 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1.2.minified.js @@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { return App; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _inherits = require("@swc/helpers/lib/_inherits.js").default, _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, _create_super = require("@swc/helpers/lib/_create_super.js").default, _react = _interop_require_wildcard(require("react")), _button = require("./button"), App = function(_React_Component) { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), _create_super = require("@swc/helpers/_/_create_super"), _react = _interop_require_wildcard._(require("react")), _button = require("./button"), App = function(_React_Component) { "use strict"; - _inherits(App, _React_Component); - var _super = _create_super(App); + _inherits._(App, _React_Component); + var _super = _create_super._(App); function App() { - return _class_call_check(this, App), _super.apply(this, arguments); + return _class_call_check._(this, App), _super.apply(this, arguments); } return App.prototype.render = function() { return _react.createElement(_button.Button, null); @@ -33,12 +33,12 @@ Object.defineProperty(exports, "__esModule", { return Button; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, _inherits = require("@swc/helpers/lib/_inherits.js").default, _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default, _create_super = require("@swc/helpers/lib/_create_super.js").default, _react = _interop_require_wildcard(require("react")), Button = function(_React_Component) { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"), _create_super = require("@swc/helpers/_/_create_super"), _react = _interop_require_wildcard._(require("react")), Button = function(_React_Component) { "use strict"; - _inherits(Button, _React_Component); - var _super = _create_super(Button); + _inherits._(Button, _React_Component); + var _super = _create_super._(Button); function Button() { - return _class_call_check(this, Button), _super.apply(this, arguments); + return _class_call_check._(this, Button), _super.apply(this, arguments); } return Button.prototype.render = function() { return _react.createElement("button", null, "Some button"); diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.1.normal.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.1.normal.js index 80e8f7215c18..96dbc17e4a8e 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.1.normal.js @@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default; -var _mod = /*#__PURE__*/ _interop_require_default(require("mod")); +var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); +var _mod = /*#__PURE__*/ _interop_require_default._(require("mod")); // Should see mod_1['default'] in emit here /*#__PURE__*/ React.createElement(Foo, { handler: _mod.default diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.2.minified.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.2.minified.js index 09e6148213da..8b1bac742d6d 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2.2.minified.js @@ -7,5 +7,5 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _mod = (0, require("@swc/helpers/lib/_interop_require_default.js").default)(require("mod")); +var _mod = require("@swc/helpers/_/_interop_require_default")._(require("mod")); Foo, _mod.default, Foo, _mod.default; diff --git a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.1.normal.js b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.1.normal.js index 90d45ab26434..1f75d327e719 100644 --- a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.1.normal.js @@ -1,7 +1,7 @@ //// [tsxLibraryManagedAttributes.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Component = /*#__PURE__*/ function(ReactComponent1) { "use strict"; _inherits(Component, ReactComponent1); diff --git a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.2.minified.js b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.2.minified.js index 9700aa10c684..5c94aff1c1a0 100644 --- a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes.2.minified.js @@ -1,7 +1,7 @@ //// [tsxLibraryManagedAttributes.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Component = function(ReactComponent1) { "use strict"; _inherits(Component, ReactComponent1); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit1.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit1.1.normal.js index e0a04b826f65..250c1f209264 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit1.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit1.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; var p; var selfClosed1 = /*#__PURE__*/ React.createElement("div", null); var selfClosed2 = /*#__PURE__*/ React.createElement("div", { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit1.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit1.2.minified.js index 3c9a5156b291..10eb5118dcb0 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit1.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit1.2.minified.js @@ -1,3 +1,3 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit2.1.normal.js index e154b7758ae1..65b5743cad71 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", p1, p2); var spreads2 = /*#__PURE__*/ React.createElement("div", p1, p2); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit2.2.minified.js index 5c674536b233..48eed89ed72c 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2.2.minified.js @@ -1,7 +1,7 @@ //// [file.tsx] var p1, p2, p3; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; _object_spread({ x: p3 }, p1), _object_spread_props(_object_spread({}, p1), { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit4.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit4.1.normal.js index 44d755378682..0599ccdfd9ac 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4.1.normal.js @@ -1,6 +1,6 @@ //// [file.tsx] -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; var p; var openClosed1 = /*#__PURE__*/ React.createElement("div", null, blah); // Should emit React.__spread({}, p, {x: 0}) diff --git a/crates/swc/tests/tsc-references/tsxReactEmit4.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit4.2.minified.js index 494125a143b2..b2e24f3f3546 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4.2.minified.js @@ -1,7 +1,7 @@ //// [file.tsx] var p; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; blah, _object_spread_props(_object_spread({}, p), { x: 0 }); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit5.1.normal.js index 51fc69315f1c..1fcdf93989a7 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5.1.normal.js @@ -19,13 +19,13 @@ var React; Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var _test = require("./test"); // Should emit test_1.React.createElement // and React.__spread var foo; -var spread1 = /*#__PURE__*/ _test.React.createElement("div", _object_spread_props(_object_spread({ +var spread1 = /*#__PURE__*/ _test.React.createElement("div", _object_spread_props._(_object_spread._({ x: "" }, foo), { y: "" diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit5.2.minified.js index 71d86a0af820..a27da0c3a8dd 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5.2.minified.js @@ -18,8 +18,8 @@ Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", { value: !0 }); -var foo, _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; -require("./test"), _object_spread_props(_object_spread({ +var foo, _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"); +require("./test"), _object_spread_props._(_object_spread._({ x: "" }, foo), { y: "" diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit6.1.normal.js index 5d716652559e..2927797e83cc 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6.1.normal.js @@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _object_spread = require("@swc/helpers/lib/_object_spread.js").default; -var _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var _object_spread = require("@swc/helpers/_/_object_spread"); +var _object_spread_props = require("@swc/helpers/_/_object_spread_props"); var M; (function(M) { var React1; @@ -18,7 +18,7 @@ var M; // Should emit M.React.createElement // and M.React.__spread var foo; - var spread1 = /*#__PURE__*/ React.createElement("div", _object_spread_props(_object_spread({ + var spread1 = /*#__PURE__*/ React.createElement("div", _object_spread_props._(_object_spread._({ x: "" }, foo), { y: "" diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit6.2.minified.js index 33f726941046..672f4a8cf838 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6.2.minified.js @@ -7,12 +7,15 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var M, _object_spread = require("@swc/helpers/lib/_object_spread.js").default, _object_spread_props = require("@swc/helpers/lib/_object_spread_props.js").default; +var M, _object_spread = require("@swc/helpers/_/_object_spread"), _object_spread_props = require("@swc/helpers/_/_object_spread_props"); !function(M) { var React1; M.React = React1; -}(M || (M = {})), M || (M = {}), _object_spread_props(_object_spread({ - x: "" -}, void 0), { - y: "" -}); +}(M || (M = {})), function(M) { + var foo; + _object_spread_props._(_object_spread._({ + x: "" + }, foo), { + y: "" + }); +}(M || (M = {})); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.1.normal.js index 03dcfd344284..2c83430b4a78 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.1.normal.js @@ -1,7 +1,7 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var Empty = /*#__PURE__*/ function(_React_Component) { "use strict"; _inherits(Empty, _React_Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.2.minified.js index 9b77a32b3359..7fa13cbf395a 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17.2.minified.js @@ -1,7 +1,7 @@ //// [file.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; export var Empty = function(_React_Component) { "use strict"; _inherits(Empty, _React_Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildren.1.normal.js index 57424e605630..38d4a066958e 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren.1.normal.js @@ -1,5 +1,5 @@ //// [tsxSpreadChildren.tsx] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildren.2.minified.js index f7a735a454e1..c881e07e576f 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren.2.minified.js @@ -1,2 +1,2 @@ //// [tsxSpreadChildren.tsx] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).1.normal.js index 1c5750207f4e..6709b62d73cb 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [tsxSpreadChildrenInvalidType.tsx] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).2.minified.js index ea56ecf63611..cc61e8c406aa 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType(target=es5).2.minified.js @@ -1,2 +1,2 @@ //// [tsxSpreadChildrenInvalidType.tsx] -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.1.normal.js index e4930639de1c..a2cbc1de209c 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.1.normal.js @@ -2,16 +2,14 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; var obj = { yy: 10, yy1: "hello" @@ -28,16 +26,16 @@ define([ var c1 = /*#__PURE__*/ _react.createElement(OneThing, null); var c2 = /*#__PURE__*/ _react.createElement(OneThing, obj); var c3 = /*#__PURE__*/ _react.createElement(OneThing, {}); - var c4 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread({}, obj1, obj)); - var c5 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj1), { + var c4 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread._({}, obj1, obj)); + var c5 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj1), { yy: 42, yy1: "hi" })); - var c6 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj1), { + var c6 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj1), { yy: 10000, yy1: "true" })); - var c7 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread(_object_spread_props(_object_spread({}, defaultObj), { + var c7 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread._(_object_spread_props._(_object_spread._({}, defaultObj), { yy: true }), obj)); // No error. should pick second overload var c8 = /*#__PURE__*/ _react.createElement(OneThing, { @@ -46,7 +44,7 @@ define([ var c9 = /*#__PURE__*/ _react.createElement(OneThing, { "ignore-prop": 200 }); - var c10 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj2), { + var c10 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj2), { yy1: "boo" })); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.2.minified.js index 2da3e8deb9c3..5a2d1aa1ead8 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2.2.minified.js @@ -2,29 +2,29 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); var defaultObj, obj = { yy: 10, yy1: "hello" }, obj1 = { yy: !0 }; - OneThing, OneThing, OneThing, OneThing, _object_spread({}, obj1, obj), OneThing, _object_spread_props(_object_spread({}, obj1), { + OneThing, OneThing, OneThing, OneThing, _object_spread._({}, obj1, obj), OneThing, _object_spread_props._(_object_spread._({}, obj1), { yy: 42, yy1: "hi" - }), OneThing, _object_spread_props(_object_spread({}, obj1), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj1), { yy: 10000, yy1: "true" - }), OneThing, _object_spread(_object_spread_props(_object_spread({}, defaultObj), { + }), OneThing, _object_spread._(_object_spread_props._(_object_spread._({}, defaultObj), { yy: !0 - }), obj), OneThing, OneThing, OneThing, _object_spread_props(_object_spread({}, { + }), obj), OneThing, OneThing, OneThing, _object_spread_props._(_object_spread._({}, { yy: 500, "ignore-prop": "hello" }), { diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.1.normal.js index 3d47a5454f74..ffde326ed18f 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.1.normal.js @@ -2,15 +2,13 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs" + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props" ], function(require, exports, _object_spread, _object_spread_props) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; var obj2; // OK var two1 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, null); @@ -19,10 +17,10 @@ define([ yy1: "hello" }); var two3 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, obj2); // it is just any so we allow it to pass through - var two4 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, _object_spread({ + var two4 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, _object_spread._({ yy: 1000 }, obj2)); // it is just any so we allow it to pass through - var two5 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, _object_spread_props(_object_spread({}, obj2), { + var two5 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, _object_spread_props._(_object_spread._({}, obj2), { yy: 1000 })); // it is just any so we allow it to pass through // OK @@ -33,7 +31,7 @@ define([ var three2 = /*#__PURE__*/ React.createElement(ThreeThing, { y2: "Bye" }); - var three3 = /*#__PURE__*/ React.createElement(ThreeThing, _object_spread_props(_object_spread({}, obj2), { + var three3 = /*#__PURE__*/ React.createElement(ThreeThing, _object_spread_props._(_object_spread._({}, obj2), { y2: 10 })); // it is just any so we allow it to pass through }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.2.minified.js index b3888772e70c..3dc35b221d2a 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3.2.minified.js @@ -2,18 +2,18 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs" + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props" ], function(require, exports, _object_spread, _object_spread_props) { "use strict"; var obj2; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default, ZeroThingOrTwoThing, ZeroThingOrTwoThing, ZeroThingOrTwoThing, ZeroThingOrTwoThing, _object_spread({ + }), ZeroThingOrTwoThing, ZeroThingOrTwoThing, ZeroThingOrTwoThing, ZeroThingOrTwoThing, _object_spread._({ yy: 1000 - }, obj2), ZeroThingOrTwoThing, _object_spread_props(_object_spread({}, obj2), { + }, obj2), ZeroThingOrTwoThing, _object_spread_props._(_object_spread._({}, obj2), { yy: 1000 - }), ThreeThing, ThreeThing, ThreeThing, _object_spread_props(_object_spread({}, obj2), { + }), ThreeThing, ThreeThing, ThreeThing, _object_spread_props._(_object_spread._({}, obj2), { y2: 10 }); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.1.normal.js index 4efda28de5b9..525140090a5e 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.1.normal.js @@ -2,16 +2,14 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; var obj = { yy: 10, yy1: "hello" @@ -24,22 +22,22 @@ define([ var c1 = /*#__PURE__*/ _react.createElement(OneThing, { yy: 10 }); // missing property; - var c2 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj), { + var c2 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj), { yy1: true })); // type incompatible; - var c3 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj), { + var c3 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj), { extra: "extra attr" })); // This is OK because all attribute are spread - var c4 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj), { + var c4 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj), { y1: 10000 })); // extra property; - var c5 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj), { + var c5 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj), { yy: true })); // type incompatible; - var c6 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj2), { + var c6 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj2), { extra: "extra attr" })); // Should error as there is extra attribute that doesn't match any. Current it is not - var c7 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props(_object_spread({}, obj2), { + var c7 = /*#__PURE__*/ _react.createElement(OneThing, _object_spread_props._(_object_spread._({}, obj2), { yy: true })); // Should error as there is extra attribute that doesn't match any. Current it is not // Error diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.2.minified.js index 5c98d2385c92..7074a43e0d4d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4.2.minified.js @@ -2,29 +2,29 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); var obj2, obj = { yy: 10, yy1: "hello" }; - OneThing, OneThing, OneThing, _object_spread_props(_object_spread({}, obj), { + OneThing, OneThing, OneThing, _object_spread_props._(_object_spread._({}, obj), { yy1: !0 - }), OneThing, _object_spread_props(_object_spread({}, obj), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj), { extra: "extra attr" - }), OneThing, _object_spread_props(_object_spread({}, obj), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj), { y1: 10000 - }), OneThing, _object_spread_props(_object_spread({}, obj), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj), { yy: !0 - }), OneThing, _object_spread_props(_object_spread({}, obj2), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj2), { extra: "extra attr" - }), OneThing, _object_spread_props(_object_spread({}, obj2), { + }), OneThing, _object_spread_props._(_object_spread._({}, obj2), { yy: !0 }), TestingOneThing, TestingOneThing, TestingOptional, TestingOptional, TestingOptional, TestingOptional; }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.1.normal.js index f3cbb6f98786..8913a8d31574 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.1.normal.js @@ -2,8 +2,8 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; @@ -16,8 +16,6 @@ define([ return MainButton; } }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; var obj0 = { to: "world" }; @@ -41,20 +39,20 @@ define([ to: "/some/path", onClick: function(e) {} }, "GO"); // extra property; - var b1 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread({ + var b1 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread._({ onClick: function(e) {} }, obj0), "Hello world"); // extra property; - var b2 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread({ + var b2 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread._({ to: "10000" }, obj2)); // extra property var b3 = /*#__PURE__*/ _react.createElement(MainButton, { to: "10000", onClick: function(k) {} }); // extra property - var b4 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread_props(_object_spread({}, obj3), { + var b4 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread_props._(_object_spread._({}, obj3), { to: true })); // Should error because Incorrect type; but attributes are any so everything is allowed - var b5 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread({ + var b5 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread._({ onClick: function onClick(e) {} }, obj0)); // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes var b6 = /*#__PURE__*/ _react.createElement(MainButton, { diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.2.minified.js index 121658aeeca8..3eb3825a777d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5.2.minified.js @@ -2,8 +2,8 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; @@ -14,22 +14,22 @@ define([ get: function() { return MainButton; } - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); var obj3, obj0 = { to: "world" }; function MainButton(props) { return props.to ? this._buildMainLink(props) : this._buildMainButton(props); } - _object_spread({ + _object_spread._({ onClick: function(e) {} - }, obj0), _object_spread({ + }, obj0), _object_spread._({ to: "10000" }, { onClick: function() {} - }), _object_spread_props(_object_spread({}, obj3), { + }), _object_spread_props._(_object_spread._({}, obj3), { to: !0 - }), _object_spread({ + }), _object_spread._({ onClick: function(e) {} }, obj0); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.1.normal.js index 4cf7a8668ed2..9098f8ee45fc 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.1.normal.js @@ -2,8 +2,8 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; @@ -16,8 +16,6 @@ define([ return MainButton; } }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; var obj = { children: "hi", to: "boo" @@ -41,11 +39,11 @@ define([ onClick: function(e) {} }, "Hello world"); var b2 = /*#__PURE__*/ _react.createElement(MainButton, obj); - var b3 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread({ + var b3 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread._({ to: 10000 }, obj)); var b4 = /*#__PURE__*/ _react.createElement(MainButton, obj1); // any; just pick the first overload - var b5 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread_props(_object_spread({}, obj1), { + var b5 = /*#__PURE__*/ _react.createElement(MainButton, _object_spread_props._(_object_spread._({}, obj1), { to: "/to/somewhere" })); // should pick the second overload var b6 = /*#__PURE__*/ _react.createElement(MainButton, obj2); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.2.minified.js index bd6e1ef947b7..14da7ed71c88 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6.2.minified.js @@ -2,8 +2,8 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; @@ -18,12 +18,12 @@ define([ get: function() { return MainButton; } - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default, _object_spread({ + }), _object_spread._({ to: 10000 }, { children: "hi", to: "boo" - }), _object_spread_props(_object_spread({}, obj1), { + }), _object_spread_props._(_object_spread._({}, obj1), { to: "/to/somewhere" }); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.1.normal.js index 2a481a62438a..40f38b1be59f 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.1.normal.js @@ -2,19 +2,17 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; // Error function Bar(arg) { - var a1 = /*#__PURE__*/ _react.createElement(ComponentSpecific1, _object_spread_props(_object_spread({}, arg), { + var a1 = /*#__PURE__*/ _react.createElement(ComponentSpecific1, _object_spread_props._(_object_spread._({}, arg), { "ignore-prop": 10 })); } diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.2.minified.js index 97bfbaeee549..b2c719ea5ec9 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2.2.minified.js @@ -2,12 +2,12 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default, InferParamComponent; + }), InferParamComponent; }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.1.normal.js index 9fd1da7eedca..369da7845a2f 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.1.normal.js @@ -2,34 +2,32 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; // OK function Baz(arg1, arg2) { - var a0 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props(_object_spread({}, arg1), { + var a0 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props._(_object_spread._({}, arg1), { a: "hello", "ignore-prop": true })); - var a1 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props(_object_spread({}, arg2), { + var a1 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props._(_object_spread._({}, arg2), { "ignore-pro": "hello world" })); var a2 = /*#__PURE__*/ _react.createElement(OverloadComponent, arg2); - var a3 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props(_object_spread({}, arg1), { + var a3 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props._(_object_spread._({}, arg1), { "ignore-prop": true })); var a4 = /*#__PURE__*/ _react.createElement(OverloadComponent, null); - var a5 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread(_object_spread_props(_object_spread({}, arg2), { + var a5 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread._(_object_spread_props._(_object_spread._({}, arg2), { "ignore-prop": "hello" }), arg1)); - var a6 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread(_object_spread_props(_object_spread({}, arg2), { + var a6 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread._(_object_spread_props._(_object_spread._({}, arg2), { "ignore-prop": true }), arg1)); } diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.2.minified.js index 44dc6d5274a7..b8aaaa2691d6 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3.2.minified.js @@ -2,12 +2,12 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.1.normal.js index 0f2a17705c1f..c3361ad2314b 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.1.normal.js @@ -2,22 +2,20 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; // Error function Baz(arg1, arg2) { var a0 = /*#__PURE__*/ _react.createElement(OverloadComponent, { a: arg1.b }); - var a2 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props(_object_spread({}, arg1), { + var a2 = /*#__PURE__*/ _react.createElement(OverloadComponent, _object_spread_props._(_object_spread._({}, arg1), { "ignore-prop": true })) // missing a ; diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.2.minified.js index 44dc6d5274a7..b8aaaa2691d6 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4.2.minified.js @@ -2,12 +2,12 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); }); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.1.normal.js index 062027ddf5aa..772ea6caf52e 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.1.normal.js @@ -2,33 +2,31 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - _object_spread = _object_spread.default; - _object_spread_props = _object_spread_props.default; function createComponent(arg) { var a1 = /*#__PURE__*/ _react.createElement(Component, arg); - var a2 = /*#__PURE__*/ _react.createElement(Component, _object_spread_props(_object_spread({}, arg), { + var a2 = /*#__PURE__*/ _react.createElement(Component, _object_spread_props._(_object_spread._({}, arg), { prop1: true })); } function Bar(arg) { - var a1 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props(_object_spread({}, arg), { + var a1 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props._(_object_spread._({}, arg), { "ignore-prop": "hi" })); // U is number - var a2 = /*#__PURE__*/ _react.createElement(ComponentSpecific1, _object_spread_props(_object_spread({}, arg), { + var a2 = /*#__PURE__*/ _react.createElement(ComponentSpecific1, _object_spread_props._(_object_spread._({}, arg), { "ignore-prop": 10 })); // U is number - var a3 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props(_object_spread({}, arg), { + var a3 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props._(_object_spread._({}, arg), { prop: "hello" })); // U is "hello" - var a4 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props(_object_spread({}, arg), { + var a4 = /*#__PURE__*/ _react.createElement(ComponentSpecific, _object_spread_props._(_object_spread._({}, arg), { prop1: "hello" })); // U is "hello" } diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.2.minified.js index 44dc6d5274a7..b8aaaa2691d6 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5.2.minified.js @@ -2,12 +2,12 @@ define([ "require", "exports", - "@swc/helpers/src/_object_spread.mjs", - "@swc/helpers/src/_object_spread_props.mjs", + "@swc/helpers/_/_object_spread", + "@swc/helpers/_/_object_spread_props", "react" ], function(require, exports, _object_spread, _object_spread_props, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), _object_spread = _object_spread.default, _object_spread_props = _object_spread_props.default; + }); }); diff --git a/crates/swc/tests/tsc-references/tsxTypeErrors.1.normal.js b/crates/swc/tests/tsc-references/tsxTypeErrors.1.normal.js index 22b4f5b8a7ad..ad7e1d868065 100644 --- a/crates/swc/tests/tsc-references/tsxTypeErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxTypeErrors.1.normal.js @@ -1,6 +1,6 @@ //// [tsxTypeErrors.tsx] // A built-in element (OK) -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a1 = /*#__PURE__*/ React.createElement("div", { id: "foo" }); diff --git a/crates/swc/tests/tsc-references/tsxTypeErrors.2.minified.js b/crates/swc/tests/tsc-references/tsxTypeErrors.2.minified.js index 75ef0eb72064..a166da77c9cd 100644 --- a/crates/swc/tests/tsc-references/tsxTypeErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxTypeErrors.2.minified.js @@ -1,2 +1,2 @@ //// [tsxTypeErrors.tsx] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/tupleElementTypes2.1.normal.js b/crates/swc/tests/tsc-references/tupleElementTypes2.1.normal.js index 787c79abaa32..b63f321f018c 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes2.1.normal.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes2.1.normal.js @@ -1,5 +1,5 @@ //// [tupleElementTypes2.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f(param) { var _param = _sliced_to_array(param, 2), a = _param[0], b = _param[1]; } diff --git a/crates/swc/tests/tsc-references/tupleElementTypes2.2.minified.js b/crates/swc/tests/tsc-references/tupleElementTypes2.2.minified.js index 9d307d76bcf4..e4d078f18c90 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes2.2.minified.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes2.2.minified.js @@ -1,2 +1,2 @@ //// [tupleElementTypes2.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/tupleElementTypes4.1.normal.js b/crates/swc/tests/tsc-references/tupleElementTypes4.1.normal.js index 8dcc8b77cd0c..b87b70bec36c 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes4.1.normal.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes4.1.normal.js @@ -1,5 +1,5 @@ //// [tupleElementTypes4.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f() { var _ref = _sliced_to_array(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [ 0, diff --git a/crates/swc/tests/tsc-references/tupleElementTypes4.2.minified.js b/crates/swc/tests/tsc-references/tupleElementTypes4.2.minified.js index 6bd4589e7dac..b40a064bb906 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes4.2.minified.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes4.2.minified.js @@ -1,2 +1,2 @@ //// [tupleElementTypes4.ts] -import "@swc/helpers/src/_sliced_to_array.mjs"; +import "@swc/helpers/_/_sliced_to_array"; diff --git a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.1.normal.js b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.1.normal.js index a201a3ce804a..9e6bd8899f88 100644 --- a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.1.normal.js +++ b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.1.normal.js @@ -1,6 +1,6 @@ //// [twoAccessorsWithSameName2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.2.minified.js b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.2.minified.js index f1265bf0b998..4b5f891bb1fa 100644 --- a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.2.minified.js +++ b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2.2.minified.js @@ -1,3 +1,3 @@ //// [twoAccessorsWithSameName2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/typeAliases.1.normal.js b/crates/swc/tests/tsc-references/typeAliases.1.normal.js index fe9c7da7223a..096b07f785b3 100644 --- a/crates/swc/tests/tsc-references/typeAliases.1.normal.js +++ b/crates/swc/tests/tsc-references/typeAliases.1.normal.js @@ -1,6 +1,6 @@ //// [typeAliases.ts] // Writing a reference to a type alias has exactly the same effect as writing the aliased type itself. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x1; var x1; var x2; diff --git a/crates/swc/tests/tsc-references/typeAliases.2.minified.js b/crates/swc/tests/tsc-references/typeAliases.2.minified.js index a363003e8260..c2d11215a69d 100644 --- a/crates/swc/tests/tsc-references/typeAliases.2.minified.js +++ b/crates/swc/tests/tsc-references/typeAliases.2.minified.js @@ -1,6 +1,6 @@ //// [typeAliases.ts] var x13_1, x13_2, E, x; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; foo13(x13_1, x13_2), foo13(x13_2, x13_1), function(E) { E[E.x = 10] = "x"; }(E || (E = {})), f15(E.x).toLowerCase(), f16(x), [ diff --git a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.1.normal.js b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.1.normal.js index b477e287a80a..f19a6cdad34e 100644 --- a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.1.normal.js +++ b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.1.normal.js @@ -1,5 +1,5 @@ //// [typeAliasesForObjectTypes.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.2.minified.js b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.2.minified.js index 55448cbc9192..c19166ffff0b 100644 --- a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.2.minified.js +++ b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes.2.minified.js @@ -1,2 +1,2 @@ //// [typeAliasesForObjectTypes.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.1.normal.js index c1c768f2f876..51704ec3f98e 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.1.normal.js @@ -1,5 +1,5 @@ //// [typeArgumentInferenceWithClassExpression1.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _class; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function x() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.2.minified.js index 4c363a2b2d81..e32a26bdbc50 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1.2.minified.js @@ -1,6 +1,6 @@ //// [typeArgumentInferenceWithClassExpression1.ts] var _class; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(((_class = function _class() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.1.normal.js index 1acfedde8618..5cc98f7b7d0d 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.1.normal.js @@ -1,5 +1,5 @@ //// [typeArgumentInferenceWithClassExpression2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var _class; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function x() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.2.minified.js index 6c78c857a72e..d6aec699492c 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2.2.minified.js @@ -1,6 +1,6 @@ //// [typeArgumentInferenceWithClassExpression2.ts] var _class; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(((_class = function _class() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.1.normal.js index b1b1fc380d8d..45dcfe5b6b57 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.1.normal.js @@ -1,5 +1,5 @@ //// [typeArgumentInferenceWithClassExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function x() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.2.minified.js index 0fccdbf5e21d..f92f00438ce6 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3.2.minified.js @@ -1,5 +1,5 @@ //// [typeArgumentInferenceWithClassExpression3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(function _class() { diff --git a/crates/swc/tests/tsc-references/typeFromParamTagForFunction.1.normal.js b/crates/swc/tests/tsc-references/typeFromParamTagForFunction.1.normal.js index 3f4ffdd56724..704aebabd9c9 100644 --- a/crates/swc/tests/tsc-references/typeFromParamTagForFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromParamTagForFunction.1.normal.js @@ -16,10 +16,10 @@ var A = require("./a-ext").A; Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); exports.B = function _class() { "use strict"; - _class_call_check(this, _class); + _class_call_check._(this, _class); this.x = 1; }; //// [b.js] @@ -79,10 +79,10 @@ Object.defineProperty(exports, "E", { return E; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var E = function E() { "use strict"; - _class_call_check(this, E); + _class_call_check._(this, E); this.x = 1; }; //// [e.js] @@ -112,10 +112,10 @@ function G() { Object.defineProperty(exports, "__esModule", { value: true }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); var H = function H() { "use strict"; - _class_call_check(this, H); + _class_call_check._(this, H); this.x = 1; }; /** @param {H} p */ function h(p) { diff --git a/crates/swc/tests/tsc-references/typeFromParamTagForFunction.2.minified.js b/crates/swc/tests/tsc-references/typeFromParamTagForFunction.2.minified.js index 14087c92fc55..9d063ab96e04 100644 --- a/crates/swc/tests/tsc-references/typeFromParamTagForFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromParamTagForFunction.2.minified.js @@ -13,10 +13,10 @@ require("./a-ext").A; Object.defineProperty(exports, "__esModule", { value: !0 }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default; +var _class_call_check = require("@swc/helpers/_/_class_call_check"); exports.B = function _class() { "use strict"; - _class_call_check(this, _class), this.x = 1; + _class_call_check._(this, _class), this.x = 1; }; //// [b.js] "use strict"; @@ -63,9 +63,9 @@ Object.defineProperty(exports, "__esModule", { return E; } }); -var _class_call_check = require("@swc/helpers/lib/_class_call_check.js").default, E = function E() { +var _class_call_check = require("@swc/helpers/_/_class_call_check"), E = function E() { "use strict"; - _class_call_check(this, E), this.x = 1; + _class_call_check._(this, E), this.x = 1; }; //// [e.js] "use strict"; @@ -78,4 +78,4 @@ require("./e-ext").E; "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 -}), require("@swc/helpers/lib/_class_call_check.js").default; +}), require("@swc/helpers/_/_class_call_check"); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment.1.normal.js index ddf3df0abb9b..a4bd15ece831 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment.1.normal.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = /*#__PURE__*/ function() { "use strict"; function O() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment.2.minified.js index 1229dfb5cda6..6ae600c9fd2a 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment.2.minified.js @@ -1,6 +1,6 @@ //// [a.js] var si, oi; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { "use strict"; function O() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.1.normal.js index fc719454a5f8..73d7ff84ee27 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.1.normal.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = {}; Outer.Inner = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.2.minified.js index df154f2f0b81..34710fde2895 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15.2.minified.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var inner, Outer = {}; Outer.Inner = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.1.normal.js index bc1494d22ea8..db0543627c00 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.1.normal.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function Outer() { this.y = 2; } diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.2.minified.js index ae9fd3ee195a..8b5c7f9032e8 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] var ok, oc; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; ok.y, oc.x; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.1.normal.js index 9562a8d8e833..5247d7ace405 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.1.normal.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _this = this; var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.2.minified.js index 7c99262e3938..5befc203500d 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23.2.minified.js @@ -1,7 +1,7 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var _this = this, B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.1.normal.js index b461c566c65f..f6b9f7bb8ed2 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.1.normal.js @@ -6,7 +6,7 @@ y.name; /** @type {Outer.Inner} should be instance type, not static type */ var x; x.name; //// [def.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = {}; Outer.Inner = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.2.minified.js index 35e83ae14dc2..138d306759c2 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24.2.minified.js @@ -2,4 +2,4 @@ var x; Outer.Inner.Message = function() {}, new Outer.Inner().name, x.name; //// [def.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.1.normal.js index 1bf7db83d7df..fe7e53709254 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.1.normal.js @@ -1,7 +1,7 @@ //// [bug24703.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Common = {}; Common.I = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.2.minified.js index 0e3a95af6587..6b35dd334cc8 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25.2.minified.js @@ -1,7 +1,7 @@ //// [bug24703.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Common = {}; Common.I = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.1.normal.js index 49f6712a627a..963602f58a1f 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.1.normal.js @@ -1,7 +1,7 @@ //// [bug24730.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var UI = {}; UI.TreeElement = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.2.minified.js index a87e4a185536..fc983c2bccfb 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26.2.minified.js @@ -1,7 +1,7 @@ //// [bug24730.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var UI = {}; UI.TreeElement = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.1.normal.js index 982740462a44..09442c6b7e30 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.1.normal.js @@ -1,6 +1,6 @@ //// [a.js] // mixed prototype-assignment+class declaration -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.2.minified.js index 0a82c1c8092c..dc12c75b8a16 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28.2.minified.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C), this.p = 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.1.normal.js index f02e1d92058f..9c43f8f8f15f 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.1.normal.js @@ -1,5 +1,5 @@ //// [typeFromPropertyAssignment29.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function ExpandoDecl(n) { return n.toString(); } diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.2.minified.js index 554277f2f249..5bb4cb38a622 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29.2.minified.js @@ -1,5 +1,5 @@ //// [typeFromPropertyAssignment29.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function ExpandoDecl(n) { return n.toString(); } diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.1.normal.js index 937dbc067c01..5ab2b16d978f 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.1.normal.js @@ -1,5 +1,5 @@ //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Outer = function O() { this.y = 2; }; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.2.minified.js index 98db75fbab6b..7401e1c05b9e 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3.2.minified.js @@ -1,4 +1,4 @@ //// [a.js] var ja, da; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; ja.y, da.x; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.1.normal.js index e230da0e447f..e2867dd0f30a 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.1.normal.js @@ -1,6 +1,6 @@ //// [typeFromPropertyAssignment35.ts] //// [bug26877.js] -/** @param {Emu.D} x */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @param {Emu.D} x */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function ollKorrect(x) { x._model; var y = new Emu.D(); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.2.minified.js index 50076f1548f5..e9588a5e6b63 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35.2.minified.js @@ -1,6 +1,6 @@ //// [typeFromPropertyAssignment35.ts] //// [bug26877.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; Emu.D = function _class() { "use strict"; _class_call_check(this, _class), this._model = 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.1.normal.js index b0463bc7a634..d7c35b49c16e 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.1.normal.js @@ -2,7 +2,7 @@ //// [def.js] var Outer = {}; //// [a.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; Outer.Inner = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.2.minified.js index b72dc4aa6017..fdc334397158 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4.2.minified.js @@ -2,7 +2,7 @@ //// [def.js] //// [a.js] var local; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; Outer.Inner = function _class() { "use strict"; _class_call_check(this, _class), this.y = 12; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.1.normal.js index f49e9186b2ca..ad875051f7df 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.1.normal.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; First.Item = function I() { "use strict"; _class_call_check(this, I); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.2.minified.js index 63c451c96d44..4cf88272d1ce 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder.2.minified.js @@ -1,7 +1,7 @@ //// [index.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; First.Item = function I() { "use strict"; _class_call_check(this, I); diff --git a/crates/swc/tests/tsc-references/typeGuardFunction.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunction.1.normal.js index 950463f8d948..6dff80ef93fa 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunction.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunction.1.normal.js @@ -1,7 +1,7 @@ //// [typeGuardFunction.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardFunction.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunction.2.minified.js index 026bb7c7cd3c..47aaae6d5960 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunction.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunction.2.minified.js @@ -1,8 +1,8 @@ //// [typeGuardFunction.ts] var a, subType, union, union2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; isC(a) && a.propC, isA(subType) && subType.propC, isA(union) && union.propA, isC_multipleParams(a, 0) && a.propC, f2(function(p1) { return !0; }), acceptingBoolean(isA(a)), acceptingTypeGuardFunction(isA), isA(union2); diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.1.normal.js index 837d819d5c8b..1da8ff1d7a46 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.1.normal.js @@ -1,7 +1,7 @@ //// [typeGuardFunctionGenerics.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.2.minified.js index 2b718ad1af14..9dee561b7d6a 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics.2.minified.js @@ -1,6 +1,6 @@ //// [typeGuardFunctionGenerics.ts] var a; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; funA(isB), funB(retC, a) && a.propC, funC(isB), funD(isC, a) && a.propC, funE(isB, 1); diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.1.normal.js index d629a559b5a5..fa6a8cb52fa3 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.1.normal.js @@ -1,8 +1,8 @@ //// [typeGuardFunctionOfFormThis.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var RoyalGuard = /*#__PURE__*/ function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.2.minified.js index 6a0d41fe0605..750d59616fc2 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis.2.minified.js @@ -1,8 +1,8 @@ //// [typeGuardFunctionOfFormThis.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var b, crate, RoyalGuard = function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.1.normal.js index 4efab02d56b8..2b9a9be4e308 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.1.normal.js @@ -1,8 +1,8 @@ //// [typeGuardFunctionOfFormThisErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var RoyalGuard = /*#__PURE__*/ function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.2.minified.js index 4b4114cf1534..ff9535fc8f6b 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors.2.minified.js @@ -1,8 +1,8 @@ //// [typeGuardFunctionOfFormThisErrors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var c, RoyalGuard = function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardInClass.1.normal.js b/crates/swc/tests/tsc-references/typeGuardInClass.1.normal.js index 9a41021543d0..d6309de149b1 100644 --- a/crates/swc/tests/tsc-references/typeGuardInClass.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardInClass.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardInClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; if (typeof x === "string") { var n = function n() { diff --git a/crates/swc/tests/tsc-references/typeGuardInClass.2.minified.js b/crates/swc/tests/tsc-references/typeGuardInClass.2.minified.js index f8ee114ca953..2838e56a89c9 100644 --- a/crates/swc/tests/tsc-references/typeGuardInClass.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardInClass.2.minified.js @@ -1,2 +1,2 @@ //// [typeGuardInClass.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.1.normal.js index a0fffa3f1740..f5bbb3cd5f42 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormExpr1AndExpr2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var str; var bool; var num; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.2.minified.js index d110bdd51b83..56620fa05d6f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2.2.minified.js @@ -1,4 +1,4 @@ //// [typeGuardOfFormExpr1AndExpr2.ts] var strOrNumOrBool, numOrBool, strOrNumOrBoolOrC; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; "string" != typeof strOrNumOrBoolOrC && "number" != typeof strOrNumOrBoolOrC && "boolean" != typeof strOrNumOrBoolOrC || (strOrNumOrBool = strOrNumOrBoolOrC), "string" != typeof strOrNumOrBool && numOrBool !== strOrNumOrBool && (numOrBool = strOrNumOrBool); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.1.normal.js index ad2a1b46aa2a..893ca7098df3 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormExpr1OrExpr2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var str; var bool; var num; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.2.minified.js index 9190402dbb2a..f9ae2e4f51cd 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2.2.minified.js @@ -1,4 +1,4 @@ //// [typeGuardOfFormExpr1OrExpr2.ts] var strOrNumOrBool, numOrBool, strOrNumOrBoolOrC; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; ("string" == typeof strOrNumOrBoolOrC || "number" == typeof strOrNumOrBoolOrC || "boolean" == typeof strOrNumOrBoolOrC) && (strOrNumOrBool = strOrNumOrBoolOrC), "string" == typeof strOrNumOrBool || numOrBool !== strOrNumOrBool || (numOrBool = strOrNumOrBool); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.1.normal.js index 78328e128467..74dec375abce 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.1.normal.js @@ -4,10 +4,10 @@ // - when true, narrows the type of x to the type of the 'prototype' property in C provided // it is a subtype of the type of x, or // - when false, has no effect on the type of x. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.2.minified.js index ff6aa4e6bc0f..ef7909483fc8 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf.2.minified.js @@ -1,8 +1,8 @@ //// [typeGuardOfFormInstanceOf.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var ctor1, ctor2, ctor3, ctor4, ctor5, ctor6, C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.1.normal.js index 10ef0add733a..544262bba4f4 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.1.normal.js @@ -4,7 +4,7 @@ // - when true, narrows the type of x to the type of the 'prototype' property in C provided // it is a subtype of the type of x, or // - when false, has no effect on the type of x. -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var str; var num; var strOrNum; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.2.minified.js index 3c33f66483e3..bf657d023b57 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface.2.minified.js @@ -1,4 +1,4 @@ //// [typeGuardOfFormInstanceOfOnInterface.ts] var c1, c2, d1, c1Orc2, c2Ord1; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(c1Orc2, c1) && c1Orc2.p1, _instanceof(c1Orc2, c2) && c1Orc2.p2, _instanceof(c1Orc2, d1) && c1Orc2.p1, _instanceof(c1Orc2, d1) && c1Orc2.p3, _instanceof(c2Ord1, c2) && c2Ord1.p2, _instanceof(c2Ord1, d1) && c2Ord1.p3, _instanceof(c2Ord1, d1) && c2Ord1.p1, _instanceof(c2Ord1, c1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormIsType.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormIsType.1.normal.js index 26735dc57cb8..afcf54bedb1f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormIsType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormIsType.1.normal.js @@ -1,7 +1,7 @@ //// [typeGuardOfFormIsType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormIsType.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormIsType.2.minified.js index 8e604f5524da..e0851fccd46b 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormIsType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormIsType.2.minified.js @@ -1,6 +1,6 @@ //// [typeGuardOfFormIsType.ts] var c1Orc2, c2Ord1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; c1Orc2.p1, c1Orc2.p2, c1Orc2.p1, c1Orc2.p3, c2Ord1.p2, c2Ord1.p3, c2Ord1.p1; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.1.normal.js index be673a0047e4..0ad7020fd1ea 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfBoolean.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.2.minified.js index 9dc57bc4a4fc..be0feb39d20f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean.2.minified.js @@ -1,2 +1,2 @@ //// [typeGuardOfFormTypeOfBoolean.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.1.normal.js index b0dc83198906..7472273d4a6c 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardOfFormTypeOfEqualEqualHasNoEffect.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.2.minified.js index aaae61200941..f2dd345731cb 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfEqualEqualHasNoEffect.ts] var strOrC; -import "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; void 0 === strOrC || _type_of(strOrC); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.1.normal.js index 084cab28d933..9dd366cf8d65 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardOfFormTypeOfNotEqualHasNoEffect.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.2.minified.js index e065dbc42747..eeec13bc73da 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfNotEqualHasNoEffect.ts] var strOrC; -import "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; void 0 === strOrC || _type_of(strOrC); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.1.normal.js index f8e686f1c0fa..f51bb1b4ea80 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfNumber.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.2.minified.js index 05b2bae8086d..b6270d74aa7b 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber.2.minified.js @@ -1,2 +1,2 @@ //// [typeGuardOfFormTypeOfNumber.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.1.normal.js index b80264385ab5..c608c4235c6f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardOfFormTypeOfOther.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.2.minified.js index 5b996455f5f7..a0cbbb4f77ac 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfOther.ts] var strOrNumOrBool, strOrC, numOrC, boolOrC; -import "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; void 0 === strOrC || _type_of(strOrC), void 0 === numOrC || _type_of(numOrC), void 0 === boolOrC || _type_of(boolOrC), void 0 === strOrC || _type_of(strOrC), void 0 === strOrNumOrBool || _type_of(strOrNumOrBool), void 0 === strOrC || _type_of(strOrC), void 0 === numOrC || _type_of(numOrC), void 0 === boolOrC || _type_of(boolOrC), void 0 === strOrNumOrBool || _type_of(strOrNumOrBool); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.1.normal.js index 224a1c3ba6ed..5027c5537b6f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardOfFormTypeOfString.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.2.minified.js index e02658cd44d4..2cb0e2deb223 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString.2.minified.js @@ -1,2 +1,2 @@ //// [typeGuardOfFormTypeOfString.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.1.normal.js index 17d260b2e85d..13ca74218b7d 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardOfFromPropNameInUnionType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.2.minified.js index 04bf89ece102..04a17fb22aa5 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType.2.minified.js @@ -1,3 +1,3 @@ //// [typeGuardOfFromPropNameInUnionType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.1.normal.js index 48d2f4511a52..6b2cda0a44e0 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.1.normal.js @@ -2,8 +2,8 @@ // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // variables in global -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var num; var strOrNum; var var1; diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.2.minified.js index e952303f978f..862c45777089 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors.2.minified.js @@ -1,3 +1,3 @@ //// [typeGuardsInClassAccessors.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassMethods.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInClassMethods.1.normal.js index 99299d47a933..38676ea83685 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassMethods.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassMethods.1.normal.js @@ -2,7 +2,7 @@ // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // variables in global -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var num; var var1; var C1 = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassMethods.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInClassMethods.2.minified.js index 802128253916..e6a18856ae13 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassMethods.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassMethods.2.minified.js @@ -1,2 +1,2 @@ //// [typeGuardsInClassMethods.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeGuardsInProperties.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInProperties.1.normal.js index 13c41ca2be2a..aef0763720e1 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInProperties.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInProperties.1.normal.js @@ -1,8 +1,8 @@ //// [typeGuardsInProperties.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var num; var strOrNum; var C1 = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/typeGuardsInProperties.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInProperties.2.minified.js index f0ba0af529e4..d96fd4ea4f96 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInProperties.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInProperties.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardsInProperties.ts] var c1, obj1; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; "string" == typeof c1.pp2 && c1.pp2, "string" == typeof c1.pp3 && c1.pp3, "string" == typeof obj1.x && obj1.x; diff --git a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.1.normal.js index 267d3b991b2c..3c563d1387dc 100644 --- a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardsNestedAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.2.minified.js index 65404371c993..d22c75d96509 100644 --- a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments.2.minified.js @@ -1,4 +1,4 @@ //// [typeGuardsNestedAssignments.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; for(var match, re = /./g; null != (match = re.exec("xxx"));)match[1].length, match[2].length; diff --git a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.1.normal.js index f6e51d15d295..0ced8289a895 100644 --- a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.1.normal.js @@ -3,7 +3,7 @@ // have no effect on members of objects such as properties. // Note that the class's property must be copied to a local variable for // the type guard to have an effect -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var D = /*#__PURE__*/ function() { "use strict"; function D() { diff --git a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.2.minified.js index b27c14f5ca9f..0554d165233e 100644 --- a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardsOnClassProperty.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var o = { prop1: "string", prop2: !0 diff --git a/crates/swc/tests/tsc-references/typeGuardsTypeParameters.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsTypeParameters.1.normal.js index b646f8e32a00..45d849e75f2d 100644 --- a/crates/swc/tests/tsc-references/typeGuardsTypeParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsTypeParameters.1.normal.js @@ -1,7 +1,7 @@ //// [typeGuardsTypeParameters.ts] // Type guards involving type parameters produce intersection types -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardsTypeParameters.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsTypeParameters.2.minified.js index 313470242c5a..3f5686edaab8 100644 --- a/crates/swc/tests/tsc-references/typeGuardsTypeParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsTypeParameters.2.minified.js @@ -1,3 +1,3 @@ //// [typeGuardsTypeParameters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_instanceof"; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithAny.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithAny.1.normal.js index 309bf3b2d397..c921dfe2bf25 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithAny.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithAny.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardsWithAny.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var x = { p: 0 }; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithAny.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithAny.2.minified.js index 156862a0371e..9efa8b523922 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithAny.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithAny.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardsWithAny.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var x = { p: 0 }; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.1.normal.js index e93c5af0ca2b..ae80e7d34b0d 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.1.normal.js @@ -1,6 +1,6 @@ //// [typeGuardsWithInstanceOf.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var result; var result2; if (!_instanceof(result, RegExp)) { diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.2.minified.js index 6ee19d20cc0e..d49bc5be93f1 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.2.minified.js @@ -1,5 +1,5 @@ //// [typeGuardsWithInstanceOf.ts] var result, result2; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(result, RegExp) ? result.global : result = result2; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.1.normal.js index 3d5c4f78bbe1..def776bb58a7 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.1.normal.js @@ -1,5 +1,5 @@ //// [typeGuardsWithInstanceOfByConstructorSignature.ts] -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var obj1; if (_instanceof(obj1, A)) { obj1.foo; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.2.minified.js index 61c073ffdd9f..db73bbaa37bb 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.2.minified.js @@ -1,4 +1,4 @@ //// [typeGuardsWithInstanceOfByConstructorSignature.ts] var obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(obj1, A) && (obj1.foo, obj1.bar), _instanceof(obj2, A) && (obj2.foo, obj2.bar), _instanceof(obj3, B) && (obj3.foo = 1, obj3.foo = "str", obj3.bar = "str"), _instanceof(obj4, B) && (obj4.foo = "str", obj4.foo = 1, obj4.bar = "str"), _instanceof(obj5, C) && (obj5.foo, obj5.c, obj5.bar1, obj5.bar2), _instanceof(obj6, C) && (obj6.foo, obj6.bar1, obj6.bar2), _instanceof(obj7, D) && (obj7.foo, obj7.bar), _instanceof(obj8, D) && (obj8.foo, obj8.bar), _instanceof(obj9, E) && (obj9.foo, obj9.bar1, obj9.bar2), _instanceof(obj10, E) && (obj10.foo, obj10.bar1, obj10.bar2), _instanceof(obj11, F) && (obj11.foo, obj11.bar), _instanceof(obj12, F) && (obj12.foo, obj12.bar), _instanceof(obj13, G) && (obj13.foo1, obj13.foo2), _instanceof(obj14, G) && (obj14.foo1, obj14.foo2), _instanceof(obj15, H) && (obj15.foo, obj15.bar), _instanceof(obj16, H) && (obj16.foo1, obj16.foo2), _instanceof(obj17, Object) && (obj17.foo1, obj17.foo2), _instanceof(obj18, Function) && (obj18.foo1, obj18.foo2); diff --git a/crates/swc/tests/tsc-references/typeOfThisInAccessor.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInAccessor.1.normal.js index 7e1201fd343e..8447d8693070 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInAccessor.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInAccessor.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInAccessor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInAccessor.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInAccessor.2.minified.js index 04a8117af992..aa01598233f2 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInAccessor.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInAccessor.2.minified.js @@ -1,3 +1,3 @@ //// [typeOfThisInAccessor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.1.normal.js index d645df5a0858..2fe66db3d454 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInConstructorParamList.ts] //type of 'this' in constructor param list is the class instance type (error) -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ErrClass = function ErrClass() { "use strict"; var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this; diff --git a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.2.minified.js index 807630fb8c1f..86632dbbec2f 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.2.minified.js @@ -1,2 +1,2 @@ //// [typeOfThisInConstructorParamList.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.1.normal.js index 52c50d7d6da2..a84a0c022c18 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInFunctionExpression.ts] // type of 'this' in FunctionExpression is Any -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function fn() { var p = this; var p; diff --git a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.2.minified.js index dd0901e9e72d..6fb3c7dd3ca3 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.2.minified.js @@ -1,4 +1,4 @@ //// [typeOfThisInFunctionExpression.ts] var M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.1.normal.js index db10c9825ec8..1d86f65ac9a7 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInInstanceMember.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.2.minified.js index c2f1fa862f5c..0db77ed51653 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember.2.minified.js @@ -1,6 +1,6 @@ //// [typeOfThisInInstanceMember.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, r = c.x; c.x.x.x, [ r, diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.1.normal.js index fefbafe51df5..50e44c304bdd 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInInstanceMember2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.2.minified.js index a135f9e2770e..b6d99ce5190e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.2.minified.js @@ -1,6 +1,6 @@ //// [typeOfThisInInstanceMember2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, r = c.x; c.x.x.x; var r2 = c.y, r3 = c.foo(); diff --git a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.1.normal.js index fdc2baf10bae..a326c4743620 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.1.normal.js @@ -1,5 +1,5 @@ //// [typeOfThisInMemberFunctions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.2.minified.js index fe7123bd7225..52f3dacb3a96 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.2.minified.js @@ -1,2 +1,2 @@ //// [typeOfThisInMemberFunctions.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.1.normal.js index 8e4fa858e553..07edc944a4c6 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.1.normal.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.2.minified.js index 2dfbff255bc5..4645e39a1802 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers.2.minified.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var t = (function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.1.normal.js index 58b819aeff78..e972a3869d7f 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.1.normal.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.2.minified.js index 4666aeb70c07..7a8ed9d3161c 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.2.minified.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).1.normal.js index 1af3bea20510..bd1b14030b31 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } (()=>{ diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).2.minified.js index 16e909c0150a..81ad2e763f19 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).2.minified.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers3.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1, C.b = C.a + 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).1.normal.js index 39f6b35908e5..162c361b88e3 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).1.normal.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).2.minified.js index 9c1c6f09fc12..a78d9a8c5c1e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).2.minified.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).1.normal.js index ff52a031b0de..2ef1e3487c87 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).1.normal.js @@ -1,7 +1,7 @@ //// [typeOfThisInStaticMembers4.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } _define_property(C, "a", 1); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).2.minified.js index 57810d462a7b..7f58d8787345 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).2.minified.js @@ -1,7 +1,7 @@ //// [typeOfThisInStaticMembers4.ts] -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } _define_property(C, "a", 1), _define_property(C, "b", C.a + 1); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).1.normal.js index 859ba40b93cb..e64b38a3a75e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).1.normal.js @@ -1,10 +1,10 @@ //// [typeOfThisInStaticMembers4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).2.minified.js index 5b740bfc6976..1bf42dc3b2b0 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).2.minified.js @@ -1,10 +1,10 @@ //// [typeOfThisInStaticMembers4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).1.normal.js index 29670d7ccd86..1f0d6e5e419b 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(foo) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).2.minified.js index e4bf344ac6f9..1d59c903d8b1 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(foo) { "use strict"; _class_call_check(this, C), this.foo = foo; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.1.normal.js index c19da7aa8ba9..e626d05cd523 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.1.normal.js @@ -1,7 +1,7 @@ //// [typeOfThisInStaticMembers6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.2.minified.js index 8d515a863559..59237666cfe7 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.2.minified.js @@ -1,7 +1,7 @@ //// [typeOfThisInStaticMembers6.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).1.normal.js index 8968884a82d8..e37501ea3ac2 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers7.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } (()=>{ diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).2.minified.js index a9a9f645a145..6fd824b0c596 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).2.minified.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers7.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1, C.b = C.a + 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).1.normal.js index 550a0e684618..f4fd611033ae 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).1.normal.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).2.minified.js index c2b1a5aeed24..fc1a05527d4a 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).2.minified.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers7.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).1.normal.js index d345078b9418..a2860f67c1bb 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).1.normal.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).2.minified.js index 5f43a5cd4918..ddde65b4fe85 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8(target=es5).2.minified.js @@ -1,5 +1,5 @@ //// [typeOfThisInStaticMembers8.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).1.normal.js index 5b206ed2fb88..25f0cd88ef40 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers9.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } (()=>{ diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).2.minified.js index 6831ed8c6adb..55babd5fec2d 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es2015).2.minified.js @@ -1,6 +1,6 @@ //// [typeOfThisInStaticMembers9.ts] -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.f = 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).1.normal.js index 8bdc127d4b51..cb8651e44449 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).1.normal.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).2.minified.js index 52801008ff63..e8c46ccfd2d2 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9(target=es5).2.minified.js @@ -1,9 +1,9 @@ //// [typeOfThisInStaticMembers9.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _get from "@swc/helpers/src/_get.mjs"; -import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _get } from "@swc/helpers/_/_get"; +import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.1.normal.js index 57341e5850c4..5a71e0a9e519 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.1.normal.js @@ -1,6 +1,6 @@ //// [typeOfThisInstanceMemberNarrowedWithLoopAntecedent.ts] // #31995 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var SomeClass = /*#__PURE__*/ function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.2.minified.js index 1086286b9a33..7ae2b15b3608 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.2.minified.js @@ -1,2 +1,2 @@ //// [typeOfThisInstanceMemberNarrowedWithLoopAntecedent.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterAsBaseType.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAsBaseType.1.normal.js index e2c0d632c0a6..ee7e4fdcf48e 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsBaseType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAsBaseType.1.normal.js @@ -1,9 +1,9 @@ //// [typeParameterAsBaseType.ts] // type parameters cannot be used as base types // these are all errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function(T1) { "use strict"; _inherits(C, T1); diff --git a/crates/swc/tests/tsc-references/typeParameterAsBaseType.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAsBaseType.2.minified.js index 4848b1b18a29..5d7f823a89ca 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsBaseType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAsBaseType.2.minified.js @@ -1,5 +1,5 @@ //// [typeParameterAsBaseType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; T, U; diff --git a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.1.normal.js index 14678ea2b4bb..67885c4cc3b5 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.1.normal.js @@ -1,6 +1,6 @@ //// [typeParameterAsTypeArgument.ts] // These are all errors because type parameters cannot reference other type parameters from the same list -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo(x, y) { foo(y, y); return new C(); diff --git a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.2.minified.js index 2efdc8b5f258..8e946bbc03cb 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterAsTypeArgument.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterAssignability3.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAssignability3.1.normal.js index ff0d64b8c891..a9dec1462f25 100644 --- a/crates/swc/tests/tsc-references/typeParameterAssignability3.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAssignability3.1.normal.js @@ -1,6 +1,6 @@ //// [typeParameterAssignability3.ts] // type parameters are not assignable to one another unless directly or indirectly constrained to one another -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typeParameterAssignability3.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAssignability3.2.minified.js index 2cf1191637df..686701fbbfbd 100644 --- a/crates/swc/tests/tsc-references/typeParameterAssignability3.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAssignability3.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterAssignability3.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.1.normal.js b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.1.normal.js index d549eb3ab77a..f0a8f65050f9 100644 --- a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.1.normal.js @@ -1,6 +1,6 @@ //// [typeParameterDirectlyConstrainedToItself.ts] // all of the below should be errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.2.minified.js b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.2.minified.js index bc6eb575089e..b008a4daab5f 100644 --- a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterDirectlyConstrainedToItself.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.1.normal.js b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.1.normal.js index 02804cbdaff1..7d8686ce7b56 100644 --- a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.1.normal.js @@ -1,5 +1,5 @@ //// [typeParameterIndirectlyConstrainedToItself.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.2.minified.js b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.2.minified.js index d611f169d7ee..96b4b8402419 100644 --- a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterIndirectlyConstrainedToItself.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.1.normal.js b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.1.normal.js index a12ce292daeb..4d11e1330c08 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.1.normal.js @@ -1,5 +1,5 @@ //// [typeParameterUsedAsConstraint.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.2.minified.js b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.2.minified.js index f174c4242b1b..4401ab58a0d2 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterUsedAsConstraint.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.1.normal.js b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.1.normal.js index 08ef02df5f35..df8b7a6dece8 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.1.normal.js @@ -1,7 +1,7 @@ //// [typeParameterUsedAsTypeParameterConstraint4.ts] // Type parameters are in scope in their own and other type parameter lists // Some negative cases -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.2.minified.js b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.2.minified.js index 36d79ca48ae2..f8cec59a7c5f 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4.2.minified.js @@ -1,2 +1,2 @@ //// [typeParameterUsedAsTypeParameterConstraint4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.1.normal.js b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.1.normal.js index 8e9a02ba588c..af365d5ba455 100644 --- a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.1.normal.js @@ -1,6 +1,6 @@ //// [typeParametersAreIdenticalToThemselves.ts] // type parameters from the same declaration are identical to themself -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function foo1(x) {} function foo2(x) {} function foo3(x, y) { diff --git a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.2.minified.js b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.2.minified.js index 05eeb0b43788..6a25f4f966a6 100644 --- a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves.2.minified.js @@ -1,2 +1,2 @@ //// [typeParametersAreIdenticalToThemselves.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.1.normal.js b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.1.normal.js index 2b3aff206509..91f2a0c1bc2d 100644 --- a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.1.normal.js @@ -1,5 +1,5 @@ //// [typeParametersAvailableInNestedScope.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.2.minified.js b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.2.minified.js index 65dcb5420199..a76686cfc059 100644 --- a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope.2.minified.js @@ -1,5 +1,5 @@ //// [typeParametersAvailableInNestedScope.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var c = new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeQuery.1.normal.js b/crates/swc/tests/tsc-references/typeQuery.1.normal.js index a5936268e8a9..bc49eabbadfe 100644 --- a/crates/swc/tests/tsc-references/typeQuery.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQuery.1.normal.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeQuery.2.minified.js b/crates/swc/tests/tsc-references/typeQuery.2.minified.js index e757f249a99b..fdd5a6057d52 100644 --- a/crates/swc/tests/tsc-references/typeQuery.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQuery.2.minified.js @@ -1,5 +1,5 @@ //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeQueryOnClass.1.normal.js b/crates/swc/tests/tsc-references/typeQueryOnClass.1.normal.js index 83763ac73aef..f2719f4d20d5 100644 --- a/crates/swc/tests/tsc-references/typeQueryOnClass.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQueryOnClass.1.normal.js @@ -1,6 +1,6 @@ //// [typeQueryOnClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeQueryOnClass.2.minified.js b/crates/swc/tests/tsc-references/typeQueryOnClass.2.minified.js index ed9b0a68bf27..dea67a11e49f 100644 --- a/crates/swc/tests/tsc-references/typeQueryOnClass.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQueryOnClass.2.minified.js @@ -1,6 +1,6 @@ //// [typeQueryOnClass.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeQueryWithReservedWords.1.normal.js b/crates/swc/tests/tsc-references/typeQueryWithReservedWords.1.normal.js index 6923e1d878d6..ced4b2e6f7ae 100644 --- a/crates/swc/tests/tsc-references/typeQueryWithReservedWords.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQueryWithReservedWords.1.normal.js @@ -1,5 +1,5 @@ //// [typeQueryWithReservedWords.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Controller = /*#__PURE__*/ function() { "use strict"; function Controller() { diff --git a/crates/swc/tests/tsc-references/typeQueryWithReservedWords.2.minified.js b/crates/swc/tests/tsc-references/typeQueryWithReservedWords.2.minified.js index 8f0d118df9c4..6536a04a71cb 100644 --- a/crates/swc/tests/tsc-references/typeQueryWithReservedWords.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQueryWithReservedWords.2.minified.js @@ -1,2 +1,2 @@ //// [typeQueryWithReservedWords.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeRelationships.1.normal.js b/crates/swc/tests/tsc-references/typeRelationships.1.normal.js index 207891f69d1d..ef1b31e09614 100644 --- a/crates/swc/tests/tsc-references/typeRelationships.1.normal.js +++ b/crates/swc/tests/tsc-references/typeRelationships.1.normal.js @@ -1,8 +1,8 @@ //// [typeRelationships.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeRelationships.2.minified.js b/crates/swc/tests/tsc-references/typeRelationships.2.minified.js index 76c5d5055250..2687742eba2b 100644 --- a/crates/swc/tests/tsc-references/typeRelationships.2.minified.js +++ b/crates/swc/tests/tsc-references/typeRelationships.2.minified.js @@ -1,5 +1,5 @@ //// [typeRelationships.ts] -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/typedefCrossModule2.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule2.1.normal.js index 36a3d56630d7..3cdce614aa41 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule2.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule2.1.normal.js @@ -1,6 +1,6 @@ //// [mod1.js] // error -/** @typedef {number} Foo */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @typedef {number} Foo */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule2.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule2.2.minified.js index 4a182cd885b2..23f71715c46b 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule2.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule2.2.minified.js @@ -1,5 +1,5 @@ //// [mod1.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; exports.Bar = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule3.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule3.1.normal.js index 578becd404ef..d93af613ccc7 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule3.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule3.1.normal.js @@ -1,5 +1,5 @@ //// [mod2.js] -/** @typedef {number} Foo */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @typedef {number} Foo */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ns = {}; ns.Foo = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typedefCrossModule3.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule3.2.minified.js index 174577c31aa3..58f4986ed710 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule3.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule3.2.minified.js @@ -1,5 +1,5 @@ //// [mod2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ns = {}; ns.Foo = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typedefCrossModule4.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule4.1.normal.js index bada95fa9f85..11e7a388363e 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule4.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule4.1.normal.js @@ -1,5 +1,5 @@ //// [mod3.js] -/** @typedef {number} Foo */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @typedef {number} Foo */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule4.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule4.2.minified.js index d16d96ebe330..e5350806a704 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule4.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule4.2.minified.js @@ -1,5 +1,5 @@ //// [mod3.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; module.exports = { Foo: function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typedefCrossModule5.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule5.1.normal.js index 6cd1ad8180a9..733d0bc711fd 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule5.1.normal.js @@ -1,11 +1,11 @@ //// [mod1.js] -/** @typedef {number} Foo */ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +/** @typedef {number} Foo */ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Bar = function Bar() { "use strict"; _class_call_check(this, Bar); }; //// [mod2.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule5.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule5.2.minified.js index f63e4f72eb65..4b83afb68281 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule5.2.minified.js @@ -1,4 +1,4 @@ //// [mod1.js] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; //// [mod2.js] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typedefInnerNamepaths.1.normal.js b/crates/swc/tests/tsc-references/typedefInnerNamepaths.1.normal.js index df15f7fe05a3..bd1cef69fbaa 100644 --- a/crates/swc/tests/tsc-references/typedefInnerNamepaths.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefInnerNamepaths.1.normal.js @@ -1,5 +1,5 @@ //// [bug25104.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(o) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typedefInnerNamepaths.2.minified.js b/crates/swc/tests/tsc-references/typedefInnerNamepaths.2.minified.js index 31e001678000..81091853fd7e 100644 --- a/crates/swc/tests/tsc-references/typedefInnerNamepaths.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefInnerNamepaths.2.minified.js @@ -1,2 +1,2 @@ //// [bug25104.js] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeofANonExportedType.1.normal.js b/crates/swc/tests/tsc-references/typeofANonExportedType.1.normal.js index 998bce66e245..fff8b6ce8fca 100644 --- a/crates/swc/tests/tsc-references/typeofANonExportedType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofANonExportedType.1.normal.js @@ -1,5 +1,5 @@ //// [typeofANonExportedType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x = 1; export var r1; var y = { diff --git a/crates/swc/tests/tsc-references/typeofANonExportedType.2.minified.js b/crates/swc/tests/tsc-references/typeofANonExportedType.2.minified.js index 8a1cb11af1ec..d058c7a54bf1 100644 --- a/crates/swc/tests/tsc-references/typeofANonExportedType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofANonExportedType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofANonExportedType.ts] var M, E; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var r1; export var r2; export var c; diff --git a/crates/swc/tests/tsc-references/typeofAnExportedType.1.normal.js b/crates/swc/tests/tsc-references/typeofAnExportedType.1.normal.js index 2c45cf7e0da1..121e3f620690 100644 --- a/crates/swc/tests/tsc-references/typeofAnExportedType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofAnExportedType.1.normal.js @@ -1,5 +1,5 @@ //// [typeofAnExportedType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = 1; export var r1; export var y = { diff --git a/crates/swc/tests/tsc-references/typeofAnExportedType.2.minified.js b/crates/swc/tests/tsc-references/typeofAnExportedType.2.minified.js index bb8dc32ad449..c4f1b598192a 100644 --- a/crates/swc/tests/tsc-references/typeofAnExportedType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofAnExportedType.2.minified.js @@ -1,5 +1,5 @@ //// [typeofAnExportedType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var x = 1; export var r1; export var y = { diff --git a/crates/swc/tests/tsc-references/typeofClass2.1.normal.js b/crates/swc/tests/tsc-references/typeofClass2.1.normal.js index d7df7725dafa..b98f4bca70f9 100644 --- a/crates/swc/tests/tsc-references/typeofClass2.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofClass2.1.normal.js @@ -1,7 +1,7 @@ //// [typeofClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeofClass2.2.minified.js b/crates/swc/tests/tsc-references/typeofClass2.2.minified.js index 64a4773105e9..d51beacfdcbf 100644 --- a/crates/swc/tests/tsc-references/typeofClass2.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofClass2.2.minified.js @@ -1,4 +1,4 @@ //// [typeofClass2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/typeofClassWithPrivates.1.normal.js b/crates/swc/tests/tsc-references/typeofClassWithPrivates.1.normal.js index 54901e22a10e..4c4756c2c13d 100644 --- a/crates/swc/tests/tsc-references/typeofClassWithPrivates.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofClassWithPrivates.1.normal.js @@ -1,5 +1,5 @@ //// [typeofClassWithPrivates.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeofClassWithPrivates.2.minified.js b/crates/swc/tests/tsc-references/typeofClassWithPrivates.2.minified.js index a936e0087702..5cbc0dde0d3d 100644 --- a/crates/swc/tests/tsc-references/typeofClassWithPrivates.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofClassWithPrivates.2.minified.js @@ -1,2 +1,2 @@ //// [typeofClassWithPrivates.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.1.normal.js b/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.1.normal.js index 82eccf1f785a..6d1d3d71678e 100644 --- a/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.1.normal.js @@ -3,7 +3,7 @@ import { classMap } from "./lit.js"; export var c = classMap(); //// [lit.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ClassMapDirective = function ClassMapDirective() { "use strict"; _class_call_check(this, ClassMapDirective); diff --git a/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.2.minified.js b/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.2.minified.js index 433ff1a41c98..e863ccf0c61c 100644 --- a/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofImportTypeOnlyExport.2.minified.js @@ -3,7 +3,7 @@ import { classMap } from "./lit.js"; export var c = classMap(); //// [lit.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var directive = function(class_) { return function() { return { diff --git a/crates/swc/tests/tsc-references/typeofModuleWithoutExports.1.normal.js b/crates/swc/tests/tsc-references/typeofModuleWithoutExports.1.normal.js index e766a1b28d6e..6427c6cb8fb2 100644 --- a/crates/swc/tests/tsc-references/typeofModuleWithoutExports.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofModuleWithoutExports.1.normal.js @@ -1,5 +1,5 @@ //// [typeofModuleWithoutExports.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M; (function(M) { var x = 1; diff --git a/crates/swc/tests/tsc-references/typeofModuleWithoutExports.2.minified.js b/crates/swc/tests/tsc-references/typeofModuleWithoutExports.2.minified.js index 10a650c6701b..8c2b0d51eeb9 100644 --- a/crates/swc/tests/tsc-references/typeofModuleWithoutExports.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofModuleWithoutExports.2.minified.js @@ -1,4 +1,4 @@ //// [typeofModuleWithoutExports.ts] var M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.1.normal.js index 91672ec14867..5e810b0c4415 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.1.normal.js @@ -1,7 +1,7 @@ //// [typeofOperatorWithAnyOtherType.ts] // typeof operator on any type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var ANY; var ANY1; var ANY2 = [ diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.2.minified.js index 9e38bae8083d..f7613eaefb48 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithAnyOtherType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var ANY, ANY1, obj, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.1.normal.js index 1f38679cbd4c..8c040840d368 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.1.normal.js @@ -1,7 +1,7 @@ //// [typeofOperatorWithBooleanType.ts] // typeof operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.2.minified.js index f3c017da29e9..8a18ec10adc4 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; function foo() { return !0; } diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.1.normal.js index 723df03de6cb..ecf28656c26f 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.1.normal.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithEnumType.ts] // typeof operator on enum type -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var ENUM; (function(ENUM) {})(ENUM || (ENUM = {})); var ENUM1; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.2.minified.js index 12b6fc31497c..69c206810c1f 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithEnumType.ts] var ENUM, ENUM1, z; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; ENUM || (ENUM = {}), function(ENUM1) { ENUM1[ENUM1.A = 0] = "A", ENUM1[ENUM1.B = 1] = "B", ENUM1[ENUM1[""] = 2] = ""; }(ENUM1 || (ENUM1 = {})), void 0 === ENUM || _type_of(ENUM), void 0 === ENUM1 || _type_of(ENUM1), _type_of(ENUM1.A), _type_of(ENUM[0] + ENUM1.B), _type_of(void 0 === ENUM ? "undefined" : _type_of(ENUM)), _type_of(_type_of(_type_of(ENUM[0] + ENUM1.B))), void 0 === ENUM || _type_of(ENUM), void 0 === ENUM1 || _type_of(ENUM1), _type_of(ENUM1.B), void 0 === ENUM || _type_of(ENUM), z || (z = {}); diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.1.normal.js index e07aaab138d1..612211362c20 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.1.normal.js @@ -1,7 +1,7 @@ //// [typeofOperatorWithNumberType.ts] // typeof operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.2.minified.js index ef7a9808c432..1d229c0825d7 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithStringType.1.normal.js index d8272881e1a9..060ea56273b1 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithStringType.1.normal.js @@ -1,7 +1,7 @@ //// [typeofOperatorWithStringType.ts] // typeof operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithStringType.2.minified.js index 7da377f4b554..c8a45e47d72a 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithStringType.2.minified.js @@ -1,6 +1,6 @@ //// [typeofOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; var STRING, M, STRING1 = [ "", "abc" diff --git a/crates/swc/tests/tsc-references/typeofThis.1.normal.js b/crates/swc/tests/tsc-references/typeofThis.1.normal.js index ba9d318d4ec4..bbcd9b08d2a7 100644 --- a/crates/swc/tests/tsc-references/typeofThis.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofThis.1.normal.js @@ -1,6 +1,6 @@ //// [typeofThis.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var Test = function Test() { "use strict"; _class_call_check(this, Test); diff --git a/crates/swc/tests/tsc-references/typeofThis.2.minified.js b/crates/swc/tests/tsc-references/typeofThis.2.minified.js index 0d3afab32473..c365f6faa278 100644 --- a/crates/swc/tests/tsc-references/typeofThis.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofThis.2.minified.js @@ -1,5 +1,5 @@ //// [typeofThis.ts] var Test6, Test7; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; (Test6 || (Test6 = {})).f = function() {}, (Test7 || (Test7 = {})).f = function() {}; diff --git a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.1.normal.js b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.1.normal.js index f0f7289dd929..8696284e192e 100644 --- a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.1.normal.js @@ -1,5 +1,5 @@ //// [typesWithDuplicateTypeParameters.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.2.minified.js b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.2.minified.js index a3b1851674db..afde1c9f9f19 100644 --- a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters.2.minified.js @@ -1,2 +1,2 @@ //// [typesWithDuplicateTypeParameters.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/typesWithPrivateConstructor.1.normal.js b/crates/swc/tests/tsc-references/typesWithPrivateConstructor.1.normal.js index 2451a5c3219a..7b40bb140fc5 100644 --- a/crates/swc/tests/tsc-references/typesWithPrivateConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithPrivateConstructor.1.normal.js @@ -1,5 +1,5 @@ //// [typesWithPrivateConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithPrivateConstructor.2.minified.js b/crates/swc/tests/tsc-references/typesWithPrivateConstructor.2.minified.js index 2de2fe6eec36..f0bfe6a922a1 100644 --- a/crates/swc/tests/tsc-references/typesWithPrivateConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithPrivateConstructor.2.minified.js @@ -1,5 +1,5 @@ //// [typesWithPrivateConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithProtectedConstructor.1.normal.js b/crates/swc/tests/tsc-references/typesWithProtectedConstructor.1.normal.js index a504a51e6fd6..76b5b160db02 100644 --- a/crates/swc/tests/tsc-references/typesWithProtectedConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithProtectedConstructor.1.normal.js @@ -1,5 +1,5 @@ //// [typesWithProtectedConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithProtectedConstructor.2.minified.js b/crates/swc/tests/tsc-references/typesWithProtectedConstructor.2.minified.js index d7e8d0429acc..63150f86c979 100644 --- a/crates/swc/tests/tsc-references/typesWithProtectedConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithProtectedConstructor.2.minified.js @@ -1,5 +1,5 @@ //// [typesWithProtectedConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithPublicConstructor.1.normal.js b/crates/swc/tests/tsc-references/typesWithPublicConstructor.1.normal.js index 78d91752ed03..6d8a06334fa5 100644 --- a/crates/swc/tests/tsc-references/typesWithPublicConstructor.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithPublicConstructor.1.normal.js @@ -1,6 +1,6 @@ //// [typesWithPublicConstructor.ts] // public is allowed on a constructor but is not meaningful -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithPublicConstructor.2.minified.js b/crates/swc/tests/tsc-references/typesWithPublicConstructor.2.minified.js index 0c888b86e5a4..ea40ea4296f0 100644 --- a/crates/swc/tests/tsc-references/typesWithPublicConstructor.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithPublicConstructor.2.minified.js @@ -1,5 +1,5 @@ //// [typesWithPublicConstructor.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.1.normal.js b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.1.normal.js index 8eac225cba35..a015b2adda9f 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.1.normal.js @@ -1,8 +1,8 @@ //// [typesWithSpecializedCallSignatures.ts] // basic uses of specialized signatures without errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.2.minified.js b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.2.minified.js index e7d7131827f9..4fc60324ee10 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures.2.minified.js @@ -1,7 +1,7 @@ //// [typesWithSpecializedCallSignatures.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var i, a, c = new (function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.1.normal.js b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.1.normal.js index 2a54324c9b49..c3a4e43af58c 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.1.normal.js @@ -1,8 +1,8 @@ //// [typesWithSpecializedConstructSignatures.ts] // basic uses of specialized signatures without errors -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.2.minified.js b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.2.minified.js index 377e14cce904..fb2e06f92e9c 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures.2.minified.js @@ -1,7 +1,7 @@ //// [typesWithSpecializedConstructSignatures.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var a, C = function C(x) { return _class_call_check(this, C), x; }; diff --git a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.1.normal.js b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.1.normal.js index 1f2b803d1ebe..68af4fbdc063 100644 --- a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.1.normal.js +++ b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.1.normal.js @@ -1,5 +1,5 @@ //// [test.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f(x) {} f(); // Always been ok var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.2.minified.js b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.2.minified.js index 2f4137d6c12c..87000a49f5c6 100644 --- a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.2.minified.js +++ b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional.2.minified.js @@ -1,5 +1,5 @@ //// [test.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.1.normal.js b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.1.normal.js index 512793477394..bff854a37bb0 100644 --- a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.1.normal.js +++ b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.1.normal.js @@ -1,5 +1,5 @@ //// [undefinedAssignableToEveryType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.2.minified.js b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.2.minified.js index 61a88832c57a..54bbcc96eff8 100644 --- a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.2.minified.js +++ b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType.2.minified.js @@ -1,6 +1,6 @@ //// [undefinedAssignableToEveryType.ts] var E; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.1.normal.js b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.1.normal.js index f177363c8206..eb2655c9a685 100644 --- a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.1.normal.js +++ b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.1.normal.js @@ -1,8 +1,8 @@ //// [undefinedIsSubtypeOfEverything.ts] // undefined is a subtype of every other types, no errors expected below -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.2.minified.js b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.2.minified.js index 6d5ac87f3223..15eb15564f42 100644 --- a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.2.minified.js +++ b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything.2.minified.js @@ -1,7 +1,7 @@ //// [undefinedIsSubtypeOfEverything.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; function f() {} !function(E) { E[E.A = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.1.normal.js b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.1.normal.js index a6d45393aca3..45b46755c5bb 100644 --- a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.1.normal.js +++ b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.1.normal.js @@ -1,5 +1,5 @@ //// [unionSubtypeIfEveryConstituentTypeIsSubtype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var e; (function(e) { e[e["e1"] = 0] = "e1"; diff --git a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.2.minified.js b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.2.minified.js index 89e1572ed5a5..031afc6aba2e 100644 --- a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.2.minified.js +++ b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype.2.minified.js @@ -1,5 +1,5 @@ //// [unionSubtypeIfEveryConstituentTypeIsSubtype.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function f() {} !function(e) { e[e.e1 = 0] = "e1", e[e.e2 = 1] = "e2"; diff --git a/crates/swc/tests/tsc-references/unionTypeEquivalence.1.normal.js b/crates/swc/tests/tsc-references/unionTypeEquivalence.1.normal.js index fbf24b931111..1cd312b3bb5e 100644 --- a/crates/swc/tests/tsc-references/unionTypeEquivalence.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeEquivalence.1.normal.js @@ -1,8 +1,8 @@ //// [unionTypeEquivalence.ts] // A | B is equivalent to A if B is a subtype of A -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/unionTypeEquivalence.2.minified.js b/crates/swc/tests/tsc-references/unionTypeEquivalence.2.minified.js index eafa5994fc58..fa02c2af7915 100644 --- a/crates/swc/tests/tsc-references/unionTypeEquivalence.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeEquivalence.2.minified.js @@ -1,4 +1,4 @@ //// [unionTypeEquivalence.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.1.normal.js b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.1.normal.js index 77b84b58c1af..c2434c60a5c1 100644 --- a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.1.normal.js @@ -3,9 +3,9 @@ // If the array literal is empty, the resulting type is an array type with the element type Undefined. // Otherwise, if the array literal is contextually typed by a type that has a property with the numeric name ‘0’, the resulting type is a tuple type constructed from the types of the element expressions. // Otherwise, the resulting type is an array type with an element type that is the union of the types of the element expressions. -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var arr1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.2.minified.js b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.2.minified.js index e1e74cfbbc33..b5081ee5bf92 100644 --- a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral.2.minified.js @@ -1,4 +1,4 @@ //// [unionTypeFromArrayLiteral.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; diff --git a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.1.normal.js b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.1.normal.js index a1ebe6f22d84..06a3533f613d 100644 --- a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.1.normal.js @@ -1,5 +1,5 @@ //// [unionTypePropertyAccessibility.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var Default = function Default() { "use strict"; _class_call_check(this, Default); diff --git a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.2.minified.js b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.2.minified.js index 4bc004ff5284..036fdc471f4e 100644 --- a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility.2.minified.js @@ -1,4 +1,4 @@ //// [unionTypePropertyAccessibility.ts] var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; v1.member, v2.member, v3.member, v4.member, v5.member, v6.member, v7.member, v8.member, v9.member, v10.member, v11.member, v12.member, v13.member, v14.member, v15.member; diff --git a/crates/swc/tests/tsc-references/unionTypesAssignability.1.normal.js b/crates/swc/tests/tsc-references/unionTypesAssignability.1.normal.js index d228b7d5ffb5..bc3a5f1a16f6 100644 --- a/crates/swc/tests/tsc-references/unionTypesAssignability.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypesAssignability.1.normal.js @@ -1,7 +1,7 @@ //// [unionTypesAssignability.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; var unionNumberString; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/unionTypesAssignability.2.minified.js b/crates/swc/tests/tsc-references/unionTypesAssignability.2.minified.js index c0741bec956b..44d0b700b6c5 100644 --- a/crates/swc/tests/tsc-references/unionTypesAssignability.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypesAssignability.2.minified.js @@ -1,6 +1,6 @@ //// [unionTypesAssignability.ts] var unionNumberString, unionDE, num, str, c, d, e, anyVar; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; c = d, c = e, c = unionDE, d = e, e = d = unionDE, e = unionDE, num = str, str = num = unionNumberString, str = unionNumberString, d = c, e = c, unionDE = c, e = d, unionDE = d, d = e, unionDE = e, str = num, unionNumberString = num, num = str, unionNumberString = str, anyVar = unionDE, unionDE = anyVar = unionNumberString, unionNumberString = anyVar, unionDE = null, unionNumberString = null, unionDE = void 0, unionNumberString = void 0; diff --git a/crates/swc/tests/tsc-references/unionsOfTupleTypes1.1.normal.js b/crates/swc/tests/tsc-references/unionsOfTupleTypes1.1.normal.js index 8145732a5994..847c49fba11f 100644 --- a/crates/swc/tests/tsc-references/unionsOfTupleTypes1.1.normal.js +++ b/crates/swc/tests/tsc-references/unionsOfTupleTypes1.1.normal.js @@ -1,5 +1,5 @@ //// [unionsOfTupleTypes1.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; function f1(t1, t2, t3, t4, x) { var _t1 = _sliced_to_array(t1, 3), d10 = _t1[0], d11 = _t1[1], d12 = _t1[2]; // string, number var _t2 = _sliced_to_array(t2, 3), d20 = _t2[0], d21 = _t2[1], d22 = _t2[2]; // string | boolean, number | undefined diff --git a/crates/swc/tests/tsc-references/unionsOfTupleTypes1.2.minified.js b/crates/swc/tests/tsc-references/unionsOfTupleTypes1.2.minified.js index 874d857fd536..9c0378d29729 100644 --- a/crates/swc/tests/tsc-references/unionsOfTupleTypes1.2.minified.js +++ b/crates/swc/tests/tsc-references/unionsOfTupleTypes1.2.minified.js @@ -1,5 +1,5 @@ //// [unionsOfTupleTypes1.ts] -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; var _ex = _sliced_to_array([ "hi" ], 2); diff --git a/crates/swc/tests/tsc-references/unknownType1.1.normal.js b/crates/swc/tests/tsc-references/unknownType1.1.normal.js index 187d3cbdea1f..8adac3798a62 100644 --- a/crates/swc/tests/tsc-references/unknownType1.1.normal.js +++ b/crates/swc/tests/tsc-references/unknownType1.1.normal.js @@ -1,10 +1,10 @@ //// [unknownType1.ts] // In an intersection everything absorbs unknown -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _extends from "@swc/helpers/src/_extends.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _extends } from "@swc/helpers/_/_extends"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; // Only equality operators are allowed with unknown function f10(x) { x == 5; diff --git a/crates/swc/tests/tsc-references/unknownType1.2.minified.js b/crates/swc/tests/tsc-references/unknownType1.2.minified.js index a40c889bbf79..c26a95ccc4c1 100644 --- a/crates/swc/tests/tsc-references/unknownType1.2.minified.js +++ b/crates/swc/tests/tsc-references/unknownType1.2.minified.js @@ -1,6 +1,6 @@ //// [unknownType1.ts] -import "@swc/helpers/src/_class_call_check.mjs"; -import "@swc/helpers/src/_extends.mjs"; -import "@swc/helpers/src/_instanceof.mjs"; -import "@swc/helpers/src/_object_destructuring_empty.mjs"; -import "@swc/helpers/src/_object_spread.mjs"; +import "@swc/helpers/_/_class_call_check"; +import "@swc/helpers/_/_extends"; +import "@swc/helpers/_/_instanceof"; +import "@swc/helpers/_/_object_destructuring_empty"; +import "@swc/helpers/_/_object_spread"; diff --git a/crates/swc/tests/tsc-references/validNullAssignments.1.normal.js b/crates/swc/tests/tsc-references/validNullAssignments.1.normal.js index d863c45fc879..6c5d6f6f3372 100644 --- a/crates/swc/tests/tsc-references/validNullAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/validNullAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [validNullAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var a = null; var b = null; var c = null; diff --git a/crates/swc/tests/tsc-references/validNullAssignments.2.minified.js b/crates/swc/tests/tsc-references/validNullAssignments.2.minified.js index e18cf479f1f7..c3f829445fb1 100644 --- a/crates/swc/tests/tsc-references/validNullAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/validNullAssignments.2.minified.js @@ -1,6 +1,6 @@ //// [validNullAssignments.ts] var E, M; -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A = null, I = null, (M || (M = {})).x = 1, M = null; diff --git a/crates/swc/tests/tsc-references/validUndefinedAssignments.1.normal.js b/crates/swc/tests/tsc-references/validUndefinedAssignments.1.normal.js index 1d7727f103c1..b1f11bac1966 100644 --- a/crates/swc/tests/tsc-references/validUndefinedAssignments.1.normal.js +++ b/crates/swc/tests/tsc-references/validUndefinedAssignments.1.normal.js @@ -1,5 +1,5 @@ //// [validUndefinedAssignments.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var x; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/validUndefinedAssignments.2.minified.js b/crates/swc/tests/tsc-references/validUndefinedAssignments.2.minified.js index 4a91f0fb1b2a..65061add3f4a 100644 --- a/crates/swc/tests/tsc-references/validUndefinedAssignments.2.minified.js +++ b/crates/swc/tests/tsc-references/validUndefinedAssignments.2.minified.js @@ -1,2 +1,2 @@ //// [validUndefinedAssignments.ts] -import "@swc/helpers/src/_class_call_check.mjs"; +import "@swc/helpers/_/_class_call_check"; diff --git a/crates/swc/tests/tsc-references/varRequireFromJavascript.1.normal.js b/crates/swc/tests/tsc-references/varRequireFromJavascript.1.normal.js index a4153743adf4..1bb61704233f 100644 --- a/crates/swc/tests/tsc-references/varRequireFromJavascript.1.normal.js +++ b/crates/swc/tests/tsc-references/varRequireFromJavascript.1.normal.js @@ -1,5 +1,5 @@ //// [ex.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Crunch = /*#__PURE__*/ function() { "use strict"; function Crunch(n) { diff --git a/crates/swc/tests/tsc-references/varRequireFromJavascript.2.minified.js b/crates/swc/tests/tsc-references/varRequireFromJavascript.2.minified.js index 61d052ca9ba4..cde3243c61d0 100644 --- a/crates/swc/tests/tsc-references/varRequireFromJavascript.2.minified.js +++ b/crates/swc/tests/tsc-references/varRequireFromJavascript.2.minified.js @@ -1,5 +1,5 @@ //// [ex.js] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Crunch = function() { "use strict"; function Crunch(n) { diff --git a/crates/swc/tests/tsc-references/varRequireFromTypescript.1.normal.js b/crates/swc/tests/tsc-references/varRequireFromTypescript.1.normal.js index f401657d7cf8..2235de5885f4 100644 --- a/crates/swc/tests/tsc-references/varRequireFromTypescript.1.normal.js +++ b/crates/swc/tests/tsc-references/varRequireFromTypescript.1.normal.js @@ -1,5 +1,5 @@ //// [ex.d.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Crunch = function Crunch() { "use strict"; _class_call_check(this, Crunch); diff --git a/crates/swc/tests/tsc-references/varRequireFromTypescript.2.minified.js b/crates/swc/tests/tsc-references/varRequireFromTypescript.2.minified.js index 5c78235b4b46..d19790ae2c97 100644 --- a/crates/swc/tests/tsc-references/varRequireFromTypescript.2.minified.js +++ b/crates/swc/tests/tsc-references/varRequireFromTypescript.2.minified.js @@ -1,5 +1,5 @@ //// [ex.d.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var Crunch = function Crunch() { "use strict"; _class_call_check(this, Crunch); diff --git a/crates/swc/tests/tsc-references/variadicTuples1.1.normal.js b/crates/swc/tests/tsc-references/variadicTuples1.1.normal.js index c22321b76170..09b8beed6d7d 100644 --- a/crates/swc/tests/tsc-references/variadicTuples1.1.normal.js +++ b/crates/swc/tests/tsc-references/variadicTuples1.1.normal.js @@ -1,7 +1,7 @@ //// [variadicTuples1.ts] // Variadics in tuple types -import _to_array from "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _to_array } from "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; // Variadics in array literals function tup2(t, u) { return [ diff --git a/crates/swc/tests/tsc-references/variadicTuples1.2.minified.js b/crates/swc/tests/tsc-references/variadicTuples1.2.minified.js index 28af437f2e48..5a09e6ffee74 100644 --- a/crates/swc/tests/tsc-references/variadicTuples1.2.minified.js +++ b/crates/swc/tests/tsc-references/variadicTuples1.2.minified.js @@ -1,6 +1,6 @@ //// [variadicTuples1.ts] -import "@swc/helpers/src/_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import "@swc/helpers/_/_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; function concat(t, u) { return _to_consumable_array(t).concat(_to_consumable_array(u)); } diff --git a/crates/swc/tests/tsc-references/variance.1.normal.js b/crates/swc/tests/tsc-references/variance.1.normal.js index 1afcf0c7d836..082b04ae0b08 100644 --- a/crates/swc/tests/tsc-references/variance.1.normal.js +++ b/crates/swc/tests/tsc-references/variance.1.normal.js @@ -1,7 +1,7 @@ //// [variance.ts] // Test cases for parameter variances affected by conditional types. // Repro from #30047 -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var foo = { prop: true }; diff --git a/crates/swc/tests/tsc-references/variance.2.minified.js b/crates/swc/tests/tsc-references/variance.2.minified.js index ffcf9746ad16..191722d3272a 100644 --- a/crates/swc/tests/tsc-references/variance.2.minified.js +++ b/crates/swc/tests/tsc-references/variance.2.minified.js @@ -1,5 +1,5 @@ //// [variance.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; (function() { "use strict"; function Bar() { diff --git a/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.1.normal.js b/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.1.normal.js index 72262aed433a..ca6209c4aa0c 100644 --- a/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.1.normal.js +++ b/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.1.normal.js @@ -1,6 +1,6 @@ //// [verbatimModuleSyntaxNoElisionESM.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var a = 0; export var AClass = function AClass() { "use strict"; @@ -15,7 +15,7 @@ export { }; //// [/main4.ts] export default 1; // ok //// [/main5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.2.minified.js b/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.2.minified.js index 63336c9c20ff..102048d9d247 100644 --- a/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.2.minified.js +++ b/crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.2.minified.js @@ -1,6 +1,6 @@ //// [verbatimModuleSyntaxNoElisionESM.ts] //// [/a.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; export var a = 0; export var AClass = function AClass() { "use strict"; @@ -15,7 +15,7 @@ export { }; //// [/main4.ts] export default 1; //// [/main5.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.1.normal.js b/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.1.normal.js index 0c3ce0b6dacc..7b2a596f2ecd 100644 --- a/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.1.normal.js +++ b/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.1.normal.js @@ -27,8 +27,8 @@ _export(exports, { Values: ()=>Values, x: ()=>x }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./decl"))); // error +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require("./decl"))); // error const x = 1; // error var Values; (function(Values) { diff --git a/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.2.minified.js b/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.2.minified.js index d421d20bb287..0d4871c85f34 100644 --- a/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.2.minified.js +++ b/crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.2.minified.js @@ -25,8 +25,8 @@ Object.defineProperty(exports, "__esModule", { Values: ()=>Values, x: ()=>x }); -const _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; -Promise.resolve().then(()=>_interop_require_wildcard(require("./decl"))); +const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); +Promise.resolve().then(()=>_interop_require_wildcard._(require("./decl"))); const x = 1; (Values || (Values = {})).x = 1; //// [/main2.ts] diff --git a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.1.normal.js index 620c2ac6d637..7ad0b69e5d57 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.1.normal.js @@ -1,6 +1,6 @@ //// [voidOperatorWithAnyOtherType.ts] // void operator on any type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ANY; var ANY1; var ANY2 = [ diff --git a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.2.minified.js index bd0fdd837542..199d6c6ac9dc 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.2.minified.js @@ -1,5 +1,5 @@ //// [voidOperatorWithAnyOtherType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, obj1 = { x: "", y: 1 diff --git a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.1.normal.js index ee36fa543bf6..1f64345c422d 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.1.normal.js @@ -1,6 +1,6 @@ //// [voidOperatorWithBooleanType.ts] // void operator on boolean type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var BOOLEAN; function foo() { return true; diff --git a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.2.minified.js index 7f2ff2f77234..0946d0a70df9 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType.2.minified.js @@ -1,5 +1,5 @@ //// [voidOperatorWithBooleanType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithNumberType.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithNumberType.1.normal.js index 51bc5a2f5191..acbf44d7c83e 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithNumberType.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithNumberType.1.normal.js @@ -1,6 +1,6 @@ //// [voidOperatorWithNumberType.ts] // void operator on number type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var NUMBER; var NUMBER1 = [ 1, diff --git a/crates/swc/tests/tsc-references/voidOperatorWithNumberType.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithNumberType.2.minified.js index 2a8d2e17d812..d41220216e20 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithNumberType.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithNumberType.2.minified.js @@ -1,5 +1,5 @@ //// [voidOperatorWithNumberType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithStringType.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithStringType.1.normal.js index d1cc790a5ea2..33a35cff5be1 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithStringType.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithStringType.1.normal.js @@ -1,6 +1,6 @@ //// [voidOperatorWithStringType.ts] // void operator on string type -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING; var STRING1 = [ "", diff --git a/crates/swc/tests/tsc-references/voidOperatorWithStringType.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithStringType.2.minified.js index 26dda41f44e2..b120ba6bdabe 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithStringType.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithStringType.2.minified.js @@ -1,5 +1,5 @@ //// [voidOperatorWithStringType.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/witness.1.normal.js b/crates/swc/tests/tsc-references/witness.1.normal.js index 18fa5768840a..3ef995267568 100644 --- a/crates/swc/tests/tsc-references/witness.1.normal.js +++ b/crates/swc/tests/tsc-references/witness.1.normal.js @@ -1,6 +1,6 @@ //// [witness.ts] // Initializers -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var varInit = varInit; // any var pInit; function fn() { diff --git a/crates/swc/tests/tsc-references/witness.2.minified.js b/crates/swc/tests/tsc-references/witness.2.minified.js index c722839afaab..89a20e6dae6d 100644 --- a/crates/swc/tests/tsc-references/witness.2.minified.js +++ b/crates/swc/tests/tsc-references/witness.2.minified.js @@ -1,5 +1,5 @@ //// [witness.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var co2, cnd1, or1, or2, or3, and1, and3, propAcc1, M2, varInit = varInit; !function fnReturn1() { return fnReturn1(); diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.1.normal.js index 0ad5f058505d..3f93b015131e 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.1.normal.js @@ -1,6 +1,6 @@ //// [wrappedAndRecursiveConstraints.ts] // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(data) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.2.minified.js index 82c9039ebe0b..cbc572b647de 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.2.minified.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C(data) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.1.normal.js index f0819b32425e..ecde1fcad339 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.1.normal.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.2.minified.js index ffac8369aca3..05632c05f2e2 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.2.minified.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints2.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.1.normal.js index 1e365f282c7c..ce0056dcfe86 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.1.normal.js @@ -1,6 +1,6 @@ //// [wrappedAndRecursiveConstraints3.ts] // no errors expected -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.2.minified.js index aedf7e53da24..9553eab7f96f 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.2.minified.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints3.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.1.normal.js index 546fc2a71cb3..a4cf219994a8 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.1.normal.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.2.minified.js index d62e5596c9a7..86d3f0db6960 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.2.minified.js @@ -1,5 +1,5 @@ //// [wrappedAndRecursiveConstraints4.ts] -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; new (function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.1.normal.js b/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.1.normal.js index 2ec6659f6c10..e80ad3923cf7 100644 --- a/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.1.normal.js +++ b/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.1.normal.js @@ -1,5 +1,5 @@ //// [bug25149.js] -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; function f() { var o; return _ts_generator(this, function(_state) { @@ -28,8 +28,8 @@ function f() { } //// [alsoFails.ts] // fails in Typescript too -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; -import _ts_values from "@swc/helpers/src/_ts_values.mjs"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; +import { _ as _ts_values } from "@swc/helpers/_/_ts_values"; function g() { var o; return _ts_generator(this, function(_state) { diff --git a/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.2.minified.js b/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.2.minified.js index 6603969a0bef..fabb7afb034b 100644 --- a/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.2.minified.js +++ b/crates/swc/tests/tsc-references/yieldExpressionInControlFlow.2.minified.js @@ -1,5 +1,5 @@ //// [bug25149.js] -import "@swc/helpers/src/_ts_generator.mjs"; +import "@swc/helpers/_/_ts_generator"; //// [alsoFails.ts] -import "@swc/helpers/src/_ts_generator.mjs"; -import "@swc/helpers/src/_ts_values.mjs"; +import "@swc/helpers/_/_ts_generator"; +import "@swc/helpers/_/_ts_values"; diff --git a/crates/swc/tests/vercel/full-compact/d3-color/1/output/index.js b/crates/swc/tests/vercel/full-compact/d3-color/1/output/index.js index 28540b8c1118..b6a5ed867774 100644 --- a/crates/swc/tests/vercel/full-compact/d3-color/1/output/index.js +++ b/crates/swc/tests/vercel/full-compact/d3-color/1/output/index.js @@ -1 +1 @@ -import t from"@swc/helpers/src/_instanceof.mjs";import{Color as i,rgbConvert as e,Rgb as h}from"./color.js";var r=Math.PI/180,n=180/Math.PI,s=-1.78277*.29227-.1347134789;export default function o(i,r,o,a){return 1==arguments.length?function(i){if(t(i,Cubehelix))return new Cubehelix(i.h,i.s,i.l,i.opacity);t(i,h)||(i=e(i));var r=i.r/255,o=i.g/255,a=i.b/255,u=(s*a+-1.7884503806*r-3.5172982438*o)/(s+-1.7884503806-3.5172982438),c=a-u,l=-((1.97294*(o-u)- -.29227*c)/.90649),p=Math.sqrt(l*l+c*c)/(1.97294*u*(1-u)),f=p?Math.atan2(l,c)*n-120:NaN;return new Cubehelix(f<0?f+360:f,p,u,i.opacity)}(i):new Cubehelix(i,r,o,null==a?1:a)}export function Cubehelix(t,i,e,h){this.h=+t,this.s=+i,this.l=+e,this.opacity=+h}!function(t,i,e){t.prototype=i.prototype=e,e.constructor=t}(Cubehelix,o,function(t,i){var e=Object.create(t.prototype);for(var h in i)e[h]=i[h];return e}(i,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Cubehelix(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Cubehelix(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*r,i=+this.l,e=isNaN(this.s)?0:this.s*i*(1-i),n=Math.cos(t),s=Math.sin(t);return new h(255*(i+e*(-.14861*n+1.78277*s)),255*(i+e*(-.29227*n+-.90649*s)),255*(i+e*(1.97294*n)),this.opacity)}})); +import{_ as t}from"@swc/helpers/_/_instanceof";import{Color as i,rgbConvert as e,Rgb as h}from"./color.js";var r=Math.PI/180,n=180/Math.PI,o=-1.78277*.29227-.1347134789;export default function s(i,r,s,a){return 1==arguments.length?function(i){if(t(i,Cubehelix))return new Cubehelix(i.h,i.s,i.l,i.opacity);t(i,h)||(i=e(i));var r=i.r/255,s=i.g/255,a=i.b/255,u=(o*a+-1.7884503806*r-3.5172982438*s)/(o+-1.7884503806-3.5172982438),l=a-u,c=-((1.97294*(s-u)- -.29227*l)/.90649),p=Math.sqrt(c*c+l*l)/(1.97294*u*(1-u)),f=p?Math.atan2(c,l)*n-120:NaN;return new Cubehelix(f<0?f+360:f,p,u,i.opacity)}(i):new Cubehelix(i,r,s,null==a?1:a)}export function Cubehelix(t,i,e,h){this.h=+t,this.s=+i,this.l=+e,this.opacity=+h}!function(t,i,e){t.prototype=i.prototype=e,e.constructor=t}(Cubehelix,s,function(t,i){var e=Object.create(t.prototype);for(var h in i)e[h]=i[h];return e}(i,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Cubehelix(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Cubehelix(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*r,i=+this.l,e=isNaN(this.s)?0:this.s*i*(1-i),n=Math.cos(t),o=Math.sin(t);return new h(255*(i+e*(-.14861*n+1.78277*o)),255*(i+e*(-.29227*n+-.90649*o)),255*(i+e*(1.97294*n)),this.opacity)}})); diff --git a/crates/swc/tests/vercel/full-compact/react-autosuggest/1/output/index.js b/crates/swc/tests/vercel/full-compact/react-autosuggest/1/output/index.js index 9b6308ddce78..e3d9b7d5d355 100644 --- a/crates/swc/tests/vercel/full-compact/react-autosuggest/1/output/index.js +++ b/crates/swc/tests/vercel/full-compact/react-autosuggest/1/output/index.js @@ -1 +1 @@ -"use strict";import e from"@swc/helpers/src/_instanceof.mjs";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(r,u,c):r[u]=e[u]}return r.default=e,t&&t.set(e,r),r}(require("react")),r=function(e){return e&&e.__esModule?e:{default:e}}(require("prop-types"));function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t= f) return -1; if (37 === (u = t.charCodeAt(i++))) { - if (!(c = nI[(u = t.charAt(i++)) in y ? t.charAt(i++) : u]) || (r = c(n, e, r)) < 0) return -1; + if (!(c = nG[(u = t.charAt(i++)) in y ? t.charAt(i++) : u]) || (r = c(n, e, r)) < 0) return -1; } else if (u != e.charCodeAt(r++)) return -1; } return r; - }, a = e.dateTime, l = e.date, v = e.time, C = e.periods, U = e.days, d = e.shortDays, D = e.months, x = e.shortMonths, nn = T(C), nx = m(C), nA = T(U), nV = m(U), nW = T(d), nj = m(d), nq = T(D), nQ = m(D), nX = T(x), nb = m(x), nB = { + }, a = e.dateTime, l = e.date, v = e.time, C = e.periods, U = e.days, d = e.shortDays, D = e.months, x = e.shortMonths, nn = T(C), nx = m(C), nA = T(U), nV = m(U), nW = T(d), nj = m(d), nq = T(D), nQ = m(D), nX = T(x), n_ = m(x), nb = { a: function(n) { return d[n.getDay()]; }, @@ -66,12 +66,12 @@ export default function v(e) { return D[n.getMonth()]; }, c: null, - d: $, - e: $, + d: I, + e: I, f: P, g: nc, G: no, - H: _, + H: $, I: z, j: E, L: O, @@ -97,7 +97,7 @@ export default function v(e) { Y: ni, Z: nf, "%": nY - }, nG = { + }, nB = { a: function(n) { return d[n.getUTCDay()]; }, @@ -142,7 +142,7 @@ export default function v(e) { Y: nH, Z: nS, "%": nY - }, nI = { + }, nG = { a: function(n, t, e) { var r = nW.exec(t.slice(e)); return r ? (n.w = nj.get(r[0].toLowerCase()), e + r[0].length) : -1; @@ -153,7 +153,7 @@ export default function v(e) { }, b: function(n, t, e) { var r = nX.exec(t.slice(e)); - return r ? (n.m = nb.get(r[0].toLowerCase()), e + r[0].length) : -1; + return r ? (n.m = n_.get(r[0].toLowerCase()), e + r[0].length) : -1; }, B: function(n, t, e) { var r = nq.exec(t.slice(e)); @@ -164,7 +164,7 @@ export default function v(e) { }, d: V, e: V, - f: b, + f: _, g: Y, G: S, H: j, @@ -178,8 +178,8 @@ export default function v(e) { return r ? (n.p = nx.get(r[0].toLowerCase()), e + r[0].length) : -1; }, q: Z, - Q: G, - s: I, + Q: B, + s: G, S: Q, u: M, U: p, @@ -195,11 +195,11 @@ export default function v(e) { y: Y, Y: S, Z: F, - "%": B + "%": b }; - return nB.x = u(l, nB), nB.X = u(v, nB), nB.c = u(a, nB), nG.x = u(l, nG), nG.X = u(v, nG), nG.c = u(a, nG), { + return nb.x = u(l, nb), nb.X = u(v, nb), nb.c = u(a, nb), nB.x = u(l, nB), nB.X = u(v, nB), nB.c = u(a, nB), { format: function(n) { - var t = u(n += "", nB); + var t = u(n += "", nb); return t.toString = function() { return n; }, t; @@ -211,7 +211,7 @@ export default function v(e) { }, t; }, utcFormat: function(n) { - var t = u(n += "", nG); + var t = u(n += "", nB); return t.toString = function() { return n; }, t; @@ -311,26 +311,26 @@ function X(n, t, e) { var r = C.exec(t.slice(e, e + 3)); return r ? (n.L = +r[0], e + r[0].length) : -1; } -function b(n, t, e) { +function _(n, t, e) { var r = C.exec(t.slice(e, e + 6)); return r ? (n.L = Math.floor(r[0] / 1000), e + r[0].length) : -1; } -function B(n, t, e) { +function b(n, t, e) { var r = U.exec(t.slice(e, e + 1)); return r ? e + r[0].length : -1; } -function G(n, t, e) { +function B(n, t, e) { var r = C.exec(t.slice(e)); return r ? (n.Q = +r[0], e + r[0].length) : -1; } -function I(n, t, e) { +function G(n, t, e) { var r = C.exec(t.slice(e)); return r ? (n.s = +r[0], e + r[0].length) : -1; } -function $(n, t) { +function I(n, t) { return D(n.getDate(), t, 2); } -function _(n, t) { +function $(n, t) { return D(n.getHours(), t, 2); } function z(n, t) { diff --git a/crates/swc/tests/vercel/full/next-31419/1/output/index.js b/crates/swc/tests/vercel/full/next-31419/1/output/index.js index 1ca989af50d8..bd5066635595 100644 --- a/crates/swc/tests/vercel/full/next-31419/1/output/index.js +++ b/crates/swc/tests/vercel/full/next-31419/1/output/index.js @@ -1,6 +1,6 @@ -import r from "@swc/helpers/src/_async_to_generator.mjs"; -import n from "@swc/helpers/src/_ts_generator.mjs"; -import t from "@swc/helpers/src/_ts_values.mjs"; +import { _ as r } from "@swc/helpers/_/_async_to_generator"; +import { _ as n } from "@swc/helpers/_/_ts_generator"; +import { _ as t } from "@swc/helpers/_/_ts_values"; Promise.all(assignAll).then(function() { var e = r(function(r) { var e, s, i, c, o; diff --git a/crates/swc/tests/vercel/full/next-31419/2/output/index.js b/crates/swc/tests/vercel/full/next-31419/2/output/index.js index 3bcdd93428d3..a8fb98a58178 100644 --- a/crates/swc/tests/vercel/full/next-31419/2/output/index.js +++ b/crates/swc/tests/vercel/full/next-31419/2/output/index.js @@ -1,25 +1,25 @@ -import r from "@swc/helpers/src/_async_to_generator.mjs"; +import { _ as n } from "@swc/helpers/_/_async_to_generator"; Promise.all(assignAll).then(function() { - var n = r(function*(r) { - for(let r in obj){ - let n = obj[r]; - n.id, (yield listOfUser(n.id)).forEach((r)=>{ - insertQuery += `INSERT INTO "TABLE"("UUID", id, other_ids_here) VALUES ('${uuidv4()}', '${n.id}', now());`; + var r = n(function*(n) { + for(let n in obj){ + let r = obj[n]; + r.id, (yield listOfUser(r.id)).forEach((n)=>{ + insertQuery += `INSERT INTO "TABLE"("UUID", id, other_ids_here) VALUES ('${uuidv4()}', '${r.id}', now());`; }); } }); - return function(r) { - return n.apply(this, arguments); + return function(n) { + return r.apply(this, arguments); }; }()); -export const listOfUser = function(n) { +export const listOfUser = function(r) { var e; - return new Promise((e = r(function*(r, e) { - let t = `Select Distinct id from "TABLE" Where id = '${n}' And user_id IS not null`; - postgreSQL.query(t, null, function(n, t) { - n ? e(n) : r(t.rows); + return new Promise((e = n(function*(n, e) { + let t = `Select Distinct id from "TABLE" Where id = '${r}' And user_id IS not null`; + postgreSQL.query(t, null, function(r, t) { + r ? e(r) : n(t.rows); }); - }), function(r, n) { + }), function(n, r) { return e.apply(this, arguments); })); }; diff --git a/crates/swc/tests/vercel/full/next-33088/output/index.js b/crates/swc/tests/vercel/full/next-33088/output/index.js index 0289deac1acb..bb0ba15e2ad9 100644 --- a/crates/swc/tests/vercel/full/next-33088/output/index.js +++ b/crates/swc/tests/vercel/full/next-33088/output/index.js @@ -1,19 +1,19 @@ -import t from "@swc/helpers/src/_async_to_generator.mjs"; -import r from "@swc/helpers/src/_sliced_to_array.mjs"; -import e from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as t } from "@swc/helpers/_/_async_to_generator"; +import { _ as e } from "@swc/helpers/_/_sliced_to_array"; +import { _ as r } from "@swc/helpers/_/_ts_generator"; import { jsx as n, jsxs as s, Fragment as a } from "react/jsx-runtime"; -import * as c from "react"; -export default function i() { - var i = r(c.useState({ +import * as i from "react"; +export default function c() { + var c = e(i.useState({ hits: [] - }), 2), o = i[0], u = i[1], l = r(c.useState("react"), 2), h = l[0], f = l[1]; - return c.useEffect(function() { + }), 2), o = c[0], u = c[1], l = e(i.useState("react"), 2), h = l[0], f = l[1]; + return i.useEffect(function() { "" !== h && function() { - r.apply(this, arguments); + e.apply(this, arguments); }(); - function r() { - return (r = t(function() { - return e(this, function(t) { + function e() { + return (e = t(function() { + return r(this, function(t) { switch(t.label){ case 0: return [ diff --git a/crates/swc/tests/vercel/full/react-autosuggest/1/output/index.js b/crates/swc/tests/vercel/full/react-autosuggest/1/output/index.js index d2ef0f824a7c..4c58349096fd 100644 --- a/crates/swc/tests/vercel/full/react-autosuggest/1/output/index.js +++ b/crates/swc/tests/vercel/full/react-autosuggest/1/output/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: !0 }); -var _instanceof = require("@swc/helpers/lib/_instanceof.js").default; +var _instanceof = require("@swc/helpers/_/_instanceof"); Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; @@ -116,7 +116,7 @@ var ItemsList = function(_Component) { function ItemsList() { var _this; !function(instance, Constructor) { - if (!_instanceof(instance, Constructor)) throw TypeError("Cannot call a class as a function"); + if (!_instanceof._(instance, Constructor)) throw TypeError("Cannot call a class as a function"); }(this, ItemsList); for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return _defineProperty(_assertThisInitialized(_this = _super.call.apply(_super, [ diff --git a/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js b/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js index bdb7e1cea59f..38943e6b208e 100644 --- a/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js +++ b/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js @@ -7,17 +7,17 @@ Object.defineProperty(exports, "__esModule", { return p; } }); -var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = require("@swc/helpers/lib/_class_call_check.js").default, r = require("@swc/helpers/lib/_create_class.js").default, i = require("@swc/helpers/lib/_define_property.js").default, s = require("@swc/helpers/lib/_inherits.js").default, n = require("@swc/helpers/lib/_interop_require_default.js").default, u = require("@swc/helpers/lib/_interop_require_wildcard.js").default, l = require("@swc/helpers/lib/_object_spread.js").default, d = require("@swc/helpers/lib/_object_spread_props.js").default, a = require("@swc/helpers/lib/_create_super.js").default, c = require("react/jsx-runtime"), o = u(require("react")), f = n(require("prop-types")), p = function(n) { +var e = require("@swc/helpers/_/_assert_this_initialized"), t = require("@swc/helpers/_/_class_call_check"), r = require("@swc/helpers/_/_create_class"), i = require("@swc/helpers/_/_define_property"), n = require("@swc/helpers/_/_inherits"), s = require("@swc/helpers/_/_interop_require_default"), u = require("@swc/helpers/_/_interop_require_wildcard"), d = require("@swc/helpers/_/_object_spread"), c = require("@swc/helpers/_/_object_spread_props"), l = require("@swc/helpers/_/_create_super"), a = require("react/jsx-runtime"), o = u._(require("react")), _ = s._(require("prop-types")), p = function(s) { "use strict"; - s(o, n); - var u = a(o); + n._(o, s); + var u = l._(o); function o() { var r; - return t(this, o), r = u.apply(this, arguments), i(e(r), "storeHighlightedItemReference", function(e) { + return t._(this, o), r = u.apply(this, arguments), i._(e._(r), "storeHighlightedItemReference", function(e) { r.props.onHighlightedItemChange(null === e ? null : e.item); }), r; } - return r(o, [ + return r._(o, [ { key: "shouldComponentUpdate", value: function(e) { @@ -27,25 +27,25 @@ var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = req { key: "render", value: function() { - var e = this, t = this.props, r = t.items, i = t.itemProps, s = t.renderItem, n = t.renderItemData, u = t.sectionIndex, a = t.highlightedItemIndex, o = t.getItemId, f = t.theme, p = t.keyPrefix, h = null === u ? p : "".concat(p, "section-").concat(u, "-"), m = "function" == typeof i; - return (0, c.jsx)("ul", d(l({ + var e = this, t = this.props, r = t.items, i = t.itemProps, n = t.renderItem, s = t.renderItemData, u = t.sectionIndex, l = t.highlightedItemIndex, o = t.getItemId, _ = t.theme, p = t.keyPrefix, h = null === u ? p : "".concat(p, "section-").concat(u, "-"), f = "function" == typeof i; + return (0, a.jsx)("ul", c._(d._({ role: "listbox" - }, f("".concat(h, "items-list"), "itemsList")), { + }, _("".concat(h, "items-list"), "itemsList")), { children: r.map(function(t, r) { - var p = r === a, I = "".concat(h, "item-").concat(r), _ = m ? i({ + var p = r === l, m = "".concat(h, "item-").concat(r), I = f ? i({ sectionIndex: u, itemIndex: r - }) : i, g = l({ + }) : i, g = d._({ id: o(u, r), "aria-selected": p - }, f(I, "item", 0 === r && "itemFirst", p && "itemHighlighted"), _); - return p && (g.ref = e.storeHighlightedItemReference), (0, c.jsx)(Item, d(l({}, g), { + }, _(m, "item", 0 === r && "itemFirst", p && "itemHighlighted"), I); + return p && (g.ref = e.storeHighlightedItemReference), (0, a.jsx)(Item, c._(d._({}, g), { sectionIndex: u, isHighlighted: p, itemIndex: r, item: t, - renderItem: s, - renderItemData: n + renderItem: n, + renderItemData: s })); }) })); @@ -53,20 +53,20 @@ var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = req } ]), o; }(o.Component); -i(p, "propTypes", { - items: f.default.array.isRequired, - itemProps: f.default.oneOfType([ - f.default.object, - f.default.func +i._(p, "propTypes", { + items: _.default.array.isRequired, + itemProps: _.default.oneOfType([ + _.default.object, + _.default.func ]), - renderItem: f.default.func.isRequired, - renderItemData: f.default.object.isRequired, - sectionIndex: f.default.number, - highlightedItemIndex: f.default.number, - onHighlightedItemChange: f.default.func.isRequired, - getItemId: f.default.func.isRequired, - theme: f.default.func.isRequired, - keyPrefix: f.default.string.isRequired -}), i(p, "defaultProps", { + renderItem: _.default.func.isRequired, + renderItemData: _.default.object.isRequired, + sectionIndex: _.default.number, + highlightedItemIndex: _.default.number, + onHighlightedItemChange: _.default.func.isRequired, + getItemId: _.default.func.isRequired, + theme: _.default.func.isRequired, + keyPrefix: _.default.string.isRequired +}), i._(p, "defaultProps", { sectionIndex: null }), new p(); diff --git a/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js b/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js index a8bbef8df165..ce14b8d91711 100644 --- a/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js +++ b/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js @@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", { }), Object.defineProperty(exports, "default", { enumerable: !0, get: function() { - return o; + return u; } }); -var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = require("@swc/helpers/lib/_class_call_check.js").default, r = require("@swc/helpers/lib/_create_class.js").default, i = require("@swc/helpers/lib/_define_property.js").default, s = require("@swc/helpers/lib/_inherits.js").default, n = require("@swc/helpers/lib/_interop_require_wildcard.js").default, l = require("@swc/helpers/lib/_object_spread.js").default, c = require("@swc/helpers/lib/_object_spread_props.js").default, u = require("@swc/helpers/lib/_create_super.js").default, a = require("react/jsx-runtime"), o = function(n) { +var e = require("@swc/helpers/_/_assert_this_initialized"), r = require("@swc/helpers/_/_class_call_check"), t = require("@swc/helpers/_/_create_class"), i = require("@swc/helpers/_/_define_property"), s = require("@swc/helpers/_/_inherits"), n = require("@swc/helpers/_/_interop_require_wildcard"), c = require("@swc/helpers/_/_object_spread"), o = require("@swc/helpers/_/_object_spread_props"), _ = require("@swc/helpers/_/_create_super"), l = require("react/jsx-runtime"), u = function(n) { "use strict"; - s(d, n); - var o = u(d); - function d() { - var r; - return t(this, d), r = o.apply(this, arguments), i(e(r), "storeHighlightedItemReference", function(e) { - r.props.onHighlightedItemChange(null === e ? null : e.item); - }), r; + s._(p, n); + var u = _._(p); + function p() { + var t; + return r._(this, p), t = u.apply(this, arguments), i._(e._(t), "storeHighlightedItemReference", function(e) { + t.props.onHighlightedItemChange(null === e ? null : e.item); + }), t; } - return r(d, [ + return t._(p, [ { key: "shouldComponentUpdate", value: function(e) { @@ -29,23 +29,23 @@ var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = req { key: "render", value: function() { - var e = this, t = this.props, r = t.items, i = t.itemProps, s = t.renderItem, n = t.renderItemData, u = t.sectionIndex, o = t.highlightedItemIndex, d = t.getItemId, p = t.theme, h = t.keyPrefix, m = null === u ? h : "".concat(h, "section-").concat(u, "-"), f = "function" == typeof i; - return (0, a.jsx)("ul", c(l({ + var e = this, r = this.props, t = r.items, i = r.itemProps, s = r.renderItem, n = r.renderItemData, _ = r.sectionIndex, u = r.highlightedItemIndex, p = r.getItemId, a = r.theme, d = r.keyPrefix, h = null === _ ? d : "".concat(d, "section-").concat(_, "-"), m = "function" == typeof i; + return (0, l.jsx)("ul", o._(c._({ role: "listbox" - }, p("".concat(m, "items-list"), "itemsList")), { - children: r.map(function(t, r) { - var h = r === o, _ = "".concat(m, "item-").concat(r), I = f ? i({ - sectionIndex: u, - itemIndex: r - }) : i, j = l({ - id: d(u, r), - "aria-selected": h - }, p(_, "item", 0 === r && "itemFirst", h && "itemHighlighted"), I); - return h && (j.ref = e.storeHighlightedItemReference), (0, a.jsx)(Item, c(l({}, j), { - sectionIndex: u, - isHighlighted: h, - itemIndex: r, - item: t, + }, a("".concat(h, "items-list"), "itemsList")), { + children: t.map(function(r, t) { + var d = t === u, f = "".concat(h, "item-").concat(t), I = m ? i({ + sectionIndex: _, + itemIndex: t + }) : i, g = c._({ + id: p(_, t), + "aria-selected": d + }, a(f, "item", 0 === t && "itemFirst", d && "itemHighlighted"), I); + return d && (g.ref = e.storeHighlightedItemReference), (0, l.jsx)(Item, o._(c._({}, g), { + sectionIndex: _, + isHighlighted: d, + itemIndex: t, + item: r, renderItem: s, renderItemData: n })); @@ -53,10 +53,10 @@ var e = require("@swc/helpers/lib/_assert_this_initialized.js").default, t = req })); } } - ]), d; -}(n(require("react")).Component); -i(o, "propTypes", { + ]), p; +}(n._(require("react")).Component); +i._(u, "propTypes", { items: 500 -}), i(o, "defaultProps", { +}), i._(u, "defaultProps", { sectionIndex: null -}), new o(); +}), new u(); diff --git a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js index 0df8eecc6f25..424dc06b9865 100644 --- a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js +++ b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js @@ -1,11 +1,11 @@ -import e from "@swc/helpers/src/_define_property.mjs"; -import t from "@swc/helpers/src/_object_spread.mjs"; -import r from "@swc/helpers/src/_object_spread_props.mjs"; -import a from "@swc/helpers/src/_object_without_properties.mjs"; -import n from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as e } from "@swc/helpers/_/_define_property"; +import { _ as t } from "@swc/helpers/_/_object_spread"; +import { _ as r } from "@swc/helpers/_/_object_spread_props"; +import { _ as a } from "@swc/helpers/_/_object_without_properties"; +import { _ as n } from "@swc/helpers/_/_to_consumable_array"; import s from "algoliasearch-helper"; -import c from "./createWidgetsManager"; -import { HIGHLIGHT_TAGS as i } from "./highlight"; +import i from "./createWidgetsManager"; +import { HIGHLIGHT_TAGS as c } from "./highlight"; import { hasMultipleIndices as u } from "./indexUtils"; import { version as o } from "react"; import l from "./version"; @@ -28,20 +28,20 @@ var f = function(e) { return r && !a ? -1 : !r && a ? 1 : 0; }; export default function S(u) { - var o, l, S = u.indexName, v = u.initialState, x = u.searchClient, y = u.resultsState, w = u.stalledSearchDelay, F = function(e) { + var o, l, S = u.indexName, v = u.initialState, x = u.searchClient, _ = u.resultsState, y = u.stalledSearchDelay, w = function(e) { return O.getWidgets().filter(function(e) { return !!e.getMetadata; }).map(function(t) { return t.getMetadata(e); }); - }, _ = function() { + }, F = function() { var a = O.getWidgets().filter(function(e) { return !!e.getSearchParameters; }).filter(function(e) { return !f(e) && !p(e); }).reduce(function(e, t) { return t.getSearchParameters(e); - }, N), n = O.getWidgets().filter(function(e) { + }, j), n = O.getWidgets().filter(function(e) { return !!e.getSearchParameters; }).filter(function(e) { var t = f(e) && m(e, S), r = p(e) && g(e, S); @@ -54,9 +54,9 @@ export default function S(u) { var t = f(e) && !m(e, S), r = p(e) && !g(e, S); return t || r; }).sort(h).reduce(function(a, n) { - var s = f(n) ? n.props.indexContextValue.targetedIndex : n.props.indexId, c = a[s] || []; - return r(t({}, a), e({}, s, c.concat(n))); - }, {}), c = Object.keys(s).map(function(e) { + var s = f(n) ? n.props.indexContextValue.targetedIndex : n.props.indexId, i = a[s] || []; + return r(t({}, a), e({}, s, i.concat(n))); + }, {}), i = Object.keys(s).map(function(e) { return { parameters: s[e].reduce(function(e, t) { return t.getSearchParameters(e); @@ -66,29 +66,29 @@ export default function S(u) { }); return { mainParameters: n, - derivedParameters: c + derivedParameters: i }; }, V = function() { - if (!R) { - var e = _(P.state), t = e.mainParameters, r = e.derivedParameters; - P.derivedHelpers.slice().forEach(function(e) { + if (!C) { + var e = F(R.state), t = e.mainParameters, r = e.derivedParameters; + R.derivedHelpers.slice().forEach(function(e) { e.detach(); }), r.forEach(function(e) { var t = e.indexId, r = e.parameters; - P.derive(function() { + R.derive(function() { return r; }).on("result", I({ indexId: t - })).on("error", j); - }), P.setState(t), P.search(); + })).on("error", b); + }), R.setState(t), R.search(); } }, I = function(n) { var s = n.indexId; return function(n) { - var c = q.getState(), i = !P.derivedHelpers.length, u = c.results ? c.results : {}; - u = !i && u.getFacetByName ? {} : u, u = i ? n.results : r(t({}, u), e({}, s, n.results)); + var i = q.getState(), c = !R.derivedHelpers.length, u = i.results ? i.results : {}; + u = !c && u.getFacetByName ? {} : u, u = c ? n.results : r(t({}, u), e({}, s, n.results)); var o = q.getState(), l = o.isSearchStalled; - P.hasPendingRequests() || (clearTimeout(C), C = null, l = !1), o.resultsFacetValues; + R.hasPendingRequests() || (clearTimeout(N), N = null, l = !1), o.resultsFacetValues; var d = a(o, [ "resultsFacetValues" ]); @@ -99,18 +99,18 @@ export default function S(u) { error: null })); }; - }, j = function(e) { - var n = e.error, s = q.getState(), c = s.isSearchStalled; - P.hasPendingRequests() || (clearTimeout(C), c = !1), s.resultsFacetValues; - var i = a(s, [ + }, b = function(e) { + var n = e.error, s = q.getState(), i = s.isSearchStalled; + R.hasPendingRequests() || (clearTimeout(N), i = !1), s.resultsFacetValues; + var c = a(s, [ "resultsFacetValues" ]); - q.setState(r(t({}, i), { - isSearchStalled: c, + q.setState(r(t({}, c), { + isSearchStalled: i, error: n, searching: !1 })); - }, b = function(a, n) { + }, A = function(a, n) { if (a.transporter) { a.transporter.responsesCache.set({ method: "search", @@ -146,7 +146,7 @@ export default function S(u) { return e.concat(t.rawResults); }, []) }))); - }, A = function(a, n) { + }, P = function(a, n) { if (a.transporter) { a.transporter.responsesCache.set({ method: "search", @@ -174,21 +174,21 @@ export default function S(u) { a.cache = r(t({}, a.cache), e({}, s, JSON.stringify({ results: n.rawResults }))); - }, P = s(x, S, t({}, i)); - d(x), P.on("search", function() { - C || (C = setTimeout(function() { + }, R = s(x, S, t({}, c)); + d(x), R.on("search", function() { + N || (N = setTimeout(function() { var e = q.getState(), n = (e.resultsFacetValues, a(e, [ "resultsFacetValues" ])); q.setState(r(t({}, n), { isSearchStalled: !0 })); - }, w)); + }, y)); }).on("result", I({ indexId: S - })).on("error", j); - var R = !1, C = null, N = P.state, O = c(function() { - var e = F(q.getState().widgets); + })).on("error", b); + var C = !1, N = null, j = R.state, O = i(function() { + var e = w(q.getState().widgets); q.setState(r(t({}, q.getState()), { metadata: e, searching: !0 @@ -200,7 +200,7 @@ export default function S(u) { e._cacheHydrated = !0; var s = e.search; e.search = function(a) { - for(var c = arguments.length, i = Array(c > 1 ? c - 1 : 0), u = 1; u < c; u++)i[u - 1] = arguments[u]; + for(var i = arguments.length, c = Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)c[u - 1] = arguments[u]; var o = a.map(function(e) { var a, n; return r(t({}, e), { @@ -220,24 +220,24 @@ export default function S(u) { method: "search", args: [ o - ].concat(n(i)) + ].concat(n(c)) }, function() { return s.apply(void 0, [ a - ].concat(n(i))); + ].concat(n(c))); }); }; } if (Array.isArray(a.results)) { - b(e, a.results); + A(e, a.results); return; } - A(e, a); + P(e, a); } - }(x, y); + }(x, _); var q = (o = { widgets: void 0 === v ? {} : v, - metadata: y ? y.metadata.map(function(e) { + metadata: _ ? _.metadata.map(function(e) { return r(t({ value: function() { return {}; @@ -260,9 +260,9 @@ export default function S(u) { }) }); }) : [], - results: y ? Array.isArray(y.results) ? y.results.reduce(function(a, n) { + results: _ ? Array.isArray(_.results) ? _.results.reduce(function(a, n) { return r(t({}, a), e({}, n._internalIndexId, new s.SearchResults(new s.SearchParameters(n.state), n.rawResults))); - }, {}) : new s.SearchResults(new s.SearchParameters(y.state), y.rawResults) : null, + }, {}) : new s.SearchResults(new s.SearchParameters(_.state), _.rawResults) : null, error: null, searching: !1, isSearchStalled: !0, @@ -290,17 +290,17 @@ export default function S(u) { return void 0 !== t.id ? e.concat(t.id) : e; }, []); }, - getSearchParameters: _, + getSearchParameters: F, onSearchForFacetValues: function(a) { - var n = a.facetName, s = a.query, c = a.maxFacetHits; + var n = a.facetName, s = a.query, i = a.maxFacetHits; q.setState(r(t({}, q.getState()), { searchingForFacetValues: !0 - })), P.searchForFacetValues(n, s, Math.max(1, Math.min(void 0 === c ? 10 : c, 100))).then(function(a) { - var c; + })), R.searchForFacetValues(n, s, Math.max(1, Math.min(void 0 === i ? 10 : i, 100))).then(function(a) { + var i; q.setState(r(t({}, q.getState()), { error: null, searchingForFacetValues: !1, - resultsFacetValues: r(t({}, q.getState().resultsFacetValues), (e(c = {}, n, a.facetHits), e(c, "query", s), c)) + resultsFacetValues: r(t({}, q.getState().resultsFacetValues), (e(i = {}, n, a.facetHits), e(i, "query", s), i)) })); }, function(e) { q.setState(r(t({}, q.getState()), { @@ -314,7 +314,7 @@ export default function S(u) { }); }, onExternalStateUpdate: function(e) { - var a = F(e); + var a = w(e); q.setState(r(t({}, q.getState()), { widgets: e, metadata: a, @@ -330,16 +330,16 @@ export default function S(u) { }, e); }, updateClient: function(e) { - d(e), P.setClient(e), V(); + d(e), R.setClient(e), V(); }, updateIndex: function(e) { - N = N.setIndex(e); + j = j.setIndex(e); }, clearCache: function() { - P.clearCache(), V(); + R.clearCache(), V(); }, skipSearch: function() { - R = !0; + C = !0; } }; } diff --git a/crates/swc/tests/vercel/full/utf8-1/output/index.js b/crates/swc/tests/vercel/full/utf8-1/output/index.js index e545d400e764..08f71913e468 100644 --- a/crates/swc/tests/vercel/full/utf8-1/output/index.js +++ b/crates/swc/tests/vercel/full/utf8-1/output/index.js @@ -1,8 +1,8 @@ -import e from "@swc/helpers/src/_async_to_generator.mjs"; -import t from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as e } from "@swc/helpers/_/_async_to_generator"; +import { _ as t } from "@swc/helpers/_/_ts_generator"; import { displayContent as a } from "./fouc"; -import r from "./on-demand-entries-client"; -import { addMessageListener as n, connectHMR as c } from "./error-overlay/websocket"; +import n from "./on-demand-entries-client"; +import { addMessageListener as r, connectHMR as c } from "./error-overlay/websocket"; var o = JSON.parse(document.getElementById("__NEXT_DATA__").textContent); window.__NEXT_DATA__ = o; var s = o.assetPrefix, i = o.page; @@ -53,7 +53,7 @@ function p() { }); })).apply(this, arguments); } -n(function(e) { +r(function(e) { if ("\uD83D\uDC93" !== e.data) try { var t = JSON.parse(e.data); if ("sync" === t.action || "built" === t.action) { @@ -68,4 +68,4 @@ n(function(e) { }), c({ assetPrefix: s, path: "/_next/webpack-hmr" -}), a(), r(o.page); +}), a(), n(o.page); diff --git a/crates/swc/tests/vercel/loader-only/next-31627/1/output/index.js b/crates/swc/tests/vercel/loader-only/next-31627/1/output/index.js index fd671d7754fa..6128aae4e02c 100644 --- a/crates/swc/tests/vercel/loader-only/next-31627/1/output/index.js +++ b/crates/swc/tests/vercel/loader-only/next-31627/1/output/index.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useEffect } from "react"; import { select, selectAll } from "d3-selection"; diff --git a/crates/swc/tests/vercel/loader-only/next-33291/1-automatic/output/index.js b/crates/swc/tests/vercel/loader-only/next-33291/1-automatic/output/index.js index 4920f12cabed..8b25da1d2faf 100644 --- a/crates/swc/tests/vercel/loader-only/next-33291/1-automatic/output/index.js +++ b/crates/swc/tests/vercel/loader-only/next-33291/1-automatic/output/index.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime"; import { createElement as _createElement } from "react"; import Head from "next/head"; diff --git a/crates/swc/tests/vercel/loader-only/next-33291/2-classic/output/index.js b/crates/swc/tests/vercel/loader-only/next-33291/2-classic/output/index.js index 0f2fb8566f0a..c61b5a3ce410 100644 --- a/crates/swc/tests/vercel/loader-only/next-33291/2-classic/output/index.js +++ b/crates/swc/tests/vercel/loader-only/next-33291/2-classic/output/index.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; import Head from "next/head"; import Image from "next/image"; import styles from "../styles/Home.module.css"; diff --git a/crates/swc/tests/vercel/loader-only/next-39460/output/snippetSession.js b/crates/swc/tests/vercel/loader-only/next-39460/output/snippetSession.js index 499444081df7..5637329e41f8 100644 --- a/crates/swc/tests/vercel/loader-only/next-39460/output/snippetSession.js +++ b/crates/swc/tests/vercel/loader-only/next-39460/output/snippetSession.js @@ -1,12 +1,12 @@ /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _instanceof from "@swc/helpers/src/_instanceof.mjs"; -import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; -import _type_of from "@swc/helpers/src/_type_of.mjs"; + *--------------------------------------------------------------------------------------------*/ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; +import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; +import { _ as _type_of } from "@swc/helpers/_/_type_of"; import { groupBy } from "../../../base/common/arrays.js"; import { dispose } from "../../../base/common/lifecycle.js"; import { getLeadingWhitespace } from "../../../base/common/strings.js"; diff --git a/crates/swc/tests/vercel/loader-only/react-autowhatever/1/output/index.js b/crates/swc/tests/vercel/loader-only/react-autowhatever/1/output/index.js index b3805d609c20..679ba4e06b8a 100644 --- a/crates/swc/tests/vercel/loader-only/react-autowhatever/1/output/index.js +++ b/crates/swc/tests/vercel/loader-only/react-autowhatever/1/output/index.js @@ -1,11 +1,11 @@ -import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _create_class from "@swc/helpers/src/_create_class.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _inherits from "@swc/helpers/src/_inherits.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _create_super from "@swc/helpers/src/_create_super.mjs"; +import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _create_class } from "@swc/helpers/_/_create_class"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _inherits } from "@swc/helpers/_/_inherits"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _create_super } from "@swc/helpers/_/_create_super"; import { jsx as _jsx } from "react/jsx-runtime"; import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/crates/swc/tests/vercel/loader-only/react-instantsearch/1/output/index.js b/crates/swc/tests/vercel/loader-only/react-instantsearch/1/output/index.js index 30217b86aec6..7533a60bce70 100644 --- a/crates/swc/tests/vercel/loader-only/react-instantsearch/1/output/index.js +++ b/crates/swc/tests/vercel/loader-only/react-instantsearch/1/output/index.js @@ -1,8 +1,8 @@ -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _object_spread from "@swc/helpers/src/_object_spread.mjs"; -import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; -import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; -import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _object_spread } from "@swc/helpers/_/_object_spread"; +import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props"; +import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties"; +import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array"; import algoliasearchHelper from "algoliasearch-helper"; import createWidgetsManager from "./createWidgetsManager"; import { HIGHLIGHT_TAGS } from "./highlight"; diff --git a/crates/swc/tests/vercel/loader-only/regressions/1/full/output/index.js b/crates/swc/tests/vercel/loader-only/regressions/1/full/output/index.js index 30808fa8c552..72a651c9b935 100644 --- a/crates/swc/tests/vercel/loader-only/regressions/1/full/output/index.js +++ b/crates/swc/tests/vercel/loader-only/regressions/1/full/output/index.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; import { useEffect } from "react"; var Test = function Test(name) { diff --git a/crates/swc/tests/vercel/loader-only/regressions/1/simplified/output/index.js b/crates/swc/tests/vercel/loader-only/regressions/1/simplified/output/index.js index 97afb39bdd0a..c6259aab3ca2 100644 --- a/crates/swc/tests/vercel/loader-only/regressions/1/simplified/output/index.js +++ b/crates/swc/tests/vercel/loader-only/regressions/1/simplified/output/index.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; -import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -import _define_property from "@swc/helpers/src/_define_property.mjs"; -import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; +import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator"; +import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; +import { _ as _define_property } from "@swc/helpers/_/_define_property"; +import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator"; var Test = function Test(name) { "use strict"; _class_call_check(this, Test); diff --git a/crates/swc_ecma_transforms_base/src/helpers/mod.rs b/crates/swc_ecma_transforms_base/src/helpers/mod.rs index 2bcb179a812a..f2b60183f74e 100644 --- a/crates/swc_ecma_transforms_base/src/helpers/mod.rs +++ b/crates/swc_ecma_transforms_base/src/helpers/mod.rs @@ -70,15 +70,17 @@ macro_rules! add_import_to { ($buf:expr, $name:ident, $b:expr, $mark:expr) => {{ let enable = $b.load(Ordering::Relaxed); if enable { - let s = ImportSpecifier::Default(ImportDefaultSpecifier { + let s = ImportSpecifier::Named(ImportNamedSpecifier { span: DUMMY_SP, local: Ident::new( concat!("_", stringify!($name)).into(), DUMMY_SP.apply_mark($mark), ), + imported: Some(quote_ident!("_").into()), + is_type_only: false, }); - let src: Str = concat!("@swc/helpers/src/_", stringify!($name), ".mjs").into(); + let src: Str = concat!("@swc/helpers/_/_", stringify!($name)).into(); $buf.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { span: DUMMY_SP, @@ -128,7 +130,7 @@ impl Helpers { struct HelperMark(Mark); impl Default for HelperMark { fn default() -> Self { - HelperMark(Mark::fresh(Mark::root())) + HelperMark(Mark::new()) } } @@ -382,18 +384,23 @@ define_helpers!(Helpers { }); pub fn inject_helpers(global_mark: Mark) -> impl Fold + VisitMut { - as_folder(InjectHelpers { global_mark }) + as_folder(InjectHelpers { + global_mark, + helper_ctxt: None, + }) } struct InjectHelpers { global_mark: Mark, + helper_ctxt: Option, } impl InjectHelpers { - fn make_helpers_for_module(&self) -> Vec { - let (_, external) = HELPERS.with(|helper| (helper.mark(), helper.external())); + fn make_helpers_for_module(&mut self) -> Vec { + let (helper_mark, external) = HELPERS.with(|helper| (helper.mark(), helper.external())); if external { if self.is_helper_used() { + self.helper_ctxt = Some(SyntaxContext::empty().apply_mark(helper_mark)); self.build_imports() } else { vec![] @@ -406,14 +413,15 @@ impl InjectHelpers { } } - fn make_helpers_for_script(&self) -> Vec { - let external = HELPERS.with(|helper| helper.external()); + fn make_helpers_for_script(&mut self) -> Vec { + let (helper_mark, external) = HELPERS.with(|helper| (helper.mark(), helper.external())); if external { if self.is_helper_used() { + self.helper_ctxt = Some(SyntaxContext::empty().apply_mark(helper_mark)); self.build_requires() } else { - vec![] + Default::default() } } else { self.build_helpers() @@ -431,7 +439,7 @@ impl InjectHelpers { .as_callee(), args: vec![Str { span: DUMMY_SP, - value: format!("@swc/helpers/lib/_{}.js", name).into(), + value: format!("@swc/helpers/_/_{}", name).into(), raw: None, } .as_arg()], @@ -447,14 +455,7 @@ impl InjectHelpers { name: Pat::Ident( Ident::new(format!("_{}", name).into(), DUMMY_SP.apply_mark(mark)).into(), ), - init: Some( - MemberExpr { - span: DUMMY_SP, - obj: c.into(), - prop: quote_ident!("default").into(), - } - .into(), - ), + init: Some(c.into()), definite: false, }], } @@ -462,6 +463,21 @@ impl InjectHelpers { ); Stmt::Decl(decl) } + + fn map_helper_ref_ident(&mut self, ref_ident: &Ident) -> Option { + self.helper_ctxt + .filter(|ctxt| ctxt == &ref_ident.span.ctxt) + .map(|_| { + let ident = ref_ident.clone().without_loc(); + + MemberExpr { + span: ref_ident.span, + obj: Box::new(ident.into()), + prop: quote_ident!("_").into(), + } + .into() + }) + } } impl VisitMut for InjectHelpers { @@ -475,8 +491,25 @@ impl VisitMut for InjectHelpers { fn visit_mut_script(&mut self, script: &mut Script) { let helpers = self.make_helpers_for_script(); + let helpers_is_empty = helpers.is_empty(); prepend_stmts(&mut script.body, helpers.into_iter()); + + if !helpers_is_empty { + script.visit_mut_children_with(self); + } + } + + fn visit_mut_expr(&mut self, n: &mut Expr) { + match n { + Expr::Ident(ref_ident) => { + if let Some(expr) = self.map_helper_ref_ident(ref_ident) { + *n = expr; + } + } + + _ => n.visit_mut_children_with(self), + }; } } @@ -582,16 +615,14 @@ mod tests { }), "output.js", Default::default(), - "import _throw from \"@swc/helpers/src/_throw.mjs\"; + "import { _ as _throw } from \"@swc/helpers/_/_throw\"; _throw();", )?; enable_helper!(throw); eprintln!("----- Actual -----"); - let tr = as_folder(InjectHelpers { - global_mark: Mark::fresh(Mark::root()), - }); + let tr = as_folder(inject_helpers(Mark::new())); let actual = tester .apply_transform(tr, "input.js", Default::default(), input)? .fold_with(&mut crate::hygiene::hygiene()) @@ -624,9 +655,7 @@ _throw();", Default::default(), |_| { enable_helper!(throw); - as_folder(InjectHelpers { - global_mark: Mark::fresh(Mark::root()), - }) + as_folder(inject_helpers(Mark::new())) }, "'use strict'", "'use strict' @@ -645,9 +674,7 @@ function _throw(e) { Default::default(), |_| { enable_helper!(throw); - as_folder(InjectHelpers { - global_mark: Mark::fresh(Mark::root()), - }) + as_folder(inject_helpers(Mark::new())) }, "let _throw = null", "function _throw(e) { diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs index b478a2236caf..9d2681ecd9d8 100644 --- a/crates/swc_ecma_transforms_module/src/amd.rs +++ b/crates/swc_ecma_transforms_module/src/amd.rs @@ -190,12 +190,11 @@ where stmts.visit_mut_children_with(self); } - stmts.visit_mut_children_with(&mut ModuleRefRewriter { + stmts.visit_mut_children_with(&mut ModuleRefRewriter::new( import_map, - lazy_record: Default::default(), - allow_top_level_this: self.config.allow_top_level_this, - is_global_this: true, - }); + Default::default(), + self.config.allow_top_level_this, + )); // ==================== // Emit @@ -342,12 +341,9 @@ where link.into_iter().for_each( |(src, LinkItem(src_span, link_specifier_set, mut link_flag))| { - let is_swc_default_helper = - !link_flag.has_named() && src.starts_with("@swc/helpers/"); - let is_node_default = !link_flag.has_named() && import_interop.is_node(); - if import_interop.is_none() || is_swc_default_helper { + if import_interop.is_none() { link_flag -= LinkFlag::NAMESPACE; } @@ -370,19 +366,9 @@ where &new_var_ident, &Some(mod_ident.clone()), &mut false, - is_swc_default_helper || is_node_default, + is_node_default, ); - if is_swc_default_helper { - stmts.push( - mod_ident - .clone() - .make_member(quote_ident!("default")) - .make_assign_to(op!("="), mod_ident.clone().as_pat_or_expr()) - .into_stmt(), - ) - } - // _export_star(mod, exports); let mut import_expr: Expr = if need_re_export { helper_expr!(export_star, "export_star").as_call( diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs index c096f3d5d56b..01cea9797bc8 100644 --- a/crates/swc_ecma_transforms_module/src/common_js.rs +++ b/crates/swc_ecma_transforms_module/src/common_js.rs @@ -6,7 +6,7 @@ use swc_common::{ use swc_ecma_ast::*; use swc_ecma_transforms_base::{feature::FeatureFlag, helper_expr}; use swc_ecma_utils::{ - member_expr, private_ident, quote_ident, ExprFactory, FunctionFactory, IsDirective, + member_expr, private_ident, quote_expr, quote_ident, ExprFactory, FunctionFactory, IsDirective, }; use swc_ecma_visit::{as_folder, noop_visit_mut_type, Fold, VisitMut, VisitMutWith}; @@ -172,12 +172,11 @@ where stmts.visit_mut_children_with(self); } - stmts.visit_mut_children_with(&mut ModuleRefRewriter { - import_map: module_map, + stmts.visit_mut_children_with(&mut ModuleRefRewriter::new( + module_map, lazy_record, - allow_top_level_this: self.config.allow_top_level_this, - is_global_this: true, - }); + self.config.allow_top_level_this, + )); *n = stmts; } @@ -268,25 +267,9 @@ where link.into_iter().for_each( |(src, LinkItem(src_span, link_specifier_set, mut link_flag))| { - // Optimize for `@swc/helpers`: - // if there is no named import/export - // avoid to generate - // ``` - // var foo = require("@swc/helpers/foo"); - // (0, foo.default)(bar); - // ``` - // instead, we prefer - // ``` - // var foo = require("@swc/helpers/foo").default; - // foo(bar); - // ``` - - let is_swc_default_helper = - !link_flag.has_named() && src.starts_with("@swc/helpers/"); - let is_node_default = !link_flag.has_named() && is_node; - if import_interop.is_none() || is_swc_default_helper { + if import_interop.is_none() { link_flag -= LinkFlag::NAMESPACE; } @@ -300,7 +283,7 @@ where &mod_ident, &None, &mut decl_mod_ident, - is_swc_default_helper || is_node_default, + is_node_default, ); let is_lazy = @@ -315,12 +298,6 @@ where self.resolver .make_require_call(self.unresolved_mark, src, src_span); - let import_expr = if is_swc_default_helper { - import_expr.make_member(quote_ident!("default")) - } else { - import_expr - }; - // _export_star(require("mod"), exports); let import_expr = if link_flag.export_star() { helper_expr!(export_star, "export_star").as_call( @@ -500,7 +477,8 @@ where .map(|key| KeyValueProp { key: key.into(), // `cjs-module-lexer` only support identifier as value - value: quote_ident!("_").into(), + // `null` is treated as identifier in `cjs-module-lexer` + value: quote_expr!(DUMMY_SP, null).into(), }) .map(Prop::KeyValue) .map(Box::new) diff --git a/crates/swc_ecma_transforms_module/src/module_ref_rewriter.rs b/crates/swc_ecma_transforms_module/src/module_ref_rewriter.rs index 526c014552e2..444cafe0d152 100644 --- a/crates/swc_ecma_transforms_module/src/module_ref_rewriter.rs +++ b/crates/swc_ecma_transforms_module/src/module_ref_rewriter.rs @@ -2,9 +2,10 @@ use swc_atoms::JsWord; use swc_common::{ collections::{AHashMap, AHashSet}, util::take::Take, - DUMMY_SP, + SyntaxContext, DUMMY_SP, }; use swc_ecma_ast::*; +use swc_ecma_transforms_base::helpers::HELPERS; use swc_ecma_utils::{undefined, ExprFactory, IntoIndirectCall}; use swc_ecma_visit::{noop_visit_mut_type, VisitMut, VisitMutWith}; @@ -37,7 +38,29 @@ pub(crate) struct ModuleRefRewriter { pub allow_top_level_this: bool, - pub is_global_this: bool, + is_global_this: bool, + helper_ctxt: Option, +} + +impl ModuleRefRewriter { + pub fn new( + import_map: ImportMap, + lazy_record: AHashSet, + allow_top_level_this: bool, + ) -> Self { + Self { + import_map, + lazy_record, + allow_top_level_this, + is_global_this: true, + helper_ctxt: { + HELPERS + .is_set() + .then(|| HELPERS.with(|helper| helper.mark())) + .map(|mark| SyntaxContext::empty().apply_mark(mark)) + }, + } + } } impl VisitMut for ModuleRefRewriter { @@ -83,6 +106,7 @@ impl VisitMut for ModuleRefRewriter { Callee::Expr(e) if e.is_ident() => { let is_indirect_callee = e .as_ident() + .filter(|ident| self.helper_ctxt.iter().all(|ctxt| ctxt != &ident.span.ctxt)) .and_then(|ident| self.import_map.get(&ident.to_id())) .map(|(_, prop)| prop.is_some()) .unwrap_or_default(); @@ -102,6 +126,7 @@ impl VisitMut for ModuleRefRewriter { let is_indirect = n .tag .as_ident() + .filter(|ident| self.helper_ctxt.iter().all(|ctxt| ctxt != &ident.span.ctxt)) .and_then(|ident| self.import_map.get(&ident.to_id())) .map(|(_, prop)| prop.is_some()) .unwrap_or_default(); diff --git a/crates/swc_ecma_transforms_module/src/path.rs b/crates/swc_ecma_transforms_module/src/path.rs index 3a2c2a07d16a..7d8964d18e80 100644 --- a/crates/swc_ecma_transforms_module/src/path.rs +++ b/crates/swc_ecma_transforms_module/src/path.rs @@ -43,16 +43,6 @@ impl Resolver { ) -> Expr { let src = self.resolve(src); - if let Some(suffix) = src.strip_prefix("@swc/helpers/src/") { - if let Some(prefix) = suffix.strip_suffix(".mjs") { - return self.make_require_call( - unresolved_mark, - format!("@swc/helpers/lib/{}.js", prefix).into(), - src_span, - ); - } - } - Expr::Call(CallExpr { span: DUMMY_SP, callee: quote_ident!(DUMMY_SP.apply_mark(unresolved_mark), "require").as_callee(), diff --git a/crates/swc_ecma_transforms_module/src/umd.rs b/crates/swc_ecma_transforms_module/src/umd.rs index 82adbb5c3c4c..d3f7f602bfb1 100644 --- a/crates/swc_ecma_transforms_module/src/umd.rs +++ b/crates/swc_ecma_transforms_module/src/umd.rs @@ -163,12 +163,11 @@ where stmts.push(return_stmt.into()) } - stmts.visit_mut_children_with(&mut ModuleRefRewriter { + stmts.visit_mut_children_with(&mut ModuleRefRewriter::new( import_map, - lazy_record: Default::default(), - allow_top_level_this: self.config.config.allow_top_level_this, - is_global_this: true, - }); + Default::default(), + self.config.config.allow_top_level_this, + )); // ==================== // Emit @@ -223,12 +222,9 @@ where link.into_iter().for_each( |(src, LinkItem(src_span, link_specifier_set, mut link_flag))| { - let is_swc_default_helper = - !link_flag.has_named() && src.starts_with("@swc/helpers/"); - let is_node_default = !link_flag.has_named() && import_interop.is_node(); - if import_interop.is_none() || is_swc_default_helper { + if import_interop.is_none() { link_flag -= LinkFlag::NAMESPACE; } @@ -251,19 +247,9 @@ where &new_var_ident, &Some(mod_ident.clone()), &mut false, - is_swc_default_helper || is_node_default, + is_node_default, ); - if is_swc_default_helper { - stmts.push( - mod_ident - .clone() - .make_member(quote_ident!("default")) - .make_assign_to(op!("="), mod_ident.clone().as_pat_or_expr()) - .into_stmt(), - ) - } - // _export_star(mod, exports); let mut import_expr: Expr = if need_re_export { helper_expr!(export_star, "export_star").as_call( diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs index 4ca29e282f89..8b739bd4b4ef 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - default: _, - Cachier: _ + default: null, + Cachier: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs index 7b226cf6fbbc..1b448e4d3dac 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs @@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - x: _, - y: _, - f1: _, - f2: _, - f3: _, - f4: _ + x: null, + y: null, + f1: null, + f2: null, + f3: null, + f4: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs index 86eee6eee6f8..6be2307da3a3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - bar: _, - foo: _ + bar: null, + foo: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs index 5602f39fa0a7..a8eb20efe506 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - bar: _, - default: _ + bar: null, + default: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs index 71a9453a31a6..830defd6960b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs @@ -3,107 +3,107 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - foo: _, - foo1: _, - foo10: _, - foo100: _, - foo11: _, - foo12: _, - foo13: _, - foo14: _, - foo15: _, - foo16: _, - foo17: _, - foo18: _, - foo19: _, - foo2: _, - foo20: _, - foo21: _, - foo22: _, - foo23: _, - foo24: _, - foo25: _, - foo26: _, - foo27: _, - foo28: _, - foo29: _, - foo3: _, - foo30: _, - foo31: _, - foo32: _, - foo33: _, - foo34: _, - foo35: _, - foo36: _, - foo37: _, - foo38: _, - foo39: _, - foo4: _, - foo40: _, - foo41: _, - foo42: _, - foo43: _, - foo44: _, - foo45: _, - foo46: _, - foo47: _, - foo48: _, - foo49: _, - foo5: _, - foo50: _, - foo51: _, - foo52: _, - foo53: _, - foo54: _, - foo55: _, - foo56: _, - foo57: _, - foo58: _, - foo59: _, - foo6: _, - foo60: _, - foo61: _, - foo62: _, - foo63: _, - foo64: _, - foo65: _, - foo66: _, - foo67: _, - foo68: _, - foo69: _, - foo7: _, - foo70: _, - foo71: _, - foo72: _, - foo73: _, - foo74: _, - foo75: _, - foo76: _, - foo77: _, - foo78: _, - foo79: _, - foo8: _, - foo80: _, - foo81: _, - foo82: _, - foo83: _, - foo84: _, - foo85: _, - foo86: _, - foo87: _, - foo88: _, - foo89: _, - foo9: _, - foo90: _, - foo91: _, - foo92: _, - foo93: _, - foo94: _, - foo95: _, - foo96: _, - foo97: _, - foo98: _, - foo99: _ + foo: null, + foo1: null, + foo10: null, + foo100: null, + foo11: null, + foo12: null, + foo13: null, + foo14: null, + foo15: null, + foo16: null, + foo17: null, + foo18: null, + foo19: null, + foo2: null, + foo20: null, + foo21: null, + foo22: null, + foo23: null, + foo24: null, + foo25: null, + foo26: null, + foo27: null, + foo28: null, + foo29: null, + foo3: null, + foo30: null, + foo31: null, + foo32: null, + foo33: null, + foo34: null, + foo35: null, + foo36: null, + foo37: null, + foo38: null, + foo39: null, + foo4: null, + foo40: null, + foo41: null, + foo42: null, + foo43: null, + foo44: null, + foo45: null, + foo46: null, + foo47: null, + foo48: null, + foo49: null, + foo5: null, + foo50: null, + foo51: null, + foo52: null, + foo53: null, + foo54: null, + foo55: null, + foo56: null, + foo57: null, + foo58: null, + foo59: null, + foo6: null, + foo60: null, + foo61: null, + foo62: null, + foo63: null, + foo64: null, + foo65: null, + foo66: null, + foo67: null, + foo68: null, + foo69: null, + foo7: null, + foo70: null, + foo71: null, + foo72: null, + foo73: null, + foo74: null, + foo75: null, + foo76: null, + foo77: null, + foo78: null, + foo79: null, + foo8: null, + foo80: null, + foo81: null, + foo82: null, + foo83: null, + foo84: null, + foo85: null, + foo86: null, + foo87: null, + foo88: null, + foo89: null, + foo9: null, + foo90: null, + foo91: null, + foo92: null, + foo93: null, + foo94: null, + foo95: null, + foo96: null, + foo97: null, + foo98: null, + foo99: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs index 886de54f8a27..4e09b99498a7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - bar: _, - foo: _ + bar: null, + foo: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs index 3b91939cae22..4cc52ea9bf15 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - bar: _, - default: _ + bar: null, + default: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs index fcc5314e510c..c7d19ce152fe 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs @@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - foo: _, - foo2: _, - bar: _, - foo3: _, - foo4: _, - foo5: _, - foo6: _, - foo7: _, - foo8: _, - foo9: _ + foo: null, + foo2: null, + bar: null, + foo3: null, + foo4: null, + foo5: null, + foo6: null, + foo7: null, + foo8: null, + foo9: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs index a5f623ced0b6..5cd45fa55a47 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - nextOdd: _, - isOdd: _ + nextOdd: null, + isOdd: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs index 33132886cfdf..878c39f2bb09 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - test: _, - test2: _ + test: null, + test2: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs index 120b397f4b9f..372b7e521230 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { - test: _, - a: _, - c: _, - e: _, - f: _ + test: null, + a: null, + c: null, + e: null, + f: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts index c7db27232559..7679ae694610 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts @@ -14,7 +14,7 @@ define([ }); } _export(exports, { - "$": ()=>_jquery, + $: ()=>_jquery, jquery: ()=>_jquery }); _jquery(".hello"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts index 07b49fd3c7ab..963f3150efe0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); Object.defineProperty(exports, "jquery", { enumerable: true, - get: ()=>exports["$"] + get: ()=>exports.$ }); -exports["$"] = require("jquery"); -(0, exports["$"])(".hello"); +exports.$ = require("jquery"); +(0, exports.$)(".hello"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts index 4dd95f6cb4b0..c640d686d5c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts @@ -17,7 +17,7 @@ }); } _export(exports, { - "$": ()=>_jquery, + $: ()=>_jquery, jquery: ()=>_jquery }); _jquery(".hello"); diff --git a/crates/swc_ecma_utils/src/lib.rs b/crates/swc_ecma_utils/src/lib.rs index 56ee46b401d7..938755a14ff8 100644 --- a/crates/swc_ecma_utils/src/lib.rs +++ b/crates/swc_ecma_utils/src/lib.rs @@ -27,7 +27,6 @@ use swc_ecma_visit::{ Visit, VisitMut, VisitMutWith, VisitWith, }; use tracing::trace; -use unicode_id::UnicodeID; #[allow(deprecated)] pub use self::{ @@ -2344,7 +2343,7 @@ pub fn is_valid_ident(s: &JsWord) -> bool { } pub fn is_valid_prop_ident(s: &str) -> bool { - s.starts_with(|c: char| c.is_id_start()) && s.chars().all(|c: char| c.is_id_continue()) + s.starts_with(Ident::is_valid_start) && s.chars().all(Ident::is_valid_continue) } pub fn drop_span(mut t: T) -> T diff --git a/node-swc/__tests__/module_test.js b/node-swc/__tests__/module_test.js index d0a1c6349d0a..00fec97c310c 100644 --- a/node-swc/__tests__/module_test.js +++ b/node-swc/__tests__/module_test.js @@ -44,6 +44,6 @@ it("should work with amd and external helpers", () => { expect(out.map).toBeFalsy(); expect(out.code).toContain(`define("a",`); - expect(out.code).toContain(`_class_call_check(this, Foo);`); - expect(out.code).toContain(`_inherits(Bar, Foo);`); + expect(out.code).toContain(`_class_call_check._(this, Foo);`); + expect(out.code).toContain(`_inherits._(Bar, Foo);`); }); diff --git a/node-swc/__tests__/transform/issue_4730_test.mjs b/node-swc/__tests__/transform/issue_4730_test.mjs index 24bedad60f5f..dbe62c0cd48a 100644 --- a/node-swc/__tests__/transform/issue_4730_test.mjs +++ b/node-swc/__tests__/transform/issue_4730_test.mjs @@ -36,10 +36,10 @@ it("should work", async () => { Object.defineProperty(exports, \\"__esModule\\", { value: true }); - const _interop_require_wildcard = require(\\"@swc/helpers/lib/_interop_require_wildcard.js\\").default; + const _interop_require_wildcard = require(\\"@swc/helpers/_/_interop_require_wildcard\\"); const _b = require(\\"../packages/b/src/index\\"); async function display() { - const displayA = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(\\"../packages/a/src/index\\"))).then((c)=>c.displayA); + const displayA = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard._(require(\\"../packages/a/src/index\\"))).then((c)=>c.displayA); console.log(displayA()); console.log((0, _b.displayB)()); } diff --git a/packages/swc-helpers/.dprint.json b/packages/swc-helpers/.dprint.json new file mode 100644 index 000000000000..83201b568636 --- /dev/null +++ b/packages/swc-helpers/.dprint.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://plugins.dprint.dev/dprint/dprint-plugin-typescript/latest/schema.json", + "typescript": { + "indentWidth": 4, + "lineWidth": 200, + "useBraces": "preferNone", + "ifStatement.useBraces": "whenNotSingleLine", + "singleBodyPosition": "sameLine", + "trailingCommas": "never", + "preferSingleLine": true, + "binaryExpression.linePerExpression": true, + "memberExpression.linePerExpression": true + }, + "json": { + "indentWidth": 4 + }, + "includes": [ + "{esm,cjs}/*.{js,cjs}", + "**/*.json" + ], + "excludes": [ + "**/node_modules", + "**/*-lock.json" + ], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.84.0.wasm", + "https://plugins.dprint.dev/json-0.17.1.wasm" + ] +} diff --git a/packages/swc-helpers/.gitignore b/packages/swc-helpers/.gitignore index 0bb69abedc7b..d8698aa7282c 100644 --- a/packages/swc-helpers/.gitignore +++ b/packages/swc-helpers/.gitignore @@ -1,2 +1,6 @@ lib/ -yarn.lock \ No newline at end of file +yarn.lock +node_modules +_/ +cjs/ +*.tgz diff --git a/packages/swc-helpers/.npmignore b/packages/swc-helpers/.npmignore index dc395ba6f595..60fb00601fbd 100644 --- a/packages/swc-helpers/.npmignore +++ b/packages/swc-helpers/.npmignore @@ -2,4 +2,6 @@ node_modules/ package-lock.json *.log .swcrc -.yarn \ No newline at end of file +.yarn +*.tgz +.dprint.json diff --git a/packages/swc-helpers/src/_apply_decorated_descriptor.mjs b/packages/swc-helpers/esm/_apply_decorated_descriptor.js similarity index 81% rename from packages/swc-helpers/src/_apply_decorated_descriptor.mjs rename to packages/swc-helpers/esm/_apply_decorated_descriptor.js index 55127f86f615..d5ea15a1c6ea 100644 --- a/packages/swc-helpers/src/_apply_decorated_descriptor.mjs +++ b/packages/swc-helpers/esm/_apply_decorated_descriptor.js @@ -1,17 +1,19 @@ -export default function _apply_decorated_descriptor(target, property, decorators, descriptor, context) { +export function _apply_decorated_descriptor(target, property, decorators, descriptor, context) { var desc = {}; + Object["ke" + "ys"](descriptor).forEach(function(key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; - if ("value" in desc || desc.initializer) { - desc.writable = true; - } + + if ("value" in desc || desc.initializer) desc.writable = true; desc = decorators.slice().reverse().reduce(function(desc, decorator) { return decorator ? decorator(target, property, desc) || desc : desc; }, desc); + var hasAccessor = Object.prototype.hasOwnProperty.call(desc, "get") || Object.prototype.hasOwnProperty.call(desc, "set"); + if (context && desc.initializer !== void 0 && !hasAccessor) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; @@ -25,5 +27,7 @@ export default function _apply_decorated_descriptor(target, property, decorators Object["define" + "Property"](target, property, desc); desc = null; } + return desc; } +export { _apply_decorated_descriptor as _ }; diff --git a/packages/swc-helpers/src/_array_like_to_array.mjs b/packages/swc-helpers/esm/_array_like_to_array.js similarity index 63% rename from packages/swc-helpers/src/_array_like_to_array.mjs rename to packages/swc-helpers/esm/_array_like_to_array.js index 31bd616c8532..7e9fa8c4f48c 100644 --- a/packages/swc-helpers/src/_array_like_to_array.mjs +++ b/packages/swc-helpers/esm/_array_like_to_array.js @@ -1,5 +1,8 @@ -export default function _array_like_to_array(arr, len) { +export function _array_like_to_array(arr, len) { if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; } +export { _array_like_to_array as _ }; diff --git a/packages/swc-helpers/esm/_array_with_holes.js b/packages/swc-helpers/esm/_array_with_holes.js new file mode 100644 index 000000000000..8f5c0f00123f --- /dev/null +++ b/packages/swc-helpers/esm/_array_with_holes.js @@ -0,0 +1,4 @@ +export function _array_with_holes(arr) { + if (Array.isArray(arr)) return arr; +} +export { _array_with_holes as _ }; diff --git a/packages/swc-helpers/esm/_array_without_holes.js b/packages/swc-helpers/esm/_array_without_holes.js new file mode 100644 index 000000000000..735c479ad137 --- /dev/null +++ b/packages/swc-helpers/esm/_array_without_holes.js @@ -0,0 +1,6 @@ +import { _array_like_to_array } from "./_array_like_to_array.js"; + +export function _array_without_holes(arr) { + if (Array.isArray(arr)) return _array_like_to_array(arr); +} +export { _array_without_holes as _ }; diff --git a/packages/swc-helpers/esm/_assert_this_initialized.js b/packages/swc-helpers/esm/_assert_this_initialized.js new file mode 100644 index 000000000000..121750bf46c6 --- /dev/null +++ b/packages/swc-helpers/esm/_assert_this_initialized.js @@ -0,0 +1,6 @@ +export function _assert_this_initialized(self) { + if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + + return self; +} +export { _assert_this_initialized as _ }; diff --git a/packages/swc-helpers/src/_async_generator.mjs b/packages/swc-helpers/esm/_async_generator.js similarity index 82% rename from packages/swc-helpers/src/_async_generator.mjs rename to packages/swc-helpers/esm/_async_generator.js index d22f8ec55fad..a03e60ab9d2f 100644 --- a/packages/swc-helpers/src/_async_generator.mjs +++ b/packages/swc-helpers/esm/_async_generator.js @@ -1,17 +1,19 @@ -import _await_value from "./_await_value.mjs"; -export default function _async_generator(gen) { +import { _await_value } from "./_await_value.js"; + +export function _async_generator(gen) { var front, back; + function send(key, arg) { return new Promise(function(resolve, reject) { var request = { key: key, arg: arg, resolve: resolve, reject: reject, next: null }; - if (back) { - back = back.next = request; - } else { + if (back) back = back.next = request; + else { front = back = request; resume(key, arg); } }); } + function resume(key, arg) { try { var result = gen[key](arg); @@ -20,6 +22,7 @@ export default function _async_generator(gen) { Promise.resolve(wrappedAwait ? value.wrapped : value).then(function(arg) { if (wrappedAwait) { resume("next", arg); + return; } settle(result.done ? "return" : "normal", arg); @@ -30,6 +33,7 @@ export default function _async_generator(gen) { settle("throw", err); } } + function settle(type, value) { switch (type) { case "return": @@ -43,28 +47,30 @@ export default function _async_generator(gen) { break; } front = front.next; - if (front) { - resume(front.key, front.arg); - } else { - back = null; - } + if (front) resume(front.key, front.arg); + else back = null; } + this._invoke = send; - if (typeof gen.return !== "function") { - this.return = undefined; - } + + if (typeof gen.return !== "function") this.return = undefined; } + if (typeof Symbol === "function" && Symbol.asyncIterator) { _async_generator.prototype[Symbol.asyncIterator] = function() { return this; }; } + _async_generator.prototype.next = function(arg) { return this._invoke("next", arg); }; + _async_generator.prototype.throw = function(arg) { return this._invoke("throw", arg); }; + _async_generator.prototype.return = function(arg) { return this._invoke("return", arg); }; +export { _async_generator as _ }; diff --git a/packages/swc-helpers/src/_async_generator_delegate.mjs b/packages/swc-helpers/esm/_async_generator_delegate.js similarity index 89% rename from packages/swc-helpers/src/_async_generator_delegate.mjs rename to packages/swc-helpers/esm/_async_generator_delegate.js index 3085bbaa54ba..eb7faaa05725 100644 --- a/packages/swc-helpers/src/_async_generator_delegate.mjs +++ b/packages/swc-helpers/esm/_async_generator_delegate.js @@ -1,30 +1,38 @@ -export default function _async_generator_delegate(inner, awaitWrap) { +export function _async_generator_delegate(inner, awaitWrap) { var iter = {}, waiting = false; + function pump(key, value) { waiting = true; value = new Promise(function(resolve) { resolve(inner[key](value)); }); + return { done: false, value: awaitWrap(value) }; } + if (typeof Symbol === "function" && Symbol.iterator) { iter[Symbol.iterator] = function() { return this; }; } + iter.next = function(value) { if (waiting) { waiting = false; + return value; } + return pump("next", value); }; + if (typeof inner.throw === "function") { iter.throw = function(value) { if (waiting) { waiting = false; throw value; } + return pump("throw", value); }; } @@ -33,5 +41,7 @@ export default function _async_generator_delegate(inner, awaitWrap) { return pump("return", value); }; } + return iter; } +export { _async_generator_delegate as _ }; diff --git a/packages/swc-helpers/src/_async_iterator.mjs b/packages/swc-helpers/esm/_async_iterator.js similarity index 87% rename from packages/swc-helpers/src/_async_iterator.mjs rename to packages/swc-helpers/esm/_async_iterator.js index 8369e175118b..b1e1a3082931 100644 --- a/packages/swc-helpers/src/_async_iterator.mjs +++ b/packages/swc-helpers/esm/_async_iterator.js @@ -1,4 +1,4 @@ -export default function _async_iterator(iterable) { +export function _async_iterator(iterable) { var method, async, sync, retry = 2; for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { if (async && null != (method = iterable[async])) return method.call(iterable); @@ -10,30 +10,35 @@ export default function _async_iterator(iterable) { function AsyncFromSyncIterator(s) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var done = r.done; + return Promise.resolve(r.value).then(function(value) { return { value: value, done: done }; }); } + return AsyncFromSyncIterator = function(s) { this.s = s, this.n = s.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, + next: function() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function(value) { var ret = this.s.return; - return void 0 === ret - ? Promise.resolve({ value: value, done: !0 }) - : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); + + return void 0 === ret ? Promise.resolve({ value: value, done: !0 }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); }, throw: function(value) { var thr = this.s.return; + return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(s); } +export { _async_iterator as _ }; diff --git a/packages/swc-helpers/src/_async_to_generator.mjs b/packages/swc-helpers/esm/_async_to_generator.js similarity index 80% rename from packages/swc-helpers/src/_async_to_generator.mjs rename to packages/swc-helpers/esm/_async_to_generator.js index bd2924044335..12b739d72c28 100644 --- a/packages/swc-helpers/src/_async_to_generator.mjs +++ b/packages/swc-helpers/esm/_async_to_generator.js @@ -6,24 +6,26 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { reject(error); return; } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } + if (info.done) resolve(value); + else Promise.resolve(value).then(_next, _throw); } -export default function _async_to_generator(fn) { +export function _async_to_generator(fn) { return function() { var self = this, args = arguments; + return new Promise(function(resolve, reject) { var gen = fn.apply(self, args); + function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } + function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } + _next(undefined); }); }; } +export { _async_to_generator as _ }; diff --git a/packages/swc-helpers/esm/_await_async_generator.js b/packages/swc-helpers/esm/_await_async_generator.js new file mode 100644 index 000000000000..e4396decbd10 --- /dev/null +++ b/packages/swc-helpers/esm/_await_async_generator.js @@ -0,0 +1,6 @@ +import { _await_value } from "./_await_value.js"; + +export function _await_async_generator(value) { + return new _await_value(value); +} +export { _await_async_generator as _ }; diff --git a/packages/swc-helpers/esm/_await_value.js b/packages/swc-helpers/esm/_await_value.js new file mode 100644 index 000000000000..3df324004c6c --- /dev/null +++ b/packages/swc-helpers/esm/_await_value.js @@ -0,0 +1,4 @@ +export function _await_value(value) { + this.wrapped = value; +} +export { _await_value as _ }; diff --git a/packages/swc-helpers/src/_check_private_redeclaration.mjs b/packages/swc-helpers/esm/_check_private_redeclaration.js similarity index 54% rename from packages/swc-helpers/src/_check_private_redeclaration.mjs rename to packages/swc-helpers/esm/_check_private_redeclaration.js index c7bbdb96de5c..9ff1b8f4886a 100644 --- a/packages/swc-helpers/src/_check_private_redeclaration.mjs +++ b/packages/swc-helpers/esm/_check_private_redeclaration.js @@ -1,5 +1,6 @@ -export default function _check_private_redeclaration(obj, privateCollection) { +export function _check_private_redeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } +export { _check_private_redeclaration as _ }; diff --git a/packages/swc-helpers/src/_class_apply_descriptor_destructure.mjs b/packages/swc-helpers/esm/_class_apply_descriptor_destructure.js similarity index 82% rename from packages/swc-helpers/src/_class_apply_descriptor_destructure.mjs rename to packages/swc-helpers/esm/_class_apply_descriptor_destructure.js index f9cae0aed302..a5db31f499ca 100644 --- a/packages/swc-helpers/src/_class_apply_descriptor_destructure.mjs +++ b/packages/swc-helpers/esm/_class_apply_descriptor_destructure.js @@ -1,4 +1,4 @@ -export default function _class_apply_descriptor_destructure(receiver, descriptor) { +export function _class_apply_descriptor_destructure(receiver, descriptor) { if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { @@ -7,6 +7,7 @@ export default function _class_apply_descriptor_destructure(receiver, descriptor } }; } + return descriptor.__destrObj; } else { if (!descriptor.writable) { @@ -15,6 +16,8 @@ export default function _class_apply_descriptor_destructure(receiver, descriptor // class bodies. throw new TypeError("attempted to set read only private field"); } + return descriptor; } } +export { _class_apply_descriptor_destructure as _ }; diff --git a/packages/swc-helpers/esm/_class_apply_descriptor_get.js b/packages/swc-helpers/esm/_class_apply_descriptor_get.js new file mode 100644 index 000000000000..dd3cb017e398 --- /dev/null +++ b/packages/swc-helpers/esm/_class_apply_descriptor_get.js @@ -0,0 +1,6 @@ +export function _class_apply_descriptor_get(receiver, descriptor) { + if (descriptor.get) return descriptor.get.call(receiver); + + return descriptor.value; +} +export { _class_apply_descriptor_get as _ }; diff --git a/packages/swc-helpers/src/_class_apply_descriptor_set.mjs b/packages/swc-helpers/esm/_class_apply_descriptor_set.js similarity index 63% rename from packages/swc-helpers/src/_class_apply_descriptor_set.mjs rename to packages/swc-helpers/esm/_class_apply_descriptor_set.js index c538f60f9cb3..ad064254dabf 100644 --- a/packages/swc-helpers/src/_class_apply_descriptor_set.mjs +++ b/packages/swc-helpers/esm/_class_apply_descriptor_set.js @@ -1,7 +1,6 @@ -export default function _class_apply_descriptor_set(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { +export function _class_apply_descriptor_set(receiver, descriptor, value) { + if (descriptor.set) descriptor.set.call(receiver, value); + else { if (!descriptor.writable) { // This should only throw in strict mode, but class bodies are // always strict and private fields can only be used inside @@ -11,3 +10,4 @@ export default function _class_apply_descriptor_set(receiver, descriptor, value) descriptor.value = value; } } +export { _class_apply_descriptor_set as _ }; diff --git a/packages/swc-helpers/src/_class_apply_descriptor_update.mjs b/packages/swc-helpers/esm/_class_apply_descriptor_update.js similarity index 77% rename from packages/swc-helpers/src/_class_apply_descriptor_update.mjs rename to packages/swc-helpers/esm/_class_apply_descriptor_update.js index d2948ca495fd..82fcee508138 100644 --- a/packages/swc-helpers/src/_class_apply_descriptor_update.mjs +++ b/packages/swc-helpers/esm/_class_apply_descriptor_update.js @@ -1,8 +1,7 @@ -export default function _class_apply_descriptor_update(receiver, descriptor) { +export function _class_apply_descriptor_update(receiver, descriptor) { if (descriptor.set) { - if (!descriptor.get) { - throw new TypeError("attempted to read set only private field"); - } + if (!descriptor.get) throw new TypeError("attempted to read set only private field"); + if (!("__destrWrapper" in descriptor)) { descriptor.__destrWrapper = { set value(v) { @@ -13,6 +12,7 @@ export default function _class_apply_descriptor_update(receiver, descriptor) { } }; } + return descriptor.__destrWrapper; } else { if (!descriptor.writable) { @@ -21,6 +21,8 @@ export default function _class_apply_descriptor_update(receiver, descriptor) { // class bodies. throw new TypeError("attempted to set read only private field"); } + return descriptor; } } +export { _class_apply_descriptor_update as _ }; diff --git a/packages/swc-helpers/esm/_class_call_check.js b/packages/swc-helpers/esm/_class_call_check.js new file mode 100644 index 000000000000..ffea7b407ceb --- /dev/null +++ b/packages/swc-helpers/esm/_class_call_check.js @@ -0,0 +1,4 @@ +export function _class_call_check(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); +} +export { _class_call_check as _ }; diff --git a/packages/swc-helpers/esm/_class_check_private_static_access.js b/packages/swc-helpers/esm/_class_check_private_static_access.js new file mode 100644 index 000000000000..5f86a45ab339 --- /dev/null +++ b/packages/swc-helpers/esm/_class_check_private_static_access.js @@ -0,0 +1,4 @@ +export function _class_check_private_static_access(receiver, classConstructor) { + if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance"); +} +export { _class_check_private_static_access as _ }; diff --git a/packages/swc-helpers/src/_class_check_private_static_field_descriptor.mjs b/packages/swc-helpers/esm/_class_check_private_static_field_descriptor.js similarity index 50% rename from packages/swc-helpers/src/_class_check_private_static_field_descriptor.mjs rename to packages/swc-helpers/esm/_class_check_private_static_field_descriptor.js index 9c0c02cf2cf4..90c0c0541234 100644 --- a/packages/swc-helpers/src/_class_check_private_static_field_descriptor.mjs +++ b/packages/swc-helpers/esm/_class_check_private_static_field_descriptor.js @@ -1,5 +1,6 @@ -export default function _class_check_private_static_field_descriptor(descriptor, action) { +export function _class_check_private_static_field_descriptor(descriptor, action) { if (descriptor === undefined) { throw new TypeError("attempted to " + action + " private static field before its declaration"); } } +export { _class_check_private_static_field_descriptor as _ }; diff --git a/packages/swc-helpers/esm/_class_extract_field_descriptor.js b/packages/swc-helpers/esm/_class_extract_field_descriptor.js new file mode 100644 index 000000000000..1e8a963e351d --- /dev/null +++ b/packages/swc-helpers/esm/_class_extract_field_descriptor.js @@ -0,0 +1,6 @@ +export function _class_extract_field_descriptor(receiver, privateMap, action) { + if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance"); + + return privateMap.get(receiver); +} +export { _class_extract_field_descriptor as _ }; diff --git a/packages/swc-helpers/src/_class_name_tdz_error.mjs b/packages/swc-helpers/esm/_class_name_tdz_error.js similarity index 53% rename from packages/swc-helpers/src/_class_name_tdz_error.mjs rename to packages/swc-helpers/esm/_class_name_tdz_error.js index d049b800944c..1c2e79db0af2 100644 --- a/packages/swc-helpers/src/_class_name_tdz_error.mjs +++ b/packages/swc-helpers/esm/_class_name_tdz_error.js @@ -1,3 +1,4 @@ -export default function _class_name_tdz_error(name) { +export function _class_name_tdz_error(name) { throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); } +export { _class_name_tdz_error as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_destructure.js b/packages/swc-helpers/esm/_class_private_field_destructure.js new file mode 100644 index 000000000000..27e6ac217881 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_destructure.js @@ -0,0 +1,8 @@ +import { _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js"; +import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js"; + +export function _class_private_field_destructure(receiver, privateMap) { + var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set"); + return _class_apply_descriptor_destructure(receiver, descriptor); +} +export { _class_private_field_destructure as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_get.js b/packages/swc-helpers/esm/_class_private_field_get.js new file mode 100644 index 000000000000..469a74cad161 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_get.js @@ -0,0 +1,8 @@ +import { _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js"; +import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js"; + +export function _class_private_field_get(receiver, privateMap) { + var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get"); + return _class_apply_descriptor_get(receiver, descriptor); +} +export { _class_private_field_get as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_init.js b/packages/swc-helpers/esm/_class_private_field_init.js new file mode 100644 index 000000000000..4cd73bd2c441 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_init.js @@ -0,0 +1,7 @@ +import { _check_private_redeclaration } from "./_check_private_redeclaration.js"; + +export function _class_private_field_init(obj, privateMap, value) { + _check_private_redeclaration(obj, privateMap); + privateMap.set(obj, value); +} +export { _class_private_field_init as _ }; diff --git a/packages/swc-helpers/src/_class_private_field_loose_base.mjs b/packages/swc-helpers/esm/_class_private_field_loose_base.js similarity index 59% rename from packages/swc-helpers/src/_class_private_field_loose_base.mjs rename to packages/swc-helpers/esm/_class_private_field_loose_base.js index f2555bcf7b32..2887f4f93a8f 100644 --- a/packages/swc-helpers/src/_class_private_field_loose_base.mjs +++ b/packages/swc-helpers/esm/_class_private_field_loose_base.js @@ -1,6 +1,8 @@ -export default function _class_private_field_loose_base(receiver, privateKey) { +export function _class_private_field_loose_base(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } + return receiver; } +export { _class_private_field_loose_base as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_loose_key.js b/packages/swc-helpers/esm/_class_private_field_loose_key.js new file mode 100644 index 000000000000..9aabf7c14f9d --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_loose_key.js @@ -0,0 +1,6 @@ +var id = 0; + +export function _class_private_field_loose_key(name) { + return "__private_" + id++ + "_" + name; +} +export { _class_private_field_loose_key as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_set.js b/packages/swc-helpers/esm/_class_private_field_set.js new file mode 100644 index 000000000000..3481e11a93ef --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_set.js @@ -0,0 +1,9 @@ +import { _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js"; +import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js"; + +export function _class_private_field_set(receiver, privateMap, value) { + var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set"); + _class_apply_descriptor_set(receiver, descriptor, value); + return value; +} +export { _class_private_field_set as _ }; diff --git a/packages/swc-helpers/esm/_class_private_field_update.js b/packages/swc-helpers/esm/_class_private_field_update.js new file mode 100644 index 000000000000..1eb75f80b5b1 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_field_update.js @@ -0,0 +1,8 @@ +import { _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js"; +import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js"; + +export function _class_private_field_update(receiver, privateMap) { + var descriptor = _class_extract_field_descriptor(receiver, privateMap, "update"); + return _class_apply_descriptor_update(receiver, descriptor); +} +export { _class_private_field_update as _ }; diff --git a/packages/swc-helpers/esm/_class_private_method_get.js b/packages/swc-helpers/esm/_class_private_method_get.js new file mode 100644 index 000000000000..bb581250ae55 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_method_get.js @@ -0,0 +1,6 @@ +export function _class_private_method_get(receiver, privateSet, fn) { + if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance"); + + return fn; +} +export { _class_private_method_get as _ }; diff --git a/packages/swc-helpers/esm/_class_private_method_init.js b/packages/swc-helpers/esm/_class_private_method_init.js new file mode 100644 index 000000000000..f533eff90c35 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_method_init.js @@ -0,0 +1,7 @@ +import { _check_private_redeclaration } from "./_check_private_redeclaration.js"; + +export function _class_private_method_init(obj, privateSet) { + _check_private_redeclaration(obj, privateSet); + privateSet.add(obj); +} +export { _class_private_method_init as _ }; diff --git a/packages/swc-helpers/esm/_class_private_method_set.js b/packages/swc-helpers/esm/_class_private_method_set.js new file mode 100644 index 000000000000..d289a5b22986 --- /dev/null +++ b/packages/swc-helpers/esm/_class_private_method_set.js @@ -0,0 +1,4 @@ +export function _class_private_method_set() { + throw new TypeError("attempted to reassign private method"); +} +export { _class_private_method_set as _ }; diff --git a/packages/swc-helpers/esm/_class_static_private_field_destructure.js b/packages/swc-helpers/esm/_class_static_private_field_destructure.js new file mode 100644 index 000000000000..70a71284bb39 --- /dev/null +++ b/packages/swc-helpers/esm/_class_static_private_field_destructure.js @@ -0,0 +1,11 @@ +import { _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js"; +import { _class_check_private_static_access } from "./_class_check_private_static_access.js"; +import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js"; + +export function _class_static_private_field_destructure(receiver, classConstructor, descriptor) { + _class_check_private_static_access(receiver, classConstructor); + _class_check_private_static_field_descriptor(descriptor, "set"); + + return _class_apply_descriptor_destructure(receiver, descriptor); +} +export { _class_static_private_field_destructure as _ }; diff --git a/packages/swc-helpers/esm/_class_static_private_field_spec_get.js b/packages/swc-helpers/esm/_class_static_private_field_spec_get.js new file mode 100644 index 000000000000..e5bb14b2a8f0 --- /dev/null +++ b/packages/swc-helpers/esm/_class_static_private_field_spec_get.js @@ -0,0 +1,11 @@ +import { _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js"; +import { _class_check_private_static_access } from "./_class_check_private_static_access.js"; +import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js"; + +export function _class_static_private_field_spec_get(receiver, classConstructor, descriptor) { + _class_check_private_static_access(receiver, classConstructor); + _class_check_private_static_field_descriptor(descriptor, "get"); + + return _class_apply_descriptor_get(receiver, descriptor); +} +export { _class_static_private_field_spec_get as _ }; diff --git a/packages/swc-helpers/esm/_class_static_private_field_spec_set.js b/packages/swc-helpers/esm/_class_static_private_field_spec_set.js new file mode 100644 index 000000000000..0ef46712caaa --- /dev/null +++ b/packages/swc-helpers/esm/_class_static_private_field_spec_set.js @@ -0,0 +1,12 @@ +import { _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js"; +import { _class_check_private_static_access } from "./_class_check_private_static_access.js"; +import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js"; + +export function _class_static_private_field_spec_set(receiver, classConstructor, descriptor, value) { + _class_check_private_static_access(receiver, classConstructor); + _class_check_private_static_field_descriptor(descriptor, "set"); + _class_apply_descriptor_set(receiver, descriptor, value); + + return value; +} +export { _class_static_private_field_spec_set as _ }; diff --git a/packages/swc-helpers/esm/_class_static_private_field_update.js b/packages/swc-helpers/esm/_class_static_private_field_update.js new file mode 100644 index 000000000000..45955c88a597 --- /dev/null +++ b/packages/swc-helpers/esm/_class_static_private_field_update.js @@ -0,0 +1,11 @@ +import { _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js"; +import { _class_check_private_static_access } from "./_class_check_private_static_access.js"; +import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js"; + +export function _class_static_private_field_update(receiver, classConstructor, descriptor) { + _class_check_private_static_access(receiver, classConstructor); + _class_check_private_static_field_descriptor(descriptor, "update"); + + return _class_apply_descriptor_update(receiver, descriptor); +} +export { _class_static_private_field_update as _ }; diff --git a/packages/swc-helpers/esm/_class_static_private_method_get.js b/packages/swc-helpers/esm/_class_static_private_method_get.js new file mode 100644 index 000000000000..6be1874610db --- /dev/null +++ b/packages/swc-helpers/esm/_class_static_private_method_get.js @@ -0,0 +1,8 @@ +import { _class_check_private_static_access } from "./_class_check_private_static_access.js"; + +export function _class_static_private_method_get(receiver, classConstructor, method) { + _class_check_private_static_access(receiver, classConstructor); + + return method; +} +export { _class_static_private_method_get as _ }; diff --git a/packages/swc-helpers/esm/_construct.js b/packages/swc-helpers/esm/_construct.js new file mode 100644 index 000000000000..abac13f0c257 --- /dev/null +++ b/packages/swc-helpers/esm/_construct.js @@ -0,0 +1,20 @@ +import { _is_native_reflect_construct } from "./_is_native_reflect_construct.js"; +import { _set_prototype_of } from "./_set_prototype_of.js"; +export function _construct(Parent, args, Class) { + if (_is_native_reflect_construct()) _construct = Reflect.construct; + else { + _construct = function construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Function.bind.apply(Parent, a); + var instance = new Constructor(); + + if (Class) _set_prototype_of(instance, Class.prototype); + + return instance; + }; + } + + return _construct.apply(null, arguments); +} +export { _construct as _ }; diff --git a/packages/swc-helpers/src/_create_class.mjs b/packages/swc-helpers/esm/_create_class.js similarity index 83% rename from packages/swc-helpers/src/_create_class.mjs rename to packages/swc-helpers/esm/_create_class.js index 36180b93d734..b4957a9e8331 100644 --- a/packages/swc-helpers/src/_create_class.mjs +++ b/packages/swc-helpers/esm/_create_class.js @@ -3,12 +3,16 @@ function _defineProperties(target, props) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); } } -export default function _create_class(Constructor, protoProps, staticProps) { +export function _create_class(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; } +export { _create_class as _ }; diff --git a/packages/swc-helpers/src/_create_for_of_iterator_helper_loose.mjs b/packages/swc-helpers/esm/_create_for_of_iterator_helper_loose.js similarity index 51% rename from packages/swc-helpers/src/_create_for_of_iterator_helper_loose.mjs rename to packages/swc-helpers/esm/_create_for_of_iterator_helper_loose.js index 9c406cf6525f..cf896deb687c 100644 --- a/packages/swc-helpers/src/_create_for_of_iterator_helper_loose.mjs +++ b/packages/swc-helpers/esm/_create_for_of_iterator_helper_loose.js @@ -1,19 +1,22 @@ -import _unsupported_iterable_to_array from "./_unsupported_iterable_to_array.mjs"; -export default function _create_for_of_iterator_helper_loose(o, allowArrayLike) { +import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; + +export function _create_for_of_iterator_helper_loose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); // Fallback for engines without symbol support if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; + var i = 0; + return function() { - if (i >= o.length) { - return { done: true }; - } + if (i >= o.length) return { done: true }; + return { done: false, value: o[i++] }; }; } - throw new TypeError( - "Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +export { _create_for_of_iterator_helper_loose as _ }; diff --git a/packages/swc-helpers/src/_create_super.mjs b/packages/swc-helpers/esm/_create_super.js similarity index 62% rename from packages/swc-helpers/src/_create_super.mjs rename to packages/swc-helpers/esm/_create_super.js index bf288bda0a64..6907daf9ff87 100644 --- a/packages/swc-helpers/src/_create_super.mjs +++ b/packages/swc-helpers/esm/_create_super.js @@ -1,16 +1,21 @@ -import _get_prototype_of from "./_get_prototype_of.mjs"; -import _is_native_reflect_construct from "./_is_native_reflect_construct.mjs"; -import _possible_constructor_return from "./_possible_constructor_return.mjs"; -export default function _create_super(Derived) { +import { _get_prototype_of } from "./_get_prototype_of.js"; +import { _is_native_reflect_construct } from "./_is_native_reflect_construct.js"; +import { _possible_constructor_return } from "./_possible_constructor_return.js"; + +export function _create_super(Derived) { var hasNativeReflectConstruct = _is_native_reflect_construct(); + return function _createSuperInternal() { var Super = _get_prototype_of(Derived), result; + if (hasNativeReflectConstruct) { var NewTarget = _get_prototype_of(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } + return _possible_constructor_return(this, result); }; } +export { _create_super as _ }; diff --git a/packages/swc-helpers/src/_decorate.mjs b/packages/swc-helpers/esm/_decorate.js similarity index 76% rename from packages/swc-helpers/src/_decorate.mjs rename to packages/swc-helpers/esm/_decorate.js index 027f375975a8..e00ce49605b7 100644 --- a/packages/swc-helpers/src/_decorate.mjs +++ b/packages/swc-helpers/esm/_decorate.js @@ -1,53 +1,50 @@ -import _to_array from "./_to_array.mjs"; -import _to_property_key from "./_to_property_key.mjs"; -import _type_of from "./_type_of.mjs"; -export default function _decorate(decorators, factory, superClass) { +import { _to_array } from "./_to_array.js"; +import { _to_property_key } from "./_to_property_key.js"; +import { _type_of } from "./_type_of.js"; + +export function _decorate(decorators, factory, superClass) { var r = factory(function initialize(O) { _initializeInstanceElements(O, decorated.elements); }, superClass); var decorated = _decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); _initializeClassElements(r.F, decorated.elements); + return _runClassFinishers(r.F, decorated.finishers); } function _createElementDescriptor(def) { var key = _to_property_key(def.key); var descriptor; + if (def.kind === "method") { descriptor = { value: def.value, writable: true, configurable: true, enumerable: false }; Object.defineProperty(def.value, "name", { value: _type_of(key) === "symbol" ? "" : key, configurable: true }); - } else if (def.kind === "get") { - descriptor = { get: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "set") { - descriptor = { set: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "field") { - descriptor = { configurable: true, writable: true, enumerable: true }; - } - var element = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", - descriptor: descriptor - }; + } else if (def.kind === "get") descriptor = { get: def.value, configurable: true, enumerable: false }; + else if (def.kind === "set") descriptor = { set: def.value, configurable: true, enumerable: false }; + else if (def.kind === "field") descriptor = { configurable: true, writable: true, enumerable: true }; + + var element = { kind: def.kind === "field" ? "field" : "method", key: key, placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", descriptor: descriptor }; + if (def.decorators) element.decorators = def.decorators; + if (def.kind === "field") element.initializer = def.value; + return element; } function _coalesceGetterSetter(element, other) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } + if (element.descriptor.get !== undefined) other.descriptor.get = element.descriptor.get; + else other.descriptor.set = element.descriptor.set; } function _coalesceClassElements(elements) { var newElements = []; var isSameElement = function isSameElement(other) { return other.kind === "method" && other.key === element.key && other.placement === element.placement; }; + for (var i = 0; i < elements.length; i++) { var element = elements[i]; var other; + if (element.kind === "method" && (other = newElements.find(isSameElement))) { if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { if (_hasDecorators(element) || _hasDecorators(other)) { @@ -57,9 +54,7 @@ function _coalesceClassElements(elements) { } else { if (_hasDecorators(element)) { if (_hasDecorators(other)) { - throw new ReferenceError( - "Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")." - ); + throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); } other.decorators = element.decorators; } @@ -69,6 +64,7 @@ function _coalesceClassElements(elements) { newElements.push(element); } } + return newElements; } function _hasDecorators(element) { @@ -92,9 +88,7 @@ function _initializeClassElements(F, elements) { function _initializeInstanceElements(O, elements) { ["method", "field"].forEach(function(kind) { elements.forEach(function(element) { - if (element.kind === kind && element.placement === "own") { - _defineClassElement(O, element); - } + if (element.kind === kind && element.placement === "own") _defineClassElement(O, element); }); }); } @@ -102,12 +96,7 @@ function _defineClassElement(receiver, element) { var descriptor = element.descriptor; if (element.kind === "field") { var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver) - }; + descriptor = { enumerable: descriptor.enumerable, writable: descriptor.writable, configurable: descriptor.configurable, value: initializer === void 0 ? void 0 : initializer.call(receiver) }; } Object.defineProperty(receiver, element.key, descriptor); } @@ -125,19 +114,16 @@ function _decorateClass(elements, decorators) { newElements.push.apply(newElements, elementFinishersExtras.extras); finishers.push.apply(finishers, elementFinishersExtras.finishers); }); - if (!decorators) { - return { elements: newElements, finishers: finishers }; - } + if (!decorators) return { elements: newElements, finishers: finishers }; var result = _decorateConstructor(newElements, decorators); finishers.push.apply(finishers, result.finishers); result.finishers = finishers; + return result; } function _addElementPlacement(element, placements, silent) { var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } + if (!silent && keys.indexOf(element.key) !== -1) throw new TypeError("Duplicated element (" + element.key + ")"); keys.push(element.key); } function _decorateElement(element, placements) { @@ -150,17 +136,14 @@ function _decorateElement(element, placements) { var elementFinisherExtras = _toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); element = elementFinisherExtras.element; _addElementPlacement(element, placements); - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } + if (elementFinisherExtras.finisher) finishers.push(elementFinisherExtras.finisher); var newExtras = elementFinisherExtras.extras; if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - _addElementPlacement(newExtras[j], placements); - } + for (var j = 0; j < newExtras.length; j++) _addElementPlacement(newExtras[j], placements); extras.push.apply(extras, newExtras); } } + return { element: element, finishers: finishers, extras: extras }; } function _decorateConstructor(elements, decorators) { @@ -168,9 +151,7 @@ function _decorateConstructor(elements, decorators) { for (var i = decorators.length - 1; i >= 0; i--) { var obj = _fromClassDescriptor(elements); var elementsAndFinisher = _toClassDescriptor((0, decorators[i])(obj) || obj); - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } + if (elementsAndFinisher.finisher !== undefined) finishers.push(elementsAndFinisher.finisher); if (elementsAndFinisher.elements !== undefined) { elements = elementsAndFinisher.elements; for (var j = 0; j < elements.length - 1; j++) { @@ -182,6 +163,7 @@ function _decorateConstructor(elements, decorators) { } } } + return { elements: elements, finishers: finishers }; } function _fromElementDescriptor(element) { @@ -189,65 +171,67 @@ function _fromElementDescriptor(element) { var desc = { value: "Descriptor", configurable: true }; Object.defineProperty(obj, Symbol.toStringTag, desc); if (element.kind === "field") obj.initializer = element.initializer; + return obj; } function _toElementDescriptors(elementObjects) { if (elementObjects === undefined) return; + return _to_array(elementObjects).map(function(elementObject) { var element = _toElementDescriptor(elementObject); _disallowProperty(elementObject, "finisher", "An element descriptor"); _disallowProperty(elementObject, "extras", "An element descriptor"); + return element; }); } function _toElementDescriptor(elementObject) { var kind = String(elementObject.kind); if (kind !== "method" && kind !== "field") { - throw new TypeError( - "An element descriptor's .kind property must be either \"method\" or" - + " \"field\", but a decorator created an element descriptor with" + " .kind \"" + kind + "\"" - ); + throw new TypeError("An element descriptor's .kind property must be either \"method\" or" + " \"field\", but a decorator created an element descriptor with" + " .kind \"" + kind + "\""); } var key = _to_property_key(elementObject.key); var placement = String(elementObject.placement); if (placement !== "static" && placement !== "prototype" && placement !== "own") { throw new TypeError( "An element descriptor's .placement property must be one of \"static\"," - + " \"prototype\" or \"own\", but a decorator created an element descriptor" + " with .placement \"" + placement + "\"" + + " \"prototype\" or \"own\", but a decorator created an element descriptor" + + " with .placement \"" + + placement + + "\"" ); } var descriptor = elementObject.descriptor; _disallowProperty(elementObject, "elements", "An element descriptor"); var element = { kind: kind, key: key, placement: placement, descriptor: Object.assign({}, descriptor) }; - if (kind !== "field") { - _disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { + if (kind !== "field") _disallowProperty(elementObject, "initializer", "A method descriptor"); + else { _disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); _disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); _disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); element.initializer = elementObject.initializer; } + return element; } function _toElementFinisherExtras(elementObject) { var element = _toElementDescriptor(elementObject); var finisher = _optionalCallableProperty(elementObject, "finisher"); var extras = _toElementDescriptors(elementObject.extras); + return { element: element, finisher: finisher, extras: extras }; } function _fromClassDescriptor(elements) { var obj = { kind: "class", elements: elements.map(_fromElementDescriptor) }; var desc = { value: "Descriptor", configurable: true }; Object.defineProperty(obj, Symbol.toStringTag, desc); + return obj; } function _toClassDescriptor(obj) { var kind = String(obj.kind); if (kind !== "class") { - throw new TypeError( - "A class descriptor's .kind property must be \"class\", but a decorator" + " created a class descriptor with .kind \"" + kind - + "\"" - ); + throw new TypeError("A class descriptor's .kind property must be \"class\", but a decorator" + " created a class descriptor with .kind \"" + kind + "\""); } _disallowProperty(obj, "key", "A class descriptor"); _disallowProperty(obj, "placement", "A class descriptor"); @@ -256,29 +240,29 @@ function _toClassDescriptor(obj) { _disallowProperty(obj, "extras", "A class descriptor"); var finisher = _optionalCallableProperty(obj, "finisher"); var elements = _toElementDescriptors(obj.elements); + return { elements: elements, finisher: finisher }; } function _disallowProperty(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } + if (obj[name] !== undefined) throw new TypeError(objectType + " can't have a ." + name + " property."); } function _optionalCallableProperty(obj, name) { var value = obj[name]; if (value !== undefined && typeof value !== "function") { throw new TypeError("Expected '" + name + "' to be a function"); } + return value; } function _runClassFinishers(constructor, finishers) { for (var i = 0; i < finishers.length; i++) { var newConstructor = (0, finishers[i])(constructor); if (newConstructor !== undefined) { - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } + if (typeof newConstructor !== "function") throw new TypeError("Finishers must return a constructor."); constructor = newConstructor; } } + return constructor; } +export { _decorate as _ }; diff --git a/packages/swc-helpers/src/_defaults.mjs b/packages/swc-helpers/esm/_defaults.js similarity index 70% rename from packages/swc-helpers/src/_defaults.mjs rename to packages/swc-helpers/esm/_defaults.js index c7c28fd37517..bbfb87a42011 100644 --- a/packages/swc-helpers/src/_defaults.mjs +++ b/packages/swc-helpers/esm/_defaults.js @@ -1,11 +1,13 @@ -export default function _defaults(obj, defaults) { +export function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); + for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } + + if (value && value.configurable && obj[key] === undefined) Object.defineProperty(obj, key, value); } + return obj; } +export { _defaults as _ }; diff --git a/packages/swc-helpers/src/_define_enumerable_properties.mjs b/packages/swc-helpers/esm/_define_enumerable_properties.js similarity index 85% rename from packages/swc-helpers/src/_define_enumerable_properties.mjs rename to packages/swc-helpers/esm/_define_enumerable_properties.js index 4fbadb773546..33dadd327032 100644 --- a/packages/swc-helpers/src/_define_enumerable_properties.mjs +++ b/packages/swc-helpers/esm/_define_enumerable_properties.js @@ -1,10 +1,13 @@ -export default function _define_enumerable_properties(obj, descs) { +export function _define_enumerable_properties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; + if ("value" in desc) desc.writable = true; + Object.defineProperty(obj, key, desc); } + if (Object.getOwnPropertySymbols) { var objectSymbols = Object.getOwnPropertySymbols(descs); for (var i = 0; i < objectSymbols.length; i++) { @@ -15,5 +18,7 @@ export default function _define_enumerable_properties(obj, descs) { Object.defineProperty(obj, sym, desc); } } + return obj; } +export { _define_enumerable_properties as _ }; diff --git a/packages/swc-helpers/src/_define_property.mjs b/packages/swc-helpers/esm/_define_property.js similarity index 56% rename from packages/swc-helpers/src/_define_property.mjs rename to packages/swc-helpers/esm/_define_property.js index 50f4ca54b296..8e7c8e539201 100644 --- a/packages/swc-helpers/src/_define_property.mjs +++ b/packages/swc-helpers/esm/_define_property.js @@ -1,8 +1,8 @@ -export default function _define_property(obj, key, value) { +export function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); - } else { - obj[key] = value; - } + } else obj[key] = value; + return obj; } +export { _define_property as _ }; diff --git a/packages/swc-helpers/src/_export_star.mjs b/packages/swc-helpers/esm/_export_star.js similarity index 82% rename from packages/swc-helpers/src/_export_star.mjs rename to packages/swc-helpers/esm/_export_star.js index 1469762bffbf..8f3bf44fd10d 100644 --- a/packages/swc-helpers/src/_export_star.mjs +++ b/packages/swc-helpers/esm/_export_star.js @@ -1,4 +1,4 @@ -export default function _export_star(from, to) { +export function _export_star(from, to) { Object.keys(from).forEach(function(k) { if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) { Object.defineProperty(to, k, { @@ -9,5 +9,7 @@ export default function _export_star(from, to) { }); } }); + return from; } +export { _export_star as _ }; diff --git a/packages/swc-helpers/esm/_extends.js b/packages/swc-helpers/esm/_extends.js new file mode 100644 index 000000000000..46fe9a6596ef --- /dev/null +++ b/packages/swc-helpers/esm/_extends.js @@ -0,0 +1,13 @@ +export function _extends() { + _extends = Object.assign || function assign(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key]; + } + + return target; + }; + + return _extends.apply(this, arguments); +} +export { _extends as _ }; diff --git a/packages/swc-helpers/esm/_get.js b/packages/swc-helpers/esm/_get.js new file mode 100644 index 000000000000..c8a0f5830dba --- /dev/null +++ b/packages/swc-helpers/esm/_get.js @@ -0,0 +1,21 @@ +import { _super_prop_base } from "./_super_prop_base.js"; + +export function _get(target, property, receiver) { + if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get; + else { + _get = function get(target, property, receiver) { + var base = _super_prop_base(target, property); + + if (!base) return; + + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) return desc.get.call(receiver || target); + + return desc.value; + }; + } + + return _get(target, property, receiver || target); +} +export { _get as _ }; diff --git a/packages/swc-helpers/esm/_get_prototype_of.js b/packages/swc-helpers/esm/_get_prototype_of.js new file mode 100644 index 000000000000..8e6b620ea8f9 --- /dev/null +++ b/packages/swc-helpers/esm/_get_prototype_of.js @@ -0,0 +1,8 @@ +export function _get_prototype_of(o) { + _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + + return _get_prototype_of(o); +} +export { _get_prototype_of as _ }; diff --git a/packages/swc-helpers/src/_inherits.mjs b/packages/swc-helpers/esm/_inherits.js similarity index 55% rename from packages/swc-helpers/src/_inherits.mjs rename to packages/swc-helpers/esm/_inherits.js index abf9ec79d476..9b5e7bfb1a89 100644 --- a/packages/swc-helpers/src/_inherits.mjs +++ b/packages/swc-helpers/esm/_inherits.js @@ -1,10 +1,12 @@ -import _set_prototype_of from "./_set_prototype_of.mjs"; -export default function _inherits(subClass, superClass) { +import { _set_prototype_of } from "./_set_prototype_of.js"; + +export function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); + + subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); + if (superClass) _set_prototype_of(subClass, superClass); } +export { _inherits as _ }; diff --git a/packages/swc-helpers/src/_inherits_loose.mjs b/packages/swc-helpers/esm/_inherits_loose.js similarity index 62% rename from packages/swc-helpers/src/_inherits_loose.mjs rename to packages/swc-helpers/esm/_inherits_loose.js index dee67dee10e6..14ce93bef64c 100644 --- a/packages/swc-helpers/src/_inherits_loose.mjs +++ b/packages/swc-helpers/esm/_inherits_loose.js @@ -1,5 +1,6 @@ -export default function _inherits_loose(subClass, superClass) { +export function _inherits_loose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } +export { _inherits_loose as _ }; diff --git a/packages/swc-helpers/src/_initializer_define_property.mjs b/packages/swc-helpers/esm/_initializer_define_property.js similarity index 69% rename from packages/swc-helpers/src/_initializer_define_property.mjs rename to packages/swc-helpers/esm/_initializer_define_property.js index d1410dad0cbb..b0f6b399a672 100644 --- a/packages/swc-helpers/src/_initializer_define_property.mjs +++ b/packages/swc-helpers/esm/_initializer_define_property.js @@ -1,5 +1,6 @@ -export default function _initializer_define_property(target, property, descriptor, context) { +export function _initializer_define_property(target, property, descriptor, context) { if (!descriptor) return; + Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, @@ -7,3 +8,4 @@ export default function _initializer_define_property(target, property, descripto value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); } +export { _initializer_define_property as _ }; diff --git a/packages/swc-helpers/esm/_initializer_warning_helper.js b/packages/swc-helpers/esm/_initializer_warning_helper.js new file mode 100644 index 000000000000..804ce291fa56 --- /dev/null +++ b/packages/swc-helpers/esm/_initializer_warning_helper.js @@ -0,0 +1,9 @@ +export function _initializer_warning_helper(descriptor, context) { + throw new Error( + "Decorating class property failed. Please ensure that " + + "proposal-class-properties is enabled and set to use loose mode. " + + "To use proposal-class-properties in spec mode with decorators, wait for " + + "the next major version of decorators in stage 2." + ); +} +export { _initializer_warning_helper as _ }; diff --git a/packages/swc-helpers/src/_instanceof.mjs b/packages/swc-helpers/esm/_instanceof.js similarity index 55% rename from packages/swc-helpers/src/_instanceof.mjs rename to packages/swc-helpers/esm/_instanceof.js index ea75c1d6cfa8..c730929cd643 100644 --- a/packages/swc-helpers/src/_instanceof.mjs +++ b/packages/swc-helpers/esm/_instanceof.js @@ -1,7 +1,6 @@ -export default function _instanceof(left, right) { +export function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } + } else return left instanceof right; } +export { _instanceof as _ }; diff --git a/packages/swc-helpers/esm/_interop_require_default.js b/packages/swc-helpers/esm/_interop_require_default.js new file mode 100644 index 000000000000..80132a866364 --- /dev/null +++ b/packages/swc-helpers/esm/_interop_require_default.js @@ -0,0 +1,4 @@ +export function _interop_require_default(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} +export { _interop_require_default as _ }; diff --git a/packages/swc-helpers/src/_interop_require_wildcard.mjs b/packages/swc-helpers/esm/_interop_require_wildcard.js similarity index 62% rename from packages/swc-helpers/src/_interop_require_wildcard.mjs rename to packages/swc-helpers/esm/_interop_require_wildcard.js index 4b1ad21b0949..afec50cf28cf 100644 --- a/packages/swc-helpers/src/_interop_require_wildcard.mjs +++ b/packages/swc-helpers/esm/_interop_require_wildcard.js @@ -1,37 +1,36 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; + var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -export default function _interop_require_wildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || typeof obj !== "object" && typeof obj !== "function") { - return { default: obj }; - } +export function _interop_require_wildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } + + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } + if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc); + else newObj[key] = obj[key]; } } + newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } + + if (cache) cache.set(obj, newObj); + return newObj; } +export { _interop_require_wildcard as _ }; diff --git a/packages/swc-helpers/esm/_is_native_function.js b/packages/swc-helpers/esm/_is_native_function.js new file mode 100644 index 000000000000..34b241567dee --- /dev/null +++ b/packages/swc-helpers/esm/_is_native_function.js @@ -0,0 +1,4 @@ +export function _is_native_function(fn) { + return Function.toString.call(fn).indexOf("[native code]") !== -1; +} +export { _is_native_function as _ }; diff --git a/packages/swc-helpers/src/_is_native_reflect_construct.mjs b/packages/swc-helpers/esm/_is_native_reflect_construct.js similarity index 77% rename from packages/swc-helpers/src/_is_native_reflect_construct.mjs rename to packages/swc-helpers/esm/_is_native_reflect_construct.js index bf7830adffb1..4ae4e010fc46 100644 --- a/packages/swc-helpers/src/_is_native_reflect_construct.mjs +++ b/packages/swc-helpers/esm/_is_native_reflect_construct.js @@ -1,11 +1,14 @@ -export default function _is_native_reflect_construct() { +export function _is_native_reflect_construct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; + try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); + return true; } catch (e) { return false; } } +export { _is_native_reflect_construct as _ }; diff --git a/packages/swc-helpers/esm/_iterable_to_array.js b/packages/swc-helpers/esm/_iterable_to_array.js new file mode 100644 index 000000000000..0e50a58d70b4 --- /dev/null +++ b/packages/swc-helpers/esm/_iterable_to_array.js @@ -0,0 +1,6 @@ +export function _iterable_to_array(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) { + return Array.from(iter); + } +} +export { _iterable_to_array as _ }; diff --git a/packages/swc-helpers/src/_iterable_to_array_limit.mjs b/packages/swc-helpers/esm/_iterable_to_array_limit.js similarity index 86% rename from packages/swc-helpers/src/_iterable_to_array_limit.mjs rename to packages/swc-helpers/esm/_iterable_to_array_limit.js index 5beec918417c..093ad749d9bc 100644 --- a/packages/swc-helpers/src/_iterable_to_array_limit.mjs +++ b/packages/swc-helpers/esm/_iterable_to_array_limit.js @@ -1,10 +1,13 @@ -export default function _iterable_to_array_limit(arr, i) { +export function _iterable_to_array_limit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; + if (_i == null) return; + var _arr = []; var _n = true; var _d = false; var _s, _e; + try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); @@ -20,5 +23,7 @@ export default function _iterable_to_array_limit(arr, i) { if (_d) throw _e; } } + return _arr; } +export { _iterable_to_array_limit as _ }; diff --git a/packages/swc-helpers/src/_iterable_to_array_limit_loose.mjs b/packages/swc-helpers/esm/_iterable_to_array_limit_loose.js similarity index 74% rename from packages/swc-helpers/src/_iterable_to_array_limit_loose.mjs rename to packages/swc-helpers/esm/_iterable_to_array_limit_loose.js index 1635f34cd72f..9127d87f956f 100644 --- a/packages/swc-helpers/src/_iterable_to_array_limit_loose.mjs +++ b/packages/swc-helpers/esm/_iterable_to_array_limit_loose.js @@ -1,10 +1,15 @@ -export default function _iterable_to_array_limit_loose(arr, i) { +export function _iterable_to_array_limit_loose(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); + if (_i == null) return; + var _arr = []; + for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { _arr.push(_step.value); if (i && _arr.length === i) break; } + return _arr; } +export { _iterable_to_array_limit_loose as _ }; diff --git a/packages/swc-helpers/src/_jsx.mjs b/packages/swc-helpers/esm/_jsx.js similarity index 52% rename from packages/swc-helpers/src/_jsx.mjs rename to packages/swc-helpers/esm/_jsx.js index 08dfe81b0f20..df4141d86211 100644 --- a/packages/swc-helpers/src/_jsx.mjs +++ b/packages/swc-helpers/esm/_jsx.js @@ -1,30 +1,26 @@ var REACT_ELEMENT_TYPE; -export default function _jsx(type, props, key, children) { +export function _jsx(type, props, key, children) { if (!REACT_ELEMENT_TYPE) { REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; } + var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; - if (!props && childrenLength !== 0) { - props = { children: void 0 }; - } + + if (!props && childrenLength !== 0) props = { children: void 0 }; if (props && defaultProps) { for (var propName in defaultProps) { - if (props[propName] === void 0) { - props[propName] = defaultProps[propName]; - } + if (props[propName] === void 0) props[propName] = defaultProps[propName]; + else if (!props) props = defaultProps || {}; } - } else if (!props) { - props = defaultProps || {}; } - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { + if (childrenLength === 1) props.children = children; + else if (childrenLength > 1) { var childArray = new Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 3]; - } + for (var i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3]; props.children = childArray; } + return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : "" + key, ref: null, props: props, _owner: null }; } +export { _jsx as _ }; diff --git a/packages/swc-helpers/esm/_new_arrow_check.js b/packages/swc-helpers/esm/_new_arrow_check.js new file mode 100644 index 000000000000..adb7df76c83a --- /dev/null +++ b/packages/swc-helpers/esm/_new_arrow_check.js @@ -0,0 +1,4 @@ +export function _new_arrow_check(innerThis, boundThis) { + if (innerThis !== boundThis) throw new TypeError("Cannot instantiate an arrow function"); +} +export { _new_arrow_check as _ }; diff --git a/packages/swc-helpers/esm/_non_iterable_rest.js b/packages/swc-helpers/esm/_non_iterable_rest.js new file mode 100644 index 000000000000..ac7480b3b276 --- /dev/null +++ b/packages/swc-helpers/esm/_non_iterable_rest.js @@ -0,0 +1,4 @@ +export function _non_iterable_rest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _non_iterable_rest as _ }; diff --git a/packages/swc-helpers/esm/_non_iterable_spread.js b/packages/swc-helpers/esm/_non_iterable_spread.js new file mode 100644 index 000000000000..0135be51ab14 --- /dev/null +++ b/packages/swc-helpers/esm/_non_iterable_spread.js @@ -0,0 +1,4 @@ +export function _non_iterable_spread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _non_iterable_spread as _ }; diff --git a/packages/swc-helpers/src/_object_destructuring_empty.mjs b/packages/swc-helpers/esm/_object_destructuring_empty.js similarity index 51% rename from packages/swc-helpers/src/_object_destructuring_empty.mjs rename to packages/swc-helpers/esm/_object_destructuring_empty.js index 442b7bfccb82..b3a22c54ef57 100644 --- a/packages/swc-helpers/src/_object_destructuring_empty.mjs +++ b/packages/swc-helpers/esm/_object_destructuring_empty.js @@ -1,4 +1,6 @@ -export default function _object_destructuring_empty(o) { +export function _object_destructuring_empty(o) { if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o); + return o; } +export { _object_destructuring_empty as _ }; diff --git a/packages/swc-helpers/src/_object_spread.mjs b/packages/swc-helpers/esm/_object_spread.js similarity index 81% rename from packages/swc-helpers/src/_object_spread.mjs rename to packages/swc-helpers/esm/_object_spread.js index a2d0ce150d77..bb28679181ca 100644 --- a/packages/swc-helpers/src/_object_spread.mjs +++ b/packages/swc-helpers/esm/_object_spread.js @@ -1,8 +1,10 @@ -import _define_property from "./_define_property.mjs"; -export default function _object_spread(target) { +import { _define_property } from "./_define_property.js"; + +export function _object_spread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === "function") { ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter(function(sym) { @@ -10,9 +12,12 @@ export default function _object_spread(target) { }) ); } + ownKeys.forEach(function(key) { _define_property(target, key, source[key]); }); } + return target; } +export { _object_spread as _ }; diff --git a/packages/swc-helpers/src/_object_spread_props.mjs b/packages/swc-helpers/esm/_object_spread_props.js similarity index 74% rename from packages/swc-helpers/src/_object_spread_props.mjs rename to packages/swc-helpers/esm/_object_spread_props.js index f0c1944dff39..3bde96ac63d2 100644 --- a/packages/swc-helpers/src/_object_spread_props.mjs +++ b/packages/swc-helpers/esm/_object_spread_props.js @@ -1,5 +1,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { @@ -9,16 +10,19 @@ function ownKeys(object, enumerableOnly) { } keys.push.apply(keys, symbols); } + return keys; } -export default function _object_spread_props(target, source) { +export function _object_spread_props(target, source) { source = source != null ? source : {}; - if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { + + if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + else { ownKeys(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } + return target; } +export { _object_spread_props as _ }; diff --git a/packages/swc-helpers/src/_object_without_properties.mjs b/packages/swc-helpers/esm/_object_without_properties.js similarity index 72% rename from packages/swc-helpers/src/_object_without_properties.mjs rename to packages/swc-helpers/esm/_object_without_properties.js index 75a4d2479165..5e5843ebd7ac 100644 --- a/packages/swc-helpers/src/_object_without_properties.mjs +++ b/packages/swc-helpers/esm/_object_without_properties.js @@ -1,8 +1,11 @@ -import _object_without_properties_loose from "./_object_without_properties_loose.mjs"; -export default function _object_without_properties(source, excluded) { +import { _object_without_properties_loose } from "./_object_without_properties_loose.js"; + +export function _object_without_properties(source, excluded) { if (source == null) return {}; + var target = _object_without_properties_loose(source, excluded); var key, i; + if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { @@ -12,5 +15,7 @@ export default function _object_without_properties(source, excluded) { target[key] = source[key]; } } + return target; } +export { _object_without_properties as _ }; diff --git a/packages/swc-helpers/src/_object_without_properties_loose.mjs b/packages/swc-helpers/esm/_object_without_properties_loose.js similarity index 71% rename from packages/swc-helpers/src/_object_without_properties_loose.mjs rename to packages/swc-helpers/esm/_object_without_properties_loose.js index b9f45d792ca0..fd0fb7fa7648 100644 --- a/packages/swc-helpers/src/_object_without_properties_loose.mjs +++ b/packages/swc-helpers/esm/_object_without_properties_loose.js @@ -1,12 +1,16 @@ -export default function _object_without_properties_loose(source, excluded) { +export function _object_without_properties_loose(source, excluded) { if (source == null) return {}; + var target = {}; var sourceKeys = Object.keys(source); var key, i; + for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } + return target; } +export { _object_without_properties_loose as _ }; diff --git a/packages/swc-helpers/esm/_possible_constructor_return.js b/packages/swc-helpers/esm/_possible_constructor_return.js new file mode 100644 index 000000000000..8c046c4f108d --- /dev/null +++ b/packages/swc-helpers/esm/_possible_constructor_return.js @@ -0,0 +1,9 @@ +import { _assert_this_initialized } from "./_assert_this_initialized.js"; +import { _type_of } from "./_type_of.js"; + +export function _possible_constructor_return(self, call) { + if (call && (_type_of(call) === "object" || typeof call === "function")) return call; + + return _assert_this_initialized(self); +} +export { _possible_constructor_return as _ }; diff --git a/packages/swc-helpers/esm/_read_only_error.js b/packages/swc-helpers/esm/_read_only_error.js new file mode 100644 index 000000000000..b23f963cd362 --- /dev/null +++ b/packages/swc-helpers/esm/_read_only_error.js @@ -0,0 +1,4 @@ +export function _read_only_error(name) { + throw new TypeError("\"" + name + "\" is read-only"); +} +export { _read_only_error as _ }; diff --git a/packages/swc-helpers/src/_set.mjs b/packages/swc-helpers/esm/_set.js similarity index 68% rename from packages/swc-helpers/src/_set.mjs rename to packages/swc-helpers/esm/_set.js index 2f1e77511fd2..41fb0f9a3707 100644 --- a/packages/swc-helpers/src/_set.mjs +++ b/packages/swc-helpers/esm/_set.js @@ -1,9 +1,9 @@ -import _define_property from "./_define_property.mjs"; -import _super_prop_base from "./_super_prop_base.mjs"; +import { _define_property } from "./_define_property.js"; +import { _super_prop_base } from "./_super_prop_base.js"; + function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { + if (typeof Reflect !== "undefined" && Reflect.set) set = Reflect.set; + else { set = function set(target, property, value, receiver) { var base = _super_prop_base(target, property); var desc; @@ -11,6 +11,7 @@ function set(target, property, value, receiver) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); + return true; } else if (!desc.writable) { return false; @@ -18,23 +19,24 @@ function set(target, property, value, receiver) { } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { - if (!desc.writable) { - return false; - } + if (!desc.writable) return false; desc.value = value; Object.defineProperty(receiver, property, desc); } else { _define_property(receiver, property, value); } + return true; }; } + return set(target, property, value, receiver); } -export default function _set(target, property, value, receiver, isStrict) { + +export function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new Error("failed to set property"); - } + if (!s && isStrict) throw new Error("failed to set property"); + return value; } +export { _set as _ }; diff --git a/packages/swc-helpers/esm/_set_prototype_of.js b/packages/swc-helpers/esm/_set_prototype_of.js new file mode 100644 index 000000000000..e069260edde8 --- /dev/null +++ b/packages/swc-helpers/esm/_set_prototype_of.js @@ -0,0 +1,10 @@ +export function _set_prototype_of(o, p) { + _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) { + o.__proto__ = p; + + return o; + }; + + return _set_prototype_of(o, p); +} +export { _set_prototype_of as _ }; diff --git a/packages/swc-helpers/src/_skip_first_generator_next.mjs b/packages/swc-helpers/esm/_skip_first_generator_next.js similarity index 55% rename from packages/swc-helpers/src/_skip_first_generator_next.mjs rename to packages/swc-helpers/esm/_skip_first_generator_next.js index dfbf129126b8..852a5d5be60d 100644 --- a/packages/swc-helpers/src/_skip_first_generator_next.mjs +++ b/packages/swc-helpers/esm/_skip_first_generator_next.js @@ -1,7 +1,9 @@ -export default function _skip_first_generator_next(fn) { +export function _skip_first_generator_next(fn) { return function() { var it = fn.apply(this, arguments); it.next(); + return it; }; } +export { _skip_first_generator_next as _ }; diff --git a/packages/swc-helpers/esm/_sliced_to_array.js b/packages/swc-helpers/esm/_sliced_to_array.js new file mode 100644 index 000000000000..ca0e194c9c8c --- /dev/null +++ b/packages/swc-helpers/esm/_sliced_to_array.js @@ -0,0 +1,9 @@ +import { _array_with_holes } from "./_array_with_holes.js"; +import { _iterable_to_array_limit } from "./_iterable_to_array_limit.js"; +import { _non_iterable_rest } from "./_non_iterable_rest.js"; +import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; + +export function _sliced_to_array(arr, i) { + return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest(); +} +export { _sliced_to_array as _ }; diff --git a/packages/swc-helpers/esm/_sliced_to_array_loose.js b/packages/swc-helpers/esm/_sliced_to_array_loose.js new file mode 100644 index 000000000000..16660edc99a6 --- /dev/null +++ b/packages/swc-helpers/esm/_sliced_to_array_loose.js @@ -0,0 +1,9 @@ +import { _array_with_holes } from "./_array_with_holes.js"; +import { _iterable_to_array_limit_loose } from "./_iterable_to_array_limit_loose.js"; +import { _non_iterable_rest } from "./_non_iterable_rest.js"; +import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; + +export function _sliced_to_array_loose(arr, i) { + return _array_with_holes(arr) || _iterable_to_array_limit_loose(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest(); +} +export { _sliced_to_array_loose as _ }; diff --git a/packages/swc-helpers/src/_super_prop_base.mjs b/packages/swc-helpers/esm/_super_prop_base.js similarity index 54% rename from packages/swc-helpers/src/_super_prop_base.mjs rename to packages/swc-helpers/esm/_super_prop_base.js index 4eec44229316..da1f9f75f648 100644 --- a/packages/swc-helpers/src/_super_prop_base.mjs +++ b/packages/swc-helpers/esm/_super_prop_base.js @@ -1,8 +1,11 @@ -import _get_prototype_of from "./_get_prototype_of.mjs"; -export default function _super_prop_base(object, property) { +import { _get_prototype_of } from "./_get_prototype_of.js"; + +export function _super_prop_base(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _get_prototype_of(object); if (object === null) break; } + return object; } +export { _super_prop_base as _ }; diff --git a/packages/swc-helpers/esm/_tagged_template_literal.js b/packages/swc-helpers/esm/_tagged_template_literal.js new file mode 100644 index 000000000000..7a3ac4bbb31c --- /dev/null +++ b/packages/swc-helpers/esm/_tagged_template_literal.js @@ -0,0 +1,6 @@ +export function _tagged_template_literal(strings, raw) { + if (!raw) raw = strings.slice(0); + + return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); +} +export { _tagged_template_literal as _ }; diff --git a/packages/swc-helpers/esm/_tagged_template_literal_loose.js b/packages/swc-helpers/esm/_tagged_template_literal_loose.js new file mode 100644 index 000000000000..68640081db9c --- /dev/null +++ b/packages/swc-helpers/esm/_tagged_template_literal_loose.js @@ -0,0 +1,8 @@ +export function _tagged_template_literal_loose(strings, raw) { + if (!raw) raw = strings.slice(0); + + strings.raw = raw; + + return strings; +} +export { _tagged_template_literal_loose as _ }; diff --git a/packages/swc-helpers/esm/_throw.js b/packages/swc-helpers/esm/_throw.js new file mode 100644 index 000000000000..759120ad447e --- /dev/null +++ b/packages/swc-helpers/esm/_throw.js @@ -0,0 +1,4 @@ +export function _throw(e) { + throw e; +} +export { _throw as _ }; diff --git a/packages/swc-helpers/esm/_to_array.js b/packages/swc-helpers/esm/_to_array.js new file mode 100644 index 000000000000..8167e8c96e58 --- /dev/null +++ b/packages/swc-helpers/esm/_to_array.js @@ -0,0 +1,9 @@ +import { _array_with_holes } from "./_array_with_holes.js"; +import { _iterable_to_array } from "./_iterable_to_array.js"; +import { _non_iterable_rest } from "./_non_iterable_rest.js"; +import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; + +export function _to_array(arr) { + return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest(); +} +export { _to_array as _ }; diff --git a/packages/swc-helpers/esm/_to_consumable_array.js b/packages/swc-helpers/esm/_to_consumable_array.js new file mode 100644 index 000000000000..c0ca6a0c2da6 --- /dev/null +++ b/packages/swc-helpers/esm/_to_consumable_array.js @@ -0,0 +1,9 @@ +import { _array_without_holes } from "./_array_without_holes.js"; +import { _iterable_to_array } from "./_iterable_to_array.js"; +import { _non_iterable_spread } from "./_non_iterable_spread.js"; +import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; + +export function _to_consumable_array(arr) { + return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread(); +} +export { _to_consumable_array as _ }; diff --git a/packages/swc-helpers/src/_to_primitive.mjs b/packages/swc-helpers/esm/_to_primitive.js similarity index 76% rename from packages/swc-helpers/src/_to_primitive.mjs rename to packages/swc-helpers/esm/_to_primitive.js index daeb986eecd3..9864be8ec31c 100644 --- a/packages/swc-helpers/src/_to_primitive.mjs +++ b/packages/swc-helpers/esm/_to_primitive.js @@ -1,11 +1,16 @@ -import _type_of from "./_type_of.mjs"; -export default function _to_primitive(input, hint) { +import { _type_of } from "./_type_of.js"; + +export function _to_primitive(input, hint) { if (_type_of(input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_type_of(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } + return (hint === "string" ? String : Number)(input); } +export { _to_primitive as _ }; diff --git a/packages/swc-helpers/esm/_to_property_key.js b/packages/swc-helpers/esm/_to_property_key.js new file mode 100644 index 000000000000..5594371d549e --- /dev/null +++ b/packages/swc-helpers/esm/_to_property_key.js @@ -0,0 +1,9 @@ +import { _to_primitive } from "./_to_primitive.js"; +import { _type_of } from "./_type_of.js"; + +export function _to_property_key(arg) { + var key = _to_primitive(arg, "string"); + + return _type_of(key) === "symbol" ? key : String(key); +} +export { _to_property_key as _ }; diff --git a/packages/swc-helpers/esm/_ts_decorate.js b/packages/swc-helpers/esm/_ts_decorate.js new file mode 100644 index 000000000000..3a5486f6daef --- /dev/null +++ b/packages/swc-helpers/esm/_ts_decorate.js @@ -0,0 +1 @@ +export { __decorate as _, __decorate as _ts_decorate } from "tslib"; diff --git a/packages/swc-helpers/esm/_ts_generator.js b/packages/swc-helpers/esm/_ts_generator.js new file mode 100644 index 000000000000..edcf45bd9243 --- /dev/null +++ b/packages/swc-helpers/esm/_ts_generator.js @@ -0,0 +1 @@ +export { __generator as _, __generator as _ts_generator } from "tslib"; diff --git a/packages/swc-helpers/esm/_ts_metadata.js b/packages/swc-helpers/esm/_ts_metadata.js new file mode 100644 index 000000000000..747f5930ab65 --- /dev/null +++ b/packages/swc-helpers/esm/_ts_metadata.js @@ -0,0 +1 @@ +export { __metadata as _, __metadata as _ts_metadata } from "tslib"; diff --git a/packages/swc-helpers/esm/_ts_param.js b/packages/swc-helpers/esm/_ts_param.js new file mode 100644 index 000000000000..652469f2ba69 --- /dev/null +++ b/packages/swc-helpers/esm/_ts_param.js @@ -0,0 +1 @@ +export { __param as _, __param as _ts_param } from "tslib"; diff --git a/packages/swc-helpers/esm/_ts_values.js b/packages/swc-helpers/esm/_ts_values.js new file mode 100644 index 000000000000..c1a68ee39081 --- /dev/null +++ b/packages/swc-helpers/esm/_ts_values.js @@ -0,0 +1 @@ +export { __values as _, __values as _ts_values } from "tslib"; diff --git a/packages/swc-helpers/src/_type_of.mjs b/packages/swc-helpers/esm/_type_of.js similarity index 69% rename from packages/swc-helpers/src/_type_of.mjs rename to packages/swc-helpers/esm/_type_of.js index 7e320fff8d0c..d868a350cda4 100644 --- a/packages/swc-helpers/src/_type_of.mjs +++ b/packages/swc-helpers/esm/_type_of.js @@ -1,4 +1,6 @@ -export default function _type_of(obj) { +export function _type_of(obj) { "@swc/helpers - typeof"; + return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } +export { _type_of as _ }; diff --git a/packages/swc-helpers/src/_unsupported_iterable_to_array.mjs b/packages/swc-helpers/esm/_unsupported_iterable_to_array.js similarity index 69% rename from packages/swc-helpers/src/_unsupported_iterable_to_array.mjs rename to packages/swc-helpers/esm/_unsupported_iterable_to_array.js index d409f5e5bc4a..d56d71fbf80f 100644 --- a/packages/swc-helpers/src/_unsupported_iterable_to_array.mjs +++ b/packages/swc-helpers/esm/_unsupported_iterable_to_array.js @@ -1,9 +1,13 @@ -import _array_like_to_array from "./_array_like_to_array.mjs"; -export default function _unsupported_iterable_to_array(o, minLen) { +import { _array_like_to_array } from "./_array_like_to_array.js"; + +export function _unsupported_iterable_to_array(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen); } +export { _unsupported_iterable_to_array as _ }; diff --git a/packages/swc-helpers/src/_update.mjs b/packages/swc-helpers/esm/_update.js similarity index 55% rename from packages/swc-helpers/src/_update.mjs rename to packages/swc-helpers/esm/_update.js index 08158e271271..a5369701cfa4 100644 --- a/packages/swc-helpers/src/_update.mjs +++ b/packages/swc-helpers/esm/_update.js @@ -1,6 +1,7 @@ -import _get from "./_get.mjs"; -import _set from "./_set.mjs"; -export default function _update(target, property, receiver, isStrict) { +import { _get } from "./_get.js"; +import { _set } from "./_set.js"; + +export function _update(target, property, receiver, isStrict) { return { get _() { return _get(target, property, receiver); @@ -10,3 +11,4 @@ export default function _update(target, property, receiver, isStrict) { } }; } +export { _update as _ }; diff --git a/packages/swc-helpers/esm/_wrap_async_generator.js b/packages/swc-helpers/esm/_wrap_async_generator.js new file mode 100644 index 000000000000..752b244a3a0f --- /dev/null +++ b/packages/swc-helpers/esm/_wrap_async_generator.js @@ -0,0 +1,8 @@ +import { _async_generator } from "./_async_generator.js"; + +export function _wrap_async_generator(fn) { + return function() { + return new _async_generator(fn.apply(this, arguments)); + }; +} +export { _wrap_async_generator as _ }; diff --git a/packages/swc-helpers/esm/_wrap_native_super.js b/packages/swc-helpers/esm/_wrap_native_super.js new file mode 100644 index 000000000000..572ddfa05cb4 --- /dev/null +++ b/packages/swc-helpers/esm/_wrap_native_super.js @@ -0,0 +1,26 @@ +import { _construct } from "./_construct.js"; +import { _get_prototype_of } from "./_get_prototype_of.js"; +import { _is_native_function } from "./_is_native_function.js"; +import { _set_prototype_of } from "./_set_prototype_of.js"; + +export function _wrap_native_super(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + _wrap_native_super = function(Class) { + if (Class === null || !_is_native_function(Class)) return Class; + if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function"); + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + _cache.set(Class, Wrapper); + } + + function Wrapper() { + return _construct(Class, arguments, _get_prototype_of(this).constructor); + } + Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); + + return _set_prototype_of(Wrapper, Class); + }; + + return _wrap_native_super(Class); +} +export { _wrap_native_super as _ }; diff --git a/packages/swc-helpers/esm/_write_only_error.js b/packages/swc-helpers/esm/_write_only_error.js new file mode 100644 index 000000000000..36dac06bb9c9 --- /dev/null +++ b/packages/swc-helpers/esm/_write_only_error.js @@ -0,0 +1,4 @@ +export function _write_only_error(name) { + throw new TypeError("\"" + name + "\" is write-only"); +} +export { _write_only_error as _ }; diff --git a/packages/swc-helpers/esm/index.js b/packages/swc-helpers/esm/index.js new file mode 100644 index 000000000000..b31801b974ef --- /dev/null +++ b/packages/swc-helpers/esm/index.js @@ -0,0 +1,98 @@ +/* This file is automatically generated and should not be manually edited. */ +/* To modify this file, please run the `npm run build` command instead. */ + +export { _apply_decorated_descriptor } from "./_apply_decorated_descriptor.js"; +export { _array_like_to_array } from "./_array_like_to_array.js"; +export { _array_with_holes } from "./_array_with_holes.js"; +export { _array_without_holes } from "./_array_without_holes.js"; +export { _assert_this_initialized } from "./_assert_this_initialized.js"; +export { _async_generator } from "./_async_generator.js"; +export { _async_generator_delegate } from "./_async_generator_delegate.js"; +export { _async_iterator } from "./_async_iterator.js"; +export { _async_to_generator } from "./_async_to_generator.js"; +export { _await_async_generator } from "./_await_async_generator.js"; +export { _await_value } from "./_await_value.js"; +export { _check_private_redeclaration } from "./_check_private_redeclaration.js"; +export { _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js"; +export { _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js"; +export { _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js"; +export { _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js"; +export { _class_call_check } from "./_class_call_check.js"; +export { _class_check_private_static_access } from "./_class_check_private_static_access.js"; +export { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js"; +export { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js"; +export { _class_name_tdz_error } from "./_class_name_tdz_error.js"; +export { _class_private_field_destructure } from "./_class_private_field_destructure.js"; +export { _class_private_field_get } from "./_class_private_field_get.js"; +export { _class_private_field_init } from "./_class_private_field_init.js"; +export { _class_private_field_loose_base } from "./_class_private_field_loose_base.js"; +export { _class_private_field_loose_key } from "./_class_private_field_loose_key.js"; +export { _class_private_field_set } from "./_class_private_field_set.js"; +export { _class_private_field_update } from "./_class_private_field_update.js"; +export { _class_private_method_get } from "./_class_private_method_get.js"; +export { _class_private_method_init } from "./_class_private_method_init.js"; +export { _class_private_method_set } from "./_class_private_method_set.js"; +export { _class_static_private_field_destructure } from "./_class_static_private_field_destructure.js"; +export { _class_static_private_field_spec_get } from "./_class_static_private_field_spec_get.js"; +export { _class_static_private_field_spec_set } from "./_class_static_private_field_spec_set.js"; +export { _class_static_private_field_update } from "./_class_static_private_field_update.js"; +export { _class_static_private_method_get } from "./_class_static_private_method_get.js"; +export { _construct } from "./_construct.js"; +export { _create_class } from "./_create_class.js"; +export { _create_for_of_iterator_helper_loose } from "./_create_for_of_iterator_helper_loose.js"; +export { _create_super } from "./_create_super.js"; +export { _decorate } from "./_decorate.js"; +export { _defaults } from "./_defaults.js"; +export { _define_enumerable_properties } from "./_define_enumerable_properties.js"; +export { _define_property } from "./_define_property.js"; +export { _export_star } from "./_export_star.js"; +export { _extends } from "./_extends.js"; +export { _get } from "./_get.js"; +export { _get_prototype_of } from "./_get_prototype_of.js"; +export { _inherits } from "./_inherits.js"; +export { _inherits_loose } from "./_inherits_loose.js"; +export { _initializer_define_property } from "./_initializer_define_property.js"; +export { _initializer_warning_helper } from "./_initializer_warning_helper.js"; +export { _instanceof } from "./_instanceof.js"; +export { _interop_require_default } from "./_interop_require_default.js"; +export { _interop_require_wildcard } from "./_interop_require_wildcard.js"; +export { _is_native_function } from "./_is_native_function.js"; +export { _is_native_reflect_construct } from "./_is_native_reflect_construct.js"; +export { _iterable_to_array } from "./_iterable_to_array.js"; +export { _iterable_to_array_limit } from "./_iterable_to_array_limit.js"; +export { _iterable_to_array_limit_loose } from "./_iterable_to_array_limit_loose.js"; +export { _jsx } from "./_jsx.js"; +export { _new_arrow_check } from "./_new_arrow_check.js"; +export { _non_iterable_rest } from "./_non_iterable_rest.js"; +export { _non_iterable_spread } from "./_non_iterable_spread.js"; +export { _object_destructuring_empty } from "./_object_destructuring_empty.js"; +export { _object_spread } from "./_object_spread.js"; +export { _object_spread_props } from "./_object_spread_props.js"; +export { _object_without_properties } from "./_object_without_properties.js"; +export { _object_without_properties_loose } from "./_object_without_properties_loose.js"; +export { _possible_constructor_return } from "./_possible_constructor_return.js"; +export { _read_only_error } from "./_read_only_error.js"; +export { _set } from "./_set.js"; +export { _set_prototype_of } from "./_set_prototype_of.js"; +export { _skip_first_generator_next } from "./_skip_first_generator_next.js"; +export { _sliced_to_array } from "./_sliced_to_array.js"; +export { _sliced_to_array_loose } from "./_sliced_to_array_loose.js"; +export { _super_prop_base } from "./_super_prop_base.js"; +export { _tagged_template_literal } from "./_tagged_template_literal.js"; +export { _tagged_template_literal_loose } from "./_tagged_template_literal_loose.js"; +export { _throw } from "./_throw.js"; +export { _to_array } from "./_to_array.js"; +export { _to_consumable_array } from "./_to_consumable_array.js"; +export { _to_primitive } from "./_to_primitive.js"; +export { _to_property_key } from "./_to_property_key.js"; +export { _ts_decorate } from "./_ts_decorate.js"; +export { _ts_generator } from "./_ts_generator.js"; +export { _ts_metadata } from "./_ts_metadata.js"; +export { _ts_param } from "./_ts_param.js"; +export { _ts_values } from "./_ts_values.js"; +export { _type_of } from "./_type_of.js"; +export { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js"; +export { _update } from "./_update.js"; +export { _wrap_async_generator } from "./_wrap_async_generator.js"; +export { _wrap_native_super } from "./_wrap_native_super.js"; +export { _write_only_error } from "./_write_only_error.js"; diff --git a/packages/swc-helpers/package.json b/packages/swc-helpers/package.json index 6d94d17ae6cc..0de9f41c7048 100644 --- a/packages/swc-helpers/package.json +++ b/packages/swc-helpers/package.json @@ -2,13 +2,12 @@ "name": "@swc/helpers", "version": "0.4.14", "description": "External helpers for the swc project.", - "esnext": "src/index.mjs", - "module": "src/index.mjs", - "main": "lib/index.js", + "module": "esm/index.js", + "main": "cjs/index.cjs", "sideEffects": false, "scripts": { - "build": "swc -V && bash ./scripts/build.sh", - "prepublishOnly": "bash ./scripts/build.sh" + "build": "zx ./scripts/build.js", + "prepack": "zx ./scripts/build.js" }, "repository": { "type": "git", @@ -28,11 +27,411 @@ "url": "https://github.com/swc-project/swc/issues" }, "homepage": "https://swc.rs", + "type": "module", "devDependencies": { - "@swc/cli": "^0.1.36", - "@swc/core": "=1.3.3" + "@ast-grep/napi": "^0.3.1", + "dprint": "^0.35.3", + "magic-string": "^0.30.0", + "zx": "^7.2.1" }, "dependencies": { "tslib": "^2.4.0" + }, + "exports": { + "./package.json": "./package.json", + "./esm/*": "./esm/*", + "./cjs/*": "./cjs/*", + ".": { + "import": "./esm/index.js", + "default": "./cjs/index.cjs" + }, + "./_": { + "import": "./esm/index.js", + "default": "./cjs/index.cjs" + }, + "./_/_apply_decorated_descriptor": { + "import": "./esm/_apply_decorated_descriptor.js", + "default": "./cjs/_apply_decorated_descriptor.cjs" + }, + "./_/_array_like_to_array": { + "import": "./esm/_array_like_to_array.js", + "default": "./cjs/_array_like_to_array.cjs" + }, + "./_/_array_with_holes": { + "import": "./esm/_array_with_holes.js", + "default": "./cjs/_array_with_holes.cjs" + }, + "./_/_array_without_holes": { + "import": "./esm/_array_without_holes.js", + "default": "./cjs/_array_without_holes.cjs" + }, + "./_/_assert_this_initialized": { + "import": "./esm/_assert_this_initialized.js", + "default": "./cjs/_assert_this_initialized.cjs" + }, + "./_/_async_generator": { + "import": "./esm/_async_generator.js", + "default": "./cjs/_async_generator.cjs" + }, + "./_/_async_generator_delegate": { + "import": "./esm/_async_generator_delegate.js", + "default": "./cjs/_async_generator_delegate.cjs" + }, + "./_/_async_iterator": { + "import": "./esm/_async_iterator.js", + "default": "./cjs/_async_iterator.cjs" + }, + "./_/_async_to_generator": { + "import": "./esm/_async_to_generator.js", + "default": "./cjs/_async_to_generator.cjs" + }, + "./_/_await_async_generator": { + "import": "./esm/_await_async_generator.js", + "default": "./cjs/_await_async_generator.cjs" + }, + "./_/_await_value": { + "import": "./esm/_await_value.js", + "default": "./cjs/_await_value.cjs" + }, + "./_/_check_private_redeclaration": { + "import": "./esm/_check_private_redeclaration.js", + "default": "./cjs/_check_private_redeclaration.cjs" + }, + "./_/_class_apply_descriptor_destructure": { + "import": "./esm/_class_apply_descriptor_destructure.js", + "default": "./cjs/_class_apply_descriptor_destructure.cjs" + }, + "./_/_class_apply_descriptor_get": { + "import": "./esm/_class_apply_descriptor_get.js", + "default": "./cjs/_class_apply_descriptor_get.cjs" + }, + "./_/_class_apply_descriptor_set": { + "import": "./esm/_class_apply_descriptor_set.js", + "default": "./cjs/_class_apply_descriptor_set.cjs" + }, + "./_/_class_apply_descriptor_update": { + "import": "./esm/_class_apply_descriptor_update.js", + "default": "./cjs/_class_apply_descriptor_update.cjs" + }, + "./_/_class_call_check": { + "import": "./esm/_class_call_check.js", + "default": "./cjs/_class_call_check.cjs" + }, + "./_/_class_check_private_static_access": { + "import": "./esm/_class_check_private_static_access.js", + "default": "./cjs/_class_check_private_static_access.cjs" + }, + "./_/_class_check_private_static_field_descriptor": { + "import": "./esm/_class_check_private_static_field_descriptor.js", + "default": "./cjs/_class_check_private_static_field_descriptor.cjs" + }, + "./_/_class_extract_field_descriptor": { + "import": "./esm/_class_extract_field_descriptor.js", + "default": "./cjs/_class_extract_field_descriptor.cjs" + }, + "./_/_class_name_tdz_error": { + "import": "./esm/_class_name_tdz_error.js", + "default": "./cjs/_class_name_tdz_error.cjs" + }, + "./_/_class_private_field_destructure": { + "import": "./esm/_class_private_field_destructure.js", + "default": "./cjs/_class_private_field_destructure.cjs" + }, + "./_/_class_private_field_get": { + "import": "./esm/_class_private_field_get.js", + "default": "./cjs/_class_private_field_get.cjs" + }, + "./_/_class_private_field_init": { + "import": "./esm/_class_private_field_init.js", + "default": "./cjs/_class_private_field_init.cjs" + }, + "./_/_class_private_field_loose_base": { + "import": "./esm/_class_private_field_loose_base.js", + "default": "./cjs/_class_private_field_loose_base.cjs" + }, + "./_/_class_private_field_loose_key": { + "import": "./esm/_class_private_field_loose_key.js", + "default": "./cjs/_class_private_field_loose_key.cjs" + }, + "./_/_class_private_field_set": { + "import": "./esm/_class_private_field_set.js", + "default": "./cjs/_class_private_field_set.cjs" + }, + "./_/_class_private_field_update": { + "import": "./esm/_class_private_field_update.js", + "default": "./cjs/_class_private_field_update.cjs" + }, + "./_/_class_private_method_get": { + "import": "./esm/_class_private_method_get.js", + "default": "./cjs/_class_private_method_get.cjs" + }, + "./_/_class_private_method_init": { + "import": "./esm/_class_private_method_init.js", + "default": "./cjs/_class_private_method_init.cjs" + }, + "./_/_class_private_method_set": { + "import": "./esm/_class_private_method_set.js", + "default": "./cjs/_class_private_method_set.cjs" + }, + "./_/_class_static_private_field_destructure": { + "import": "./esm/_class_static_private_field_destructure.js", + "default": "./cjs/_class_static_private_field_destructure.cjs" + }, + "./_/_class_static_private_field_spec_get": { + "import": "./esm/_class_static_private_field_spec_get.js", + "default": "./cjs/_class_static_private_field_spec_get.cjs" + }, + "./_/_class_static_private_field_spec_set": { + "import": "./esm/_class_static_private_field_spec_set.js", + "default": "./cjs/_class_static_private_field_spec_set.cjs" + }, + "./_/_class_static_private_field_update": { + "import": "./esm/_class_static_private_field_update.js", + "default": "./cjs/_class_static_private_field_update.cjs" + }, + "./_/_class_static_private_method_get": { + "import": "./esm/_class_static_private_method_get.js", + "default": "./cjs/_class_static_private_method_get.cjs" + }, + "./_/_construct": { + "import": "./esm/_construct.js", + "default": "./cjs/_construct.cjs" + }, + "./_/_create_class": { + "import": "./esm/_create_class.js", + "default": "./cjs/_create_class.cjs" + }, + "./_/_create_for_of_iterator_helper_loose": { + "import": "./esm/_create_for_of_iterator_helper_loose.js", + "default": "./cjs/_create_for_of_iterator_helper_loose.cjs" + }, + "./_/_create_super": { + "import": "./esm/_create_super.js", + "default": "./cjs/_create_super.cjs" + }, + "./_/_decorate": { + "import": "./esm/_decorate.js", + "default": "./cjs/_decorate.cjs" + }, + "./_/_defaults": { + "import": "./esm/_defaults.js", + "default": "./cjs/_defaults.cjs" + }, + "./_/_define_enumerable_properties": { + "import": "./esm/_define_enumerable_properties.js", + "default": "./cjs/_define_enumerable_properties.cjs" + }, + "./_/_define_property": { + "import": "./esm/_define_property.js", + "default": "./cjs/_define_property.cjs" + }, + "./_/_export_star": { + "import": "./esm/_export_star.js", + "default": "./cjs/_export_star.cjs" + }, + "./_/_extends": { + "import": "./esm/_extends.js", + "default": "./cjs/_extends.cjs" + }, + "./_/_get": { + "import": "./esm/_get.js", + "default": "./cjs/_get.cjs" + }, + "./_/_get_prototype_of": { + "import": "./esm/_get_prototype_of.js", + "default": "./cjs/_get_prototype_of.cjs" + }, + "./_/_inherits": { + "import": "./esm/_inherits.js", + "default": "./cjs/_inherits.cjs" + }, + "./_/_inherits_loose": { + "import": "./esm/_inherits_loose.js", + "default": "./cjs/_inherits_loose.cjs" + }, + "./_/_initializer_define_property": { + "import": "./esm/_initializer_define_property.js", + "default": "./cjs/_initializer_define_property.cjs" + }, + "./_/_initializer_warning_helper": { + "import": "./esm/_initializer_warning_helper.js", + "default": "./cjs/_initializer_warning_helper.cjs" + }, + "./_/_instanceof": { + "import": "./esm/_instanceof.js", + "default": "./cjs/_instanceof.cjs" + }, + "./_/_interop_require_default": { + "import": "./esm/_interop_require_default.js", + "default": "./cjs/_interop_require_default.cjs" + }, + "./_/_interop_require_wildcard": { + "import": "./esm/_interop_require_wildcard.js", + "default": "./cjs/_interop_require_wildcard.cjs" + }, + "./_/_is_native_function": { + "import": "./esm/_is_native_function.js", + "default": "./cjs/_is_native_function.cjs" + }, + "./_/_is_native_reflect_construct": { + "import": "./esm/_is_native_reflect_construct.js", + "default": "./cjs/_is_native_reflect_construct.cjs" + }, + "./_/_iterable_to_array": { + "import": "./esm/_iterable_to_array.js", + "default": "./cjs/_iterable_to_array.cjs" + }, + "./_/_iterable_to_array_limit": { + "import": "./esm/_iterable_to_array_limit.js", + "default": "./cjs/_iterable_to_array_limit.cjs" + }, + "./_/_iterable_to_array_limit_loose": { + "import": "./esm/_iterable_to_array_limit_loose.js", + "default": "./cjs/_iterable_to_array_limit_loose.cjs" + }, + "./_/_jsx": { + "import": "./esm/_jsx.js", + "default": "./cjs/_jsx.cjs" + }, + "./_/_new_arrow_check": { + "import": "./esm/_new_arrow_check.js", + "default": "./cjs/_new_arrow_check.cjs" + }, + "./_/_non_iterable_rest": { + "import": "./esm/_non_iterable_rest.js", + "default": "./cjs/_non_iterable_rest.cjs" + }, + "./_/_non_iterable_spread": { + "import": "./esm/_non_iterable_spread.js", + "default": "./cjs/_non_iterable_spread.cjs" + }, + "./_/_object_destructuring_empty": { + "import": "./esm/_object_destructuring_empty.js", + "default": "./cjs/_object_destructuring_empty.cjs" + }, + "./_/_object_spread": { + "import": "./esm/_object_spread.js", + "default": "./cjs/_object_spread.cjs" + }, + "./_/_object_spread_props": { + "import": "./esm/_object_spread_props.js", + "default": "./cjs/_object_spread_props.cjs" + }, + "./_/_object_without_properties": { + "import": "./esm/_object_without_properties.js", + "default": "./cjs/_object_without_properties.cjs" + }, + "./_/_object_without_properties_loose": { + "import": "./esm/_object_without_properties_loose.js", + "default": "./cjs/_object_without_properties_loose.cjs" + }, + "./_/_possible_constructor_return": { + "import": "./esm/_possible_constructor_return.js", + "default": "./cjs/_possible_constructor_return.cjs" + }, + "./_/_read_only_error": { + "import": "./esm/_read_only_error.js", + "default": "./cjs/_read_only_error.cjs" + }, + "./_/_set": { + "import": "./esm/_set.js", + "default": "./cjs/_set.cjs" + }, + "./_/_set_prototype_of": { + "import": "./esm/_set_prototype_of.js", + "default": "./cjs/_set_prototype_of.cjs" + }, + "./_/_skip_first_generator_next": { + "import": "./esm/_skip_first_generator_next.js", + "default": "./cjs/_skip_first_generator_next.cjs" + }, + "./_/_sliced_to_array": { + "import": "./esm/_sliced_to_array.js", + "default": "./cjs/_sliced_to_array.cjs" + }, + "./_/_sliced_to_array_loose": { + "import": "./esm/_sliced_to_array_loose.js", + "default": "./cjs/_sliced_to_array_loose.cjs" + }, + "./_/_super_prop_base": { + "import": "./esm/_super_prop_base.js", + "default": "./cjs/_super_prop_base.cjs" + }, + "./_/_tagged_template_literal": { + "import": "./esm/_tagged_template_literal.js", + "default": "./cjs/_tagged_template_literal.cjs" + }, + "./_/_tagged_template_literal_loose": { + "import": "./esm/_tagged_template_literal_loose.js", + "default": "./cjs/_tagged_template_literal_loose.cjs" + }, + "./_/_throw": { + "import": "./esm/_throw.js", + "default": "./cjs/_throw.cjs" + }, + "./_/_to_array": { + "import": "./esm/_to_array.js", + "default": "./cjs/_to_array.cjs" + }, + "./_/_to_consumable_array": { + "import": "./esm/_to_consumable_array.js", + "default": "./cjs/_to_consumable_array.cjs" + }, + "./_/_to_primitive": { + "import": "./esm/_to_primitive.js", + "default": "./cjs/_to_primitive.cjs" + }, + "./_/_to_property_key": { + "import": "./esm/_to_property_key.js", + "default": "./cjs/_to_property_key.cjs" + }, + "./_/_ts_decorate": { + "import": "./esm/_ts_decorate.js", + "default": "./cjs/_ts_decorate.cjs" + }, + "./_/_ts_generator": { + "import": "./esm/_ts_generator.js", + "default": "./cjs/_ts_generator.cjs" + }, + "./_/_ts_metadata": { + "import": "./esm/_ts_metadata.js", + "default": "./cjs/_ts_metadata.cjs" + }, + "./_/_ts_param": { + "import": "./esm/_ts_param.js", + "default": "./cjs/_ts_param.cjs" + }, + "./_/_ts_values": { + "import": "./esm/_ts_values.js", + "default": "./cjs/_ts_values.cjs" + }, + "./_/_type_of": { + "import": "./esm/_type_of.js", + "default": "./cjs/_type_of.cjs" + }, + "./_/_unsupported_iterable_to_array": { + "import": "./esm/_unsupported_iterable_to_array.js", + "default": "./cjs/_unsupported_iterable_to_array.cjs" + }, + "./_/_update": { + "import": "./esm/_update.js", + "default": "./cjs/_update.cjs" + }, + "./_/_wrap_async_generator": { + "import": "./esm/_wrap_async_generator.js", + "default": "./cjs/_wrap_async_generator.cjs" + }, + "./_/_wrap_native_super": { + "import": "./esm/_wrap_native_super.js", + "default": "./cjs/_wrap_native_super.cjs" + }, + "./_/_write_only_error": { + "import": "./esm/_write_only_error.js", + "default": "./cjs/_write_only_error.cjs" + }, + "./_/index": { + "import": "./esm/index.js", + "default": "./cjs/index.cjs" + } } } diff --git a/packages/swc-helpers/scripts/.dprint.json b/packages/swc-helpers/scripts/.dprint.json new file mode 100644 index 000000000000..7bfd3d58d7a5 --- /dev/null +++ b/packages/swc-helpers/scripts/.dprint.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://plugins.dprint.dev/dprint/dprint-plugin-typescript/latest/schema.json", + "typescript": { + "indentWidth": 4, + "lineWidth": 120, + "useBraces": "always", + "trailingCommas": "onlyMultiLine", + "binaryExpression.linePerExpression": true, + "memberExpression.linePerExpression": true + }, + "includes": [ + "*.js" + ], + "excludes": [ + "**/node_modules" + ], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.84.0.wasm" + ] +} diff --git a/packages/swc-helpers/scripts/ast_grep.js b/packages/swc-helpers/scripts/ast_grep.js new file mode 100644 index 000000000000..b9b326814675 --- /dev/null +++ b/packages/swc-helpers/scripts/ast_grep.js @@ -0,0 +1,279 @@ +import { parseFiles } from "@ast-grep/napi"; +import MagicString from "magic-string"; +import { chalk, fs, path } from "zx"; +import { errors } from "./errors.js"; +import { root } from "./utils.js"; + +/** + * @typedef {import("@ast-grep/napi").SgNode} SgNode + */ + +const export_lentgh = "export".length; + +export function ast_grep() { + const task_queue = []; + + const task = parseFiles([root("esm")], (err, tree) => { + const filename = path.basename(tree.filename(), ".js"); + if (filename === "index") { + return; + } + + const source = new MagicString(tree.root().text()); + source.prepend(`"use strict";\n\n`); + + if (filename.startsWith("_ts")) { + const match = tree.root().find(`export { $NAME as _, $NAME as $ALIAS } from "tslib"`); + if (match) { + const name = match.getMatch("NAME").text(); + const alias = match.getMatch("ALIAS").text(); + + if (alias !== filename) { + report_ts_mismatch(tree.filename(), match); + } + + const range = match.range(); + + source.update( + range.start.index, + range.end.index, + `exports._ = exports.${alias} = require("tslib").${name};`, + ); + task_queue.push( + fs.writeFile(root("cjs", `${filename}.cjs`), source.toString(), { + encoding: "utf-8", + }), + ); + } else { + report_noexport(tree.filename()); + } + return; + } + + // rewrite export named function + const match = tree.root().find({ + rule: { + kind: "export_statement", + pattern: "export function $FUNC($$$){$$$}", + }, + }); + + if (match) { + const func = match.getMatch("FUNC"); + const func_name = func.text(); + if (func_name !== filename) { + report_export_mismatch(tree.filename(), match); + } + + const export_start = match.range().start.index; + const export_end = export_start + export_lentgh; + source.update( + export_start, + export_end, + `exports._ = exports.${func_name} = ${func_name};`, + ); + + match + .findAll({ + rule: { + pattern: func_name, + kind: "identifier", + inside: { kind: "assignment_expression", field: "left" }, + }, + }) + .forEach((match) => { + const range = match.range(); + + source.prependLeft(range.start.index, `exports._ = exports.${func_name} = `); + }); + + const export_shortname = `export { ${func_name} as _}`; + + const export_alias = tree.root().find(export_shortname); + + if (!export_alias) { + task_queue.push( + fs.appendFile(tree.filename(), export_shortname, "utf-8"), + ); + } else { + const range = export_alias.range(); + source.remove(range.start.index, range.end.index); + } + } else { + report_noexport(tree.filename(tree.filename())); + } + + // rewrite import + tree + .root() + .findAll({ rule: { pattern: `import { $BINDING } from "$SOURCE"` } }) + .forEach((match) => { + const import_binding = match.getMatch("BINDING").text(); + const import_source = match.getMatch("SOURCE").text(); + + const import_basename = path.basename(import_source, ".js"); + + if (import_binding !== import_basename) { + report_import_mismatch(tree.filename(), match); + } + + const range = match.range(); + + source.update( + range.start.index, + range.end.index, + `var ${import_binding} = require("./${import_binding}.cjs");`, + ); + + tree + .root() + .findAll({ + rule: { + pattern: import_binding, + kind: "identifier", + inside: { + not: { + kind: "import_specifier", + }, + }, + }, + }) + .forEach((match) => { + const range = match.range(); + const ref_name = match.text(); + + source.update( + range.start.index, + range.end.index, + `${ref_name}._`, + ); + }); + }); + + task_queue.push( + fs.writeFile(root("cjs", `${filename}.cjs`), source.toString(), { + encoding: "utf-8", + }), + ); + }); + + task_queue.push(task); + + return task_queue; +} + +/** + * @param {string} filename + * @param {SgNode} match + */ +function report_ts_mismatch(filename, match) { + const range = match.getMatch("ALIAS").range(); + + errors.push( + [ + `${chalk.bold.red("error")}: mismatch exported function name.`, + "", + `${chalk.blue("-->")} ${filename}:${match.range().start.line + 1}`, + "", + match.text(), + chalk.red( + [ + " ".repeat(range.start.column), + "^".repeat(range.end.column - range.start.column), + ] + .join(""), + ), + `${ + chalk.bold( + "note:", + ) + } The exported name should be the same as the filename.`, + "", + ] + .join("\n"), + ); +} + +/** + * @param {string} filename + * @param {SgNode} match + */ +function report_export_mismatch(filename, match) { + const func = match.getMatch("FUNC"); + const func_range = func.range(); + + const text = match.text().split("\n"); + const offset = func_range.start.line - match.range().start.line; + + text.splice( + offset + 1, + text.length, + chalk.red( + [ + " ".repeat(func_range.start.column), + "^".repeat(func_range.end.column - func_range.start.column), + ] + .join(""), + ), + ); + + errors.push( + [ + `${chalk.bold.red("error")}: mismatch exported function name.`, + "", + `${chalk.blue("-->")} ${filename}:${func_range.start.line + 1}:${func_range.start.column + 1}`, + "", + ...text, + "", + `${ + chalk.bold( + "note:", + ) + } The exported name should be the same as the filename.`, + "", + ] + .join("\n"), + ); +} + +/** + * @param {string} filename + * @param {SgNode} match + */ +function report_import_mismatch(filename, match) { + const binding_range = match.getMatch("BINDING").range(); + const source_range = match.getMatch("SOURCE").range(); + + errors.push( + [ + `${chalk.bold.red("error")}: mismatch imported binding name.`, + "", + `${chalk.blue("-->")} ${filename}:${match.range().start.line + 1}`, + "", + match.text(), + [ + " ".repeat(binding_range.start.column), + chalk.red("^".repeat(binding_range.end.column - binding_range.start.column)), + " ".repeat(source_range.start.column - binding_range.end.column), + chalk.blue("-".repeat(source_range.end.column - source_range.start.column)), + ] + .join(""), + `${ + chalk.bold( + "note:", + ) + } The imported binding name should be the same as the import source basename.`, + "", + ] + .join("\n"), + ); +} + +/** + * @param {string} filename + */ +function report_noexport(filename) { + errors.push( + [`${chalk.bold.red("error")}: exported name not found`, `${chalk.blue("-->")} ${filename}`].join("\n"), + ); +} diff --git a/packages/swc-helpers/scripts/build.js b/packages/swc-helpers/scripts/build.js new file mode 100644 index 000000000000..772046a06464 --- /dev/null +++ b/packages/swc-helpers/scripts/build.js @@ -0,0 +1,101 @@ +#!/usr/bin/env zx + +import { $, fs, glob } from "zx"; +import { ast_grep } from "./ast_grep.js"; +import { errors } from "./errors.js"; +import { root } from "./utils.js"; + +// clear generated content +await Promise.all([fs.remove(root("cjs")), fs.remove(root("_"))]); + +let modules = await glob("*.js", { cwd: root("esm") }); + +const task_queue = []; + +const NO_MODIFY = [ + "/* This file is automatically generated and should not be manually edited. */", + "/* To modify this file, please run the `npm run build` command instead. */", +]; + +// generate index.js +const indexESM = [...NO_MODIFY, ""]; + +const indexCJS = [`"use strict";`, "", ...NO_MODIFY, ""]; + +const cjs_export_list = []; +const cjs_module_lexer = []; + +const main_package_json = fs.readJSONSync(root("package.json")); + +main_package_json.exports = { + "./package.json": "./package.json", + "./esm/*": "./esm/*", + "./cjs/*": "./cjs/*", + ".": { import: "./esm/index.js", default: "./cjs/index.cjs" }, + "./_": { import: "./esm/index.js", default: "./cjs/index.cjs" }, +}; + +modules.forEach((p) => { + const importBinding = p.slice(0, -3); + + main_package_json.exports[`./_/${importBinding}`] = { + import: `./esm/${importBinding}.js`, + default: `./cjs/${importBinding}.cjs`, + }; + + const alias_package = { + main: `../../cjs/${importBinding}.cjs`, + module: `../../esm/${importBinding}.js`, + }; + task_queue.push( + fs.outputJSON(root("_", importBinding, "package.json"), alias_package, { + encoding: "utf-8", + spaces: 4, + }), + ); + + if (importBinding === "index") { + return; + } + + indexESM.push(`export { ${importBinding} } from "./${importBinding}.js";`); + + cjs_module_lexer.push(`${importBinding}: null,`); + cjs_export_list.push(`get ${importBinding}() { + return require("./${importBinding}.cjs")._; + },`); +}); + +indexCJS.push( + `module.exports = {`, + "/* @Annotate start: the CommonJS named exports for ESM import in node */", + ...cjs_module_lexer, + "/* @Annotate end */", + ...cjs_export_list, + `};`, +); + +task_queue.push( + fs.outputJSON(root("package.json"), main_package_json, { spaces: 4 }), + fs.outputFile(root("esm", "index.js"), indexESM.join("\n") + "\n", { + encoding: "utf-8", + }), + fs.outputFile(root("cjs", "index.cjs"), indexCJS.join("\n") + "\n", { + encoding: "utf-8", + }), +); + +task_queue.push(...ast_grep()); + +await Promise.all(task_queue); + +if (errors.length > 0) { + errors.forEach((e) => { + console.error(e); + }); + process.exitCode = 1; +} else { + $.cwd = root("."); + await $`dprint fmt`; + await $`dprint fmt "scripts/*.js" -c scripts/.dprint.json`; +} diff --git a/packages/swc-helpers/scripts/build.sh b/packages/swc-helpers/scripts/build.sh deleted file mode 100755 index d99378db38dd..000000000000 --- a/packages/swc-helpers/scripts/build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#/usr/bin/env bash -set -eux - -npx swc src -d lib -ls -alR ./lib - -# fsync - -if [[ "$OSTYPE" == 'darwin'* ]]; then - sed -i '' 's/.mjs/.js/g' ./lib/*.js -else - sed -i 's/.mjs/.js/g' ./lib/*.js -fi \ No newline at end of file diff --git a/packages/swc-helpers/scripts/errors.js b/packages/swc-helpers/scripts/errors.js new file mode 100644 index 000000000000..b5b3c15937ed --- /dev/null +++ b/packages/swc-helpers/scripts/errors.js @@ -0,0 +1 @@ +export const errors = []; diff --git a/packages/swc-helpers/scripts/gen.sh b/packages/swc-helpers/scripts/gen.sh deleted file mode 100755 index 6ba97eea89a3..000000000000 --- a/packages/swc-helpers/scripts/gen.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -eu - -./scripts/generator.sh > src/index.js -npm build diff --git a/packages/swc-helpers/scripts/generator.sh b/packages/swc-helpers/scripts/generator.sh deleted file mode 100755 index 1eab7ab8e071..000000000000 --- a/packages/swc-helpers/scripts/generator.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -set -eu - -files=$(ls ./src/_*.js | xargs -I "{}" basename {} .js) -lines=$(echo $files | tr " " "\n") - -content=''; - -for src in $lines; do - name=$(echo $src | perl -pe 's/(^|_)./uc($&)/ge;s/_//g') - if [ $name = "classNameTdzError" ]; then - name='classNameTDZError'; - fi - if [ $name = "typeof" ]; then - name='_typeof'; - fi - if [ $name = "instanceof" ]; then - name='_instanceof'; - fi - if [ $name = "throw" ]; then - name='_throw'; - fi - echo "export { default as $name } from './$src.mjs';" -done \ No newline at end of file diff --git a/packages/swc-helpers/scripts/utils.js b/packages/swc-helpers/scripts/utils.js new file mode 100644 index 000000000000..479b100ce30b --- /dev/null +++ b/packages/swc-helpers/scripts/utils.js @@ -0,0 +1,3 @@ +export function root(...p) { + return path.resolve(__dirname, "..", ...p); +} diff --git a/packages/swc-helpers/src/_array_with_holes.mjs b/packages/swc-helpers/src/_array_with_holes.mjs deleted file mode 100644 index dfc536bd0fac..000000000000 --- a/packages/swc-helpers/src/_array_with_holes.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _array_with_holes(arr) { - if (Array.isArray(arr)) return arr; -} diff --git a/packages/swc-helpers/src/_array_without_holes.mjs b/packages/swc-helpers/src/_array_without_holes.mjs deleted file mode 100644 index f5d69dc20b58..000000000000 --- a/packages/swc-helpers/src/_array_without_holes.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import _array_like_to_array from "./_array_like_to_array.mjs"; -export default function _array_without_holes(arr) { - if (Array.isArray(arr)) return _array_like_to_array(arr); -} diff --git a/packages/swc-helpers/src/_assert_this_initialized.mjs b/packages/swc-helpers/src/_assert_this_initialized.mjs deleted file mode 100644 index feb09136330f..000000000000 --- a/packages/swc-helpers/src/_assert_this_initialized.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default function _assert_this_initialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} diff --git a/packages/swc-helpers/src/_await_async_generator.mjs b/packages/swc-helpers/src/_await_async_generator.mjs deleted file mode 100644 index 98ebd24d146b..000000000000 --- a/packages/swc-helpers/src/_await_async_generator.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import _await_value from "./_await_value.mjs"; -export default function _await_async_generator(value) { - return new _await_value(value); -} diff --git a/packages/swc-helpers/src/_await_value.mjs b/packages/swc-helpers/src/_await_value.mjs deleted file mode 100644 index c852ff075d26..000000000000 --- a/packages/swc-helpers/src/_await_value.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _await_value(value) { - this.wrapped = value; -} diff --git a/packages/swc-helpers/src/_class_apply_descriptor_get.mjs b/packages/swc-helpers/src/_class_apply_descriptor_get.mjs deleted file mode 100644 index 04dbc3ee92ec..000000000000 --- a/packages/swc-helpers/src/_class_apply_descriptor_get.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default function _class_apply_descriptor_get(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; -} diff --git a/packages/swc-helpers/src/_class_call_check.mjs b/packages/swc-helpers/src/_class_call_check.mjs deleted file mode 100644 index 291f7b905d32..000000000000 --- a/packages/swc-helpers/src/_class_call_check.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default function _class_call_check(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} diff --git a/packages/swc-helpers/src/_class_check_private_static_access.mjs b/packages/swc-helpers/src/_class_check_private_static_access.mjs deleted file mode 100644 index 6c727b3a85da..000000000000 --- a/packages/swc-helpers/src/_class_check_private_static_access.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default function _class_check_private_static_access(receiver, classConstructor) { - if (receiver !== classConstructor) { - throw new TypeError("Private static access of wrong provenance"); - } -} diff --git a/packages/swc-helpers/src/_class_extract_field_descriptor.mjs b/packages/swc-helpers/src/_class_extract_field_descriptor.mjs deleted file mode 100644 index 0fdb88b01b1c..000000000000 --- a/packages/swc-helpers/src/_class_extract_field_descriptor.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default function _class_extract_field_descriptor(receiver, privateMap, action) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to " + action + " private field on non-instance"); - } - return privateMap.get(receiver); -} diff --git a/packages/swc-helpers/src/_class_private_field_destructure.mjs b/packages/swc-helpers/src/_class_private_field_destructure.mjs deleted file mode 100644 index 809a5669faca..000000000000 --- a/packages/swc-helpers/src/_class_private_field_destructure.mjs +++ /dev/null @@ -1,6 +0,0 @@ -import _class_apply_descriptor_destructure from "./_class_apply_descriptor_destructure.mjs"; -import _class_extract_field_descriptor from "./_class_extract_field_descriptor.mjs"; -export default function _class_private_field_destructure(receiver, privateMap) { - var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set"); - return _class_apply_descriptor_destructure(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_private_field_get.mjs b/packages/swc-helpers/src/_class_private_field_get.mjs deleted file mode 100644 index caa792df6e26..000000000000 --- a/packages/swc-helpers/src/_class_private_field_get.mjs +++ /dev/null @@ -1,6 +0,0 @@ -import _class_apply_descriptor_get from "./_class_apply_descriptor_get.mjs"; -import _class_extract_field_descriptor from "./_class_extract_field_descriptor.mjs"; -export default function _class_private_field_get(receiver, privateMap) { - var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get"); - return _class_apply_descriptor_get(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_private_field_init.mjs b/packages/swc-helpers/src/_class_private_field_init.mjs deleted file mode 100644 index f8e285fe7634..000000000000 --- a/packages/swc-helpers/src/_class_private_field_init.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import _check_private_redeclaration from "./_check_private_redeclaration.mjs"; -export default function _class_private_field_init(obj, privateMap, value) { - _check_private_redeclaration(obj, privateMap); - privateMap.set(obj, value); -} diff --git a/packages/swc-helpers/src/_class_private_field_loose_key.mjs b/packages/swc-helpers/src/_class_private_field_loose_key.mjs deleted file mode 100644 index ad4d2e23eeb8..000000000000 --- a/packages/swc-helpers/src/_class_private_field_loose_key.mjs +++ /dev/null @@ -1,4 +0,0 @@ -var id = 0; -export default function _class_private_field_loose_key(name) { - return "__private_" + id++ + "_" + name; -} diff --git a/packages/swc-helpers/src/_class_private_field_set.mjs b/packages/swc-helpers/src/_class_private_field_set.mjs deleted file mode 100644 index c60851f2885f..000000000000 --- a/packages/swc-helpers/src/_class_private_field_set.mjs +++ /dev/null @@ -1,7 +0,0 @@ -import _class_apply_descriptor_set from "./_class_apply_descriptor_set.mjs"; -import _class_extract_field_descriptor from "./_class_extract_field_descriptor.mjs"; -export default function _class_private_field_set(receiver, privateMap, value) { - var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set"); - _class_apply_descriptor_set(receiver, descriptor, value); - return value; -} diff --git a/packages/swc-helpers/src/_class_private_field_update.mjs b/packages/swc-helpers/src/_class_private_field_update.mjs deleted file mode 100644 index 43f98cab536c..000000000000 --- a/packages/swc-helpers/src/_class_private_field_update.mjs +++ /dev/null @@ -1,6 +0,0 @@ -import _class_apply_descriptor_update from "./_class_apply_descriptor_update.mjs"; -import _class_extract_field_descriptor from "./_class_extract_field_descriptor.mjs"; -export default function _class_private_field_update(receiver, privateMap) { - var descriptor = _class_extract_field_descriptor(receiver, privateMap, "update"); - return _class_apply_descriptor_update(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_private_method_get.mjs b/packages/swc-helpers/src/_class_private_method_get.mjs deleted file mode 100644 index c3a99c1d9ce2..000000000000 --- a/packages/swc-helpers/src/_class_private_method_get.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default function _class_private_method_get(receiver, privateSet, fn) { - if (!privateSet.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return fn; -} diff --git a/packages/swc-helpers/src/_class_private_method_init.mjs b/packages/swc-helpers/src/_class_private_method_init.mjs deleted file mode 100644 index 92054dcf06fd..000000000000 --- a/packages/swc-helpers/src/_class_private_method_init.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import _check_private_redeclaration from "./_check_private_redeclaration.mjs"; -export default function _class_private_method_init(obj, privateSet) { - _check_private_redeclaration(obj, privateSet); - privateSet.add(obj); -} diff --git a/packages/swc-helpers/src/_class_private_method_set.mjs b/packages/swc-helpers/src/_class_private_method_set.mjs deleted file mode 100644 index 7eb6a5bd908b..000000000000 --- a/packages/swc-helpers/src/_class_private_method_set.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _class_private_method_set() { - throw new TypeError("attempted to reassign private method"); -} diff --git a/packages/swc-helpers/src/_class_static_private_field_destructure.mjs b/packages/swc-helpers/src/_class_static_private_field_destructure.mjs deleted file mode 100644 index f5bc2744f9de..000000000000 --- a/packages/swc-helpers/src/_class_static_private_field_destructure.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import _class_apply_descriptor_destructure from "./_class_apply_descriptor_destructure.mjs"; -import _class_check_private_static_access from "./_class_check_private_static_access.mjs"; -import _class_check_private_static_field_descriptor from "./_class_check_private_static_field_descriptor.mjs"; -export default function _class_static_private_field_destructure(receiver, classConstructor, descriptor) { - _class_check_private_static_access(receiver, classConstructor); - _class_check_private_static_field_descriptor(descriptor, "set"); - return _class_apply_descriptor_destructure(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_static_private_field_spec_get.mjs b/packages/swc-helpers/src/_class_static_private_field_spec_get.mjs deleted file mode 100644 index ba2b8b2bb093..000000000000 --- a/packages/swc-helpers/src/_class_static_private_field_spec_get.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import _class_apply_descriptor_get from "./_class_apply_descriptor_get.mjs"; -import _class_check_private_static_access from "./_class_check_private_static_access.mjs"; -import _class_check_private_static_field_descriptor from "./_class_check_private_static_field_descriptor.mjs"; -export default function _class_static_private_field_spec_get(receiver, classConstructor, descriptor) { - _class_check_private_static_access(receiver, classConstructor); - _class_check_private_static_field_descriptor(descriptor, "get"); - return _class_apply_descriptor_get(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_static_private_field_spec_set.mjs b/packages/swc-helpers/src/_class_static_private_field_spec_set.mjs deleted file mode 100644 index aea16b0c296d..000000000000 --- a/packages/swc-helpers/src/_class_static_private_field_spec_set.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import _class_apply_descriptor_set from "./_class_apply_descriptor_set.mjs"; -import _class_check_private_static_access from "./_class_check_private_static_access.mjs"; -import _class_check_private_static_field_descriptor from "./_class_check_private_static_field_descriptor.mjs"; -export default function _class_static_private_field_spec_set(receiver, classConstructor, descriptor, value) { - _class_check_private_static_access(receiver, classConstructor); - _class_check_private_static_field_descriptor(descriptor, "set"); - _class_apply_descriptor_set(receiver, descriptor, value); - return value; -} diff --git a/packages/swc-helpers/src/_class_static_private_field_update.mjs b/packages/swc-helpers/src/_class_static_private_field_update.mjs deleted file mode 100644 index 6b0679dade04..000000000000 --- a/packages/swc-helpers/src/_class_static_private_field_update.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import _class_apply_descriptor_update from "./_class_apply_descriptor_update.mjs"; -import _class_check_private_static_access from "./_class_check_private_static_access.mjs"; -import _class_check_private_static_field_descriptor from "./_class_check_private_static_field_descriptor.mjs"; -export default function _class_static_private_field_update(receiver, classConstructor, descriptor) { - _class_check_private_static_access(receiver, classConstructor); - _class_check_private_static_field_descriptor(descriptor, "update"); - return _class_apply_descriptor_update(receiver, descriptor); -} diff --git a/packages/swc-helpers/src/_class_static_private_method_get.mjs b/packages/swc-helpers/src/_class_static_private_method_get.mjs deleted file mode 100644 index e52f0a4ea678..000000000000 --- a/packages/swc-helpers/src/_class_static_private_method_get.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import _class_check_private_static_access from "./_class_check_private_static_access.mjs"; -export default function _class_static_private_method_get(receiver, classConstructor, method) { - _class_check_private_static_access(receiver, classConstructor); - return method; -} diff --git a/packages/swc-helpers/src/_construct.mjs b/packages/swc-helpers/src/_construct.mjs deleted file mode 100644 index 59f032f3ed75..000000000000 --- a/packages/swc-helpers/src/_construct.mjs +++ /dev/null @@ -1,21 +0,0 @@ -import _is_native_reflect_construct from "./_is_native_reflect_construct.mjs"; -import _set_prototype_of from "./_set_prototype_of.mjs"; -function construct(Parent, args, Class) { - if (_is_native_reflect_construct()) { - construct = Reflect.construct; - } else { - construct = function construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) _set_prototype_of(instance, Class.prototype); - return instance; - }; - } - return construct.apply(null, arguments); -} - -export default function _construct() { - return construct.apply(null, arguments); -} diff --git a/packages/swc-helpers/src/_extends.mjs b/packages/swc-helpers/src/_extends.mjs deleted file mode 100644 index c1da5fb507f2..000000000000 --- a/packages/swc-helpers/src/_extends.mjs +++ /dev/null @@ -1,18 +0,0 @@ -function extends_() { - extends_ = Object.assign || function assign(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return extends_.apply(this, arguments); -} - -export default function _extends() { - return extends_.apply(this, arguments); -} diff --git a/packages/swc-helpers/src/_get.mjs b/packages/swc-helpers/src/_get.mjs deleted file mode 100644 index a7cef0c11940..000000000000 --- a/packages/swc-helpers/src/_get.mjs +++ /dev/null @@ -1,21 +0,0 @@ -import _super_prop_base from "./_super_prop_base.mjs"; -function get(target, property, receiver) { - if (typeof Reflect !== "undefined" && Reflect.get) { - get = Reflect.get; - } else { - get = function get(target, property, receiver) { - var base = _super_prop_base(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(receiver || target); - } - return desc.value; - }; - } - return get(target, property, receiver || target); -} - -export default function _get(target, property, receiver) { - return get(target, property, receiver) -} \ No newline at end of file diff --git a/packages/swc-helpers/src/_get_prototype_of.mjs b/packages/swc-helpers/src/_get_prototype_of.mjs deleted file mode 100644 index c49057511c65..000000000000 --- a/packages/swc-helpers/src/_get_prototype_of.mjs +++ /dev/null @@ -1,10 +0,0 @@ -function get_prototype_of(o) { - get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return get_prototype_of(o); -} - -export default function _get_prototype_of(o) { - return get_prototype_of(o); -} diff --git a/packages/swc-helpers/src/_initializer_warning_helper.mjs b/packages/swc-helpers/src/_initializer_warning_helper.mjs deleted file mode 100644 index b06b90dceb28..000000000000 --- a/packages/swc-helpers/src/_initializer_warning_helper.mjs +++ /dev/null @@ -1,7 +0,0 @@ -export default function _initializer_warning_helper(descriptor, context) { - throw new Error( - "Decorating class property failed. Please ensure that " + "proposal-class-properties is enabled and set to use loose mode. " - + "To use proposal-class-properties in spec mode with decorators, wait for " - + "the next major version of decorators in stage 2." - ); -} diff --git a/packages/swc-helpers/src/_interop_require_default.mjs b/packages/swc-helpers/src/_interop_require_default.mjs deleted file mode 100644 index b9ec0bbf7ebf..000000000000 --- a/packages/swc-helpers/src/_interop_require_default.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _interop_require_default(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} diff --git a/packages/swc-helpers/src/_is_native_function.mjs b/packages/swc-helpers/src/_is_native_function.mjs deleted file mode 100644 index cd6ec5bfe2ab..000000000000 --- a/packages/swc-helpers/src/_is_native_function.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _is_native_function(fn) { - return Function.toString.call(fn).indexOf("[native code]") !== -1; -} diff --git a/packages/swc-helpers/src/_iterable_to_array.mjs b/packages/swc-helpers/src/_iterable_to_array.mjs deleted file mode 100644 index 7d9c499a18ab..000000000000 --- a/packages/swc-helpers/src/_iterable_to_array.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _iterable_to_array(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} diff --git a/packages/swc-helpers/src/_new_arrow_check.mjs b/packages/swc-helpers/src/_new_arrow_check.mjs deleted file mode 100644 index f260c2d637a6..000000000000 --- a/packages/swc-helpers/src/_new_arrow_check.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default function _new_arrow_check(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } -} diff --git a/packages/swc-helpers/src/_non_iterable_rest.mjs b/packages/swc-helpers/src/_non_iterable_rest.mjs deleted file mode 100644 index 00933e6c8ce2..000000000000 --- a/packages/swc-helpers/src/_non_iterable_rest.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default function _non_iterable_rest() { - throw new TypeError( - "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); -} diff --git a/packages/swc-helpers/src/_non_iterable_spread.mjs b/packages/swc-helpers/src/_non_iterable_spread.mjs deleted file mode 100644 index e322cc8f6566..000000000000 --- a/packages/swc-helpers/src/_non_iterable_spread.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default function _non_iterable_spread() { - throw new TypeError( - "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); -} diff --git a/packages/swc-helpers/src/_possible_constructor_return.mjs b/packages/swc-helpers/src/_possible_constructor_return.mjs deleted file mode 100644 index 5658751bc77a..000000000000 --- a/packages/swc-helpers/src/_possible_constructor_return.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import _assert_this_initialized from "./_assert_this_initialized.mjs"; -import _type_of from "./_type_of.mjs"; -export default function _possible_constructor_return(self, call) { - if (call && (_type_of(call) === "object" || typeof call === "function")) { - return call; - } - return _assert_this_initialized(self); -} diff --git a/packages/swc-helpers/src/_read_only_error.mjs b/packages/swc-helpers/src/_read_only_error.mjs deleted file mode 100644 index 9cd20df41e05..000000000000 --- a/packages/swc-helpers/src/_read_only_error.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _read_only_error(name) { - throw new TypeError("\"" + name + "\" is read-only"); -} diff --git a/packages/swc-helpers/src/_set_prototype_of.mjs b/packages/swc-helpers/src/_set_prototype_of.mjs deleted file mode 100644 index 9e7a429e558c..000000000000 --- a/packages/swc-helpers/src/_set_prototype_of.mjs +++ /dev/null @@ -1,11 +0,0 @@ -function set_prototype_of(o, p) { - set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return set_prototype_of(o, p); -} - -export default function _set_prototype_of(o, p) { - return set_prototype_of(o, p); -} diff --git a/packages/swc-helpers/src/_sliced_to_array.mjs b/packages/swc-helpers/src/_sliced_to_array.mjs deleted file mode 100644 index d6cbcc6fbacc..000000000000 --- a/packages/swc-helpers/src/_sliced_to_array.mjs +++ /dev/null @@ -1,7 +0,0 @@ -import _array_with_holes from "./_array_with_holes.mjs"; -import _iterable_to_array_limit from "./_iterable_to_array_limit.mjs"; -import _non_iterable_rest from "./_non_iterable_rest.mjs"; -import _unsupported_iterable_to_array from "./_unsupported_iterable_to_array.mjs"; -export default function _sliced_to_array(arr, i) { - return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest(); -} diff --git a/packages/swc-helpers/src/_sliced_to_array_loose.mjs b/packages/swc-helpers/src/_sliced_to_array_loose.mjs deleted file mode 100644 index f7488aedc2b3..000000000000 --- a/packages/swc-helpers/src/_sliced_to_array_loose.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import _array_with_holes from "./_array_with_holes.mjs"; -import _iterable_to_array_limit_loose from "./_iterable_to_array_limit_loose.mjs"; -import _non_iterable_rest from "./_non_iterable_rest.mjs"; -import _unsupported_iterable_to_array from "./_unsupported_iterable_to_array.mjs"; -export default function _sliced_to_array_loose(arr, i) { - return _array_with_holes(arr) || _iterable_to_array_limit_loose(arr, i) || _unsupported_iterable_to_array(arr, i) - || _non_iterable_rest(); -} diff --git a/packages/swc-helpers/src/_tagged_template_literal.mjs b/packages/swc-helpers/src/_tagged_template_literal.mjs deleted file mode 100644 index afc3e8091995..000000000000 --- a/packages/swc-helpers/src/_tagged_template_literal.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default function _tagged_template_literal(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); -} diff --git a/packages/swc-helpers/src/_tagged_template_literal_loose.mjs b/packages/swc-helpers/src/_tagged_template_literal_loose.mjs deleted file mode 100644 index 90ef93841172..000000000000 --- a/packages/swc-helpers/src/_tagged_template_literal_loose.mjs +++ /dev/null @@ -1,7 +0,0 @@ -export default function _tagged_template_literal_loose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - strings.raw = raw; - return strings; -} diff --git a/packages/swc-helpers/src/_throw.mjs b/packages/swc-helpers/src/_throw.mjs deleted file mode 100644 index 5698bb7e81c2..000000000000 --- a/packages/swc-helpers/src/_throw.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _throw(e) { - throw e; -} diff --git a/packages/swc-helpers/src/_to_array.mjs b/packages/swc-helpers/src/_to_array.mjs deleted file mode 100644 index 000087de9204..000000000000 --- a/packages/swc-helpers/src/_to_array.mjs +++ /dev/null @@ -1,7 +0,0 @@ -import _array_with_holes from "./_array_with_holes.mjs"; -import _iterable_to_array from "./_iterable_to_array.mjs"; -import _non_iterable_rest from "./_non_iterable_rest.mjs"; -import _unsupported_iterable_to_array from "./_unsupported_iterable_to_array.mjs"; -export default function _to_array(arr) { - return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest(); -} diff --git a/packages/swc-helpers/src/_to_consumable_array.mjs b/packages/swc-helpers/src/_to_consumable_array.mjs deleted file mode 100644 index 0e5f38cb3ea1..000000000000 --- a/packages/swc-helpers/src/_to_consumable_array.mjs +++ /dev/null @@ -1,7 +0,0 @@ -import _array_without_holes from "./_array_without_holes.mjs"; -import _iterable_to_array from "./_iterable_to_array.mjs"; -import _non_iterable_spread from "./_non_iterable_spread.mjs"; -import _unsupported_iterable_to_array from "./_unsupported_iterable_to_array.mjs"; -export default function _to_consumable_array(arr) { - return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread(); -} diff --git a/packages/swc-helpers/src/_to_property_key.mjs b/packages/swc-helpers/src/_to_property_key.mjs deleted file mode 100644 index ec3c640aa56e..000000000000 --- a/packages/swc-helpers/src/_to_property_key.mjs +++ /dev/null @@ -1,6 +0,0 @@ -import _to_primitive from "./_to_primitive.mjs"; -import _type_of from "./_type_of.mjs"; -export default function _to_property_key(arg) { - var key = _to_primitive(arg, "string"); - return _type_of(key) === "symbol" ? key : String(key); -} diff --git a/packages/swc-helpers/src/_ts_decorate.mjs b/packages/swc-helpers/src/_ts_decorate.mjs deleted file mode 100644 index 098652d150ba..000000000000 --- a/packages/swc-helpers/src/_ts_decorate.mjs +++ /dev/null @@ -1 +0,0 @@ -export { __decorate as default } from "tslib"; diff --git a/packages/swc-helpers/src/_ts_generator.mjs b/packages/swc-helpers/src/_ts_generator.mjs deleted file mode 100644 index 90d2f8d17dbd..000000000000 --- a/packages/swc-helpers/src/_ts_generator.mjs +++ /dev/null @@ -1 +0,0 @@ -export { __generator as default } from "tslib"; diff --git a/packages/swc-helpers/src/_ts_metadata.mjs b/packages/swc-helpers/src/_ts_metadata.mjs deleted file mode 100644 index b5bbc7108782..000000000000 --- a/packages/swc-helpers/src/_ts_metadata.mjs +++ /dev/null @@ -1 +0,0 @@ -export { __metadata as default } from "tslib"; diff --git a/packages/swc-helpers/src/_ts_param.mjs b/packages/swc-helpers/src/_ts_param.mjs deleted file mode 100644 index 8c8a059c8752..000000000000 --- a/packages/swc-helpers/src/_ts_param.mjs +++ /dev/null @@ -1 +0,0 @@ -export { __param as default } from "tslib"; diff --git a/packages/swc-helpers/src/_ts_values.mjs b/packages/swc-helpers/src/_ts_values.mjs deleted file mode 100644 index dd69308fda54..000000000000 --- a/packages/swc-helpers/src/_ts_values.mjs +++ /dev/null @@ -1 +0,0 @@ -export { __values as default } from "tslib"; diff --git a/packages/swc-helpers/src/_wrap_async_generator.mjs b/packages/swc-helpers/src/_wrap_async_generator.mjs deleted file mode 100644 index 44038ca64980..000000000000 --- a/packages/swc-helpers/src/_wrap_async_generator.mjs +++ /dev/null @@ -1,6 +0,0 @@ -import _async_generator from "./_async_generator.mjs"; -export default function _wrap_async_generator(fn) { - return function() { - return new _async_generator(fn.apply(this, arguments)); - }; -} diff --git a/packages/swc-helpers/src/_wrap_native_super.mjs b/packages/swc-helpers/src/_wrap_native_super.mjs deleted file mode 100644 index 2e731ad3ff3a..000000000000 --- a/packages/swc-helpers/src/_wrap_native_super.mjs +++ /dev/null @@ -1,29 +0,0 @@ -import _construct from "./_construct.mjs"; -import _get_prototype_of from "./_get_prototype_of.mjs"; -import _is_native_function from "./_is_native_function.mjs"; -import _set_prototype_of from "./_set_prototype_of.mjs"; -function wrap_native_super(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - wrap_native_super = function (Class) { - if (Class === null || !_is_native_function(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return _construct(Class, arguments, _get_prototype_of(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } - }); - return _set_prototype_of(Wrapper, Class); - }; - return wrap_native_super(Class); -} - -export default function _wrap_native_super(c) { - return wrap_native_super(c); -} diff --git a/packages/swc-helpers/src/_write_only_error.mjs b/packages/swc-helpers/src/_write_only_error.mjs deleted file mode 100644 index c53ead125f9c..000000000000 --- a/packages/swc-helpers/src/_write_only_error.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function _write_only_error(name) { - throw new TypeError("\"" + name + "\" is write-only"); -} diff --git a/packages/swc-helpers/src/index.mjs b/packages/swc-helpers/src/index.mjs deleted file mode 100644 index a053253bf35f..000000000000 --- a/packages/swc-helpers/src/index.mjs +++ /dev/null @@ -1,82 +0,0 @@ -export { __decorate, __generator, __metadata, __param, __values } from "tslib"; -export { default as _apply_decorated_descriptor } from "./_apply_decorated_descriptor.mjs"; -export { default as _array_like_to_array } from "./_array_like_to_array.mjs"; -export { default as _array_with_holes } from "./_array_with_holes.mjs"; -export { default as _array_without_holes } from "./_array_without_holes.mjs"; -export { default as _assert_this_initialized } from "./_assert_this_initialized.mjs"; -export { default as _async_generator } from "./_async_generator.mjs"; -export { default as _async_generator_delegate } from "./_async_generator_delegate.mjs"; -export { default as _async_iterator } from "./_async_iterator.mjs"; -export { default as _async_to_generator } from "./_async_to_generator.mjs"; -export { default as _await_async_generator } from "./_await_async_generator.mjs"; -export { default as _await_value } from "./_await_value.mjs"; -export { default as _check_private_redeclaration } from "./_check_private_redeclaration.mjs"; -export { default as _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.mjs"; -export { default as _class_apply_descriptor_get } from "./_class_apply_descriptor_get.mjs"; -export { default as _class_apply_descriptor_set } from "./_class_apply_descriptor_set.mjs"; -export { default as _class_call_check } from "./_class_call_check.mjs"; -export { default as _class_check_private_static_access } from "./_class_check_private_static_access.mjs"; -export { default as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.mjs"; -export { default as _class_name_tdz_error } from "./_class_name_tdz_error.mjs"; -export { default as _class_private_field_destructure } from "./_class_private_field_destructure.mjs"; -export { default as _class_private_field_get } from "./_class_private_field_get.mjs"; -export { default as _class_private_field_init } from "./_class_private_field_init.mjs"; -export { default as _class_private_field_loose_base } from "./_class_private_field_loose_base.mjs"; -export { default as _class_private_field_loose_key } from "./_class_private_field_loose_key.mjs"; -export { default as _class_private_field_set } from "./_class_private_field_set.mjs"; -export { default as _class_private_method_get } from "./_class_private_method_get.mjs"; -export { default as _class_private_method_init } from "./_class_private_method_init.mjs"; -export { default as _class_private_method_set } from "./_class_private_method_set.mjs"; -export { default as _class_static_private_field_destructure } from "./_class_static_private_field_destructure.mjs"; -export { default as _class_static_private_field_spec_get } from "./_class_static_private_field_spec_get.mjs"; -export { default as _class_static_private_field_spec_set } from "./_class_static_private_field_spec_set.mjs"; -export { default as _construct } from "./_construct.mjs"; -export { default as _create_class } from "./_create_class.mjs"; -export { default as _create_super } from "./_create_super.mjs"; -export { default as _decorate } from "./_decorate.mjs"; -export { default as _defaults } from "./_defaults.mjs"; -export { default as _define_enumerable_properties } from "./_define_enumerable_properties.mjs"; -export { default as _define_property } from "./_define_property.mjs"; -export { default as _extends } from "./_extends.mjs"; -export { default as _get } from "./_get.mjs"; -export { default as _get_prototype_of } from "./_get_prototype_of.mjs"; -export { default as _inherits } from "./_inherits.mjs"; -export { default as _inherits_loose } from "./_inherits_loose.mjs"; -export { default as _initializer_define_property } from "./_initializer_define_property.mjs"; -export { default as _initializer_warning_helper } from "./_initializer_warning_helper.mjs"; -export { default as _instanceof } from "./_instanceof.mjs"; -export { default as _interop_require_default } from "./_interop_require_default.mjs"; -export { default as _interop_require_wildcard } from "./_interop_require_wildcard.mjs"; -export { default as _is_native_function } from "./_is_native_function.mjs"; -export { default as _is_native_reflect_construct } from "./_is_native_reflect_construct.mjs"; -export { default as _iterable_to_array } from "./_iterable_to_array.mjs"; -export { default as _iterable_to_array_limit } from "./_iterable_to_array_limit.mjs"; -export { default as _iterable_to_array_limit_loose } from "./_iterable_to_array_limit_loose.mjs"; -export { default as _jsx } from "./_jsx.mjs"; -export { default as _new_arrow_check } from "./_new_arrow_check.mjs"; -export { default as _non_iterable_rest } from "./_non_iterable_rest.mjs"; -export { default as _non_iterable_spread } from "./_non_iterable_spread.mjs"; -export { default as _object_spread } from "./_object_spread.mjs"; -export { default as _object_spread_props } from "./_object_spread_props.mjs"; -export { default as _object_without_properties } from "./_object_without_properties.mjs"; -export { default as _object_without_properties_loose } from "./_object_without_properties_loose.mjs"; -export { default as _possible_constructor_return } from "./_possible_constructor_return.mjs"; -export { default as _read_only_error } from "./_read_only_error.mjs"; -export { default as _set } from "./_set.mjs"; -export { default as _set_prototype_of } from "./_set_prototype_of.mjs"; -export { default as _skip_first_generator_next } from "./_skip_first_generator_next.mjs"; -export { default as _sliced_to_array } from "./_sliced_to_array.mjs"; -export { default as _sliced_to_array_loose } from "./_sliced_to_array_loose.mjs"; -export { default as _super_prop_base } from "./_super_prop_base.mjs"; -export { default as _tagged_template_literal } from "./_tagged_template_literal.mjs"; -export { default as _tagged_template_literal_loose } from "./_tagged_template_literal_loose.mjs"; -export { default as _throw } from "./_throw.mjs"; -export { default as _to_array } from "./_to_array.mjs"; -export { default as _to_consumable_array } from "./_to_consumable_array.mjs"; -export { default as _to_primitive } from "./_to_primitive.mjs"; -export { default as _to_property_key } from "./_to_property_key.mjs"; -export { default as _type_of } from "./_type_of.mjs"; -export { default as _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.mjs"; -export { default as _wrap_async_generator } from "./_wrap_async_generator.mjs"; -export { default as _wrap_native_super } from "./_wrap_native_super.mjs"; -export { default as _write_only_error } from "./_write_only_error.mjs";